Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/core/stdc/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -3001,7 +3001,8 @@ else version(CRuntime_Bionic)
double tan(double x);
///
float tanf(float x);
//real tanl(real x);
// Added since Lollipop
real tanl(real x);

///
double acosh(double x);
Expand Down Expand Up @@ -3096,7 +3097,8 @@ else version(CRuntime_Bionic)
float log1pf(float x);
//real log1pl(real x);

//double log2(double x);
// Added since Lollipop
double log2(double x);
//float log2f(float x);
//real log2l(real x);

Expand Down
2 changes: 2 additions & 0 deletions src/core/sys/posix/fcntl.d
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@ else version( CRuntime_Bionic )

int creat(in char*, mode_t);
int open(in char*, int, ...);

enum AT_FDCWD = -100;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/sys/posix/pthread.d
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ else version( CRuntime_Bionic )
struct __pthread_cleanup_t
{
__pthread_cleanup_t* __cleanup_prev;
__pthread_cleanup_func_t __cleanup_routine;
_pthread_cleanup_routine __cleanup_routine;
void* __cleanup_arg;
}

Expand Down
14 changes: 13 additions & 1 deletion src/core/sys/posix/signal.d
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,28 @@ else version( CRuntime_Glibc )
}
}
else version (FreeBSD) {
// Note: it appears that FreeBSD (prior to 7) and OSX do not support realtime signals
// https://github.com/freebsd/freebsd/blob/e79c62ff68fc74d88cb6f479859f6fae9baa5101/sys/sys/signal.h#L117
enum SIGRTMIN = 65;
enum SIGRTMAX = 126;
}
// Note: it appears that FreeBSD (prior to 7) and OSX do not support realtime signals
else version(NetBSD)
{
enum SIGRTMIN = 33;
enum SIGRTMAX = 63;
}
else version (CRuntime_Bionic)
{
enum SIGRTMIN = 32;
version(ARM)
enum SIGRTMAX = 64;
else version(X86)
enum SIGRTMAX = 64;
else version(MIPS32)
enum SIGRTMAX = 128;
else
static assert(false, "Architecture not supported.");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding in preparation for #1565, whenever that's merged.


version( linux )
{
Expand Down
9 changes: 9 additions & 0 deletions src/core/sys/posix/stdlib.d
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ else version( Solaris )
{
int posix_memalign(void**, size_t, size_t);
}
else version( Darwin )
{
int posix_memalign(void**, size_t, size_t);
}
else version( CRuntime_Bionic )
{
// Added since Lollipop
int posix_memalign(void**, size_t, size_t);
}

//
// C Extension (CX)
Expand Down
4 changes: 4 additions & 0 deletions src/core/sys/posix/sys/stat.d
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,10 @@ else version( CRuntime_Bionic )
extern (D) bool S_ISREG( uint mode ) { return S_ISTYPE( mode, S_IFREG ); }
extern (D) bool S_ISLNK( uint mode ) { return S_ISTYPE( mode, S_IFLNK ); }
extern (D) bool S_ISSOCK( uint mode ) { return S_ISTYPE( mode, S_IFSOCK ); }

// Added since Lollipop
int utimensat(int dirfd, const char *pathname,
ref const(timespec)[2] times, int flags);
Copy link
Contributor Author

@joakim-noah joakim-noah May 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed by this code path in phobos, which gets this test of higher precision on linux to pass on Android.

}
else
{
Expand Down