Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0574ad9d
Kaydet (Commit)
0574ad9d
authored
Haz 09, 2011
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
First attempt at Android support
üst
ec1c09b9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
54 additions
and
13 deletions
+54
-13
endian.h
sal/inc/osl/endian.h
+16
-1
alloca.h
sal/inc/sal/alloca.h
+1
-1
config.h
sal/inc/sal/config.h
+1
-1
file_volume.cxx
sal/osl/unx/file_volume.cxx
+7
-7
security.c
sal/osl/unx/security.c
+5
-0
signal.c
sal/osl/unx/signal.c
+4
-2
socket.c
sal/osl/unx/socket.c
+1
-1
system.h
sal/osl/unx/system.h
+17
-0
macro.hxx
sal/rtl/source/macro.hxx
+2
-0
No files found.
sal/inc/osl/endian.h
Dosyayı görüntüle @
0574ad9d
...
...
@@ -66,6 +66,21 @@ extern "C" {
# endif
#endif
#ifdef ANDROID
# include <endian.h>
# if __BYTE_ORDER == __LITTLE_ENDIAN
# ifndef _LITTLE_ENDIAN
# define _LITTLE_ENDIAN
# endif
# elif __BYTE_ORDER == __BIG_ENDIAN
# ifndef _BIG_ENDIAN
# define _BIG_ENDIAN
# endif
# elif __BYTE_ORDER == __PDP_ENDIAN
# define _PDP_ENDIAN
# endif
#endif
#ifdef NETBSD
# include <machine/endian.h>
# if BYTE_ORDER == LITTLE_ENDIAN
...
...
@@ -154,7 +169,7 @@ extern "C" {
!defined(AIX) && !defined(OPENBSD) && \
!defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \
!defined(DRAGONFLY) && \
!defined(IOS)
!defined(IOS)
&& !defined(ANDROID)
# error "Target platform not specified !"
#endif
...
...
sal/inc/sal/alloca.h
Dosyayı görüntüle @
0574ad9d
...
...
@@ -29,7 +29,7 @@
#ifndef INCLUDED_SAL_ALLOCA_H
#define INCLUDED_SAL_ALLOCA_H
#if defined (SOLARIS) || defined (LINUX) || defined(__EMX__) || defined(AIX)
#if defined (SOLARIS) || defined (LINUX) || defined(__EMX__) || defined(AIX)
|| defined(ANDROID)
#ifndef INCLUDED_ALLOCA_H
#include <alloca.h>
...
...
sal/inc/sal/config.h
Dosyayı görüntüle @
0574ad9d
...
...
@@ -75,7 +75,7 @@
#endif
/* defined WIN32 */
#if defined(SOLARIS) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY)
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY)
|| defined(ANDROID)
#define SAL_UNX
#define SAL_DLLEXTENSION ".so"
#define SAL_DLLPREFIX "lib"
...
...
sal/osl/unx/file_volume.cxx
Dosyayı görüntüle @
0574ad9d
...
...
@@ -1114,36 +1114,36 @@ osl_isFloppyMounted (oslVolumeDeviceHandleImpl* pDevice)
/******************************************************************************
*
*
MAC OS X AND IOS FLOPPY FUNCTIONS: NO FLOPPIES
*
Dummy floppy functions: no stinking floppies
*
*****************************************************************************/
#if (defined(MACOSX) || defined(IOS) || defined(NETBSD) || defined(FREEBSD) || \
#if (defined(MACOSX) || defined(IOS) || defined(
ANDROID) || defined(
NETBSD) || defined(FREEBSD) || \
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY))
static
oslVolumeDeviceHandle
osl_isFloppyDrive
(
const
sal_Char
*
pszPath
)
{
(
void
)
pszPath
;
return
NULL
;
}
#endif
/* MACOSX */
#endif
#if ( defined(MACOSX) || defined(IOS) || defined(NETBSD) || defined(FREEBSD) || \
#if ( defined(MACOSX) || defined(IOS) || defined(
ANDROID) || defined(
NETBSD) || defined(FREEBSD) || \
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY))
static
oslFileError
osl_mountFloppy
(
oslVolumeDeviceHandle
hFloppy
)
{
(
void
)
hFloppy
;
return
osl_File_E_BUSY
;
}
#endif
/* MACOSX */
#endif
#if ( defined(MACOSX) || defined(IOS) || defined(NETBSD) || defined(FREEBSD) || \
#if ( defined(MACOSX) || defined(IOS) || defined(
ANDROID) || defined(
NETBSD) || defined(FREEBSD) || \
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY))
static
oslFileError
osl_unmountFloppy
(
oslVolumeDeviceHandle
hFloppy
)
{
(
void
)
hFloppy
;
return
osl_File_E_BUSY
;
}
#endif
/* MACOSX */
#endif
#if ( defined(NETBSD) || defined(IOS) || defined(FREEBSD) || defined(OPENBSD) || defined(DRAGONFLY) )
static
sal_Bool
osl_getFloppyMountEntry
(
const
sal_Char
*
pszPath
,
oslVolumeDeviceHandleImpl
*
pItem
)
...
...
sal/osl/unx/security.c
Dosyayı görüntüle @
0574ad9d
...
...
@@ -48,6 +48,11 @@
#include "secimpl.h"
#ifdef ANDROID
#define getpwuid_r(uid, pwd, buf, buflen, result) (*(result) = getpwuid(uid), (*(result) ? (memcpy (buf, *(result), sizeof (struct passwd)), 0) : errno))
#endif
static
oslSecurityError
SAL_CALL
osl_psz_loginUser
(
const
sal_Char
*
pszUserName
,
const
sal_Char
*
pszPasswd
,
oslSecurity
*
pSecurity
);
...
...
sal/osl/unx/signal.c
Dosyayı görüntüle @
0574ad9d
...
...
@@ -820,22 +820,24 @@ static int ReportCrash( int Signal )
static
void
PrintStack
(
int
sig
)
{
#if
! defined(MACOSX) || defined(INCLUDE_BACKTRACE)
#if
def INCLUDE_BACKTRACE
void
*
buffer
[
MAX_STACK_FRAMES
];
int
size
=
backtrace
(
buffer
,
SAL_N_ELEMENTS
(
buffer
)
);
#endif
fprintf
(
stderr
,
"
\n\n
Fatal exception: Signal %d
\n
"
,
sig
);
#if
defined(MACOSX) && ! defined(INCLUDE_BACKTRACE)
#if
def MACOSX
fprintf
(
stderr
,
"Please turn on Enable Crash Reporting and
\n
Automatic Display of Crashlogs in the Console application
\n
"
);
#else
#ifdef INCLUDE_BACKTRACE
if
(
size
>
0
)
{
fputs
(
"Stack:
\n
"
,
stderr
);
backtrace_symbols_fd
(
buffer
,
size
,
fileno
(
stderr
)
);
}
#endif
#endif
}
static
oslSignalAction
CallSignalHandler
(
oslSignalInfo
*
pInfo
)
...
...
sal/osl/unx/socket.c
Dosyayı görüntüle @
0574ad9d
...
...
@@ -791,7 +791,7 @@ static struct hostent* _osl_gethostbyname_r (
const
char
*
name
,
struct
hostent
*
result
,
char
*
buffer
,
int
buflen
,
int
*
h_errnop
)
{
#if defined(LINUX) || (defined(FREEBSD) && (__FreeBSD_version >= 601103)) || defined(DRAGONFLY)
#if defined(LINUX) ||
defined(ANDROID) ||
(defined(FREEBSD) && (__FreeBSD_version >= 601103)) || defined(DRAGONFLY)
struct
hostent
*
__result
;
/* will be the same as result */
int
__error
;
__error
=
gethostbyname_r
(
name
,
result
,
buffer
,
buflen
,
...
...
sal/osl/unx/system.h
Dosyayı görüntüle @
0574ad9d
...
...
@@ -135,6 +135,23 @@
#endif
#ifdef ANDROID
# include <pthread.h>
# include <sys/file.h>
# include <sys/ioctl.h>
# include <sys/uio.h>
# include <sys/un.h>
# include <netinet/tcp.h>
# include <dlfcn.h>
# include <endian.h>
# include <sys/time.h>
# include <semaphore.h>
# define IORESOURCE_TRANSFER_BSD
# define IOCHANNEL_TRANSFER_BSD_RENO
# define pthread_testcancel()
# define NO_PTHREAD_PRIORITY
#endif
#ifdef NETBSD
# include <sys/param.h>
# ifndef ETIME
...
...
sal/rtl/source/macro.hxx
Dosyayı görüntüle @
0574ad9d
...
...
@@ -43,6 +43,8 @@
#else
#define THIS_OS "Linux"
#endif
#elif defined ANDROID
#define THIS_OS "Android"
#elif defined MACOSX
#define THIS_OS "MacOSX"
#elif defined IOS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment