Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1038 from redstar/solaris
Browse files Browse the repository at this point in the history
Add Solaris definitions to core.sys.posix.stdlib.
  • Loading branch information
yebblies committed Nov 22, 2014
2 parents f9b55f7 + 05e44e4 commit e0169cf
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/core/sys/posix/stdlib.d
Expand Up @@ -95,6 +95,10 @@ else version( Solaris )
{
int posix_memalign(void**, size_t, size_t);
}
else version( Solaris )
{
int posix_memalign(void**, size_t, size_t);
}

//
// C Extension (CX)
Expand Down Expand Up @@ -125,6 +129,13 @@ else version( FreeBSD )

void* valloc(size_t); // LEGACY non-standard
}
else version( Solaris )
{
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t); // LEGACY non-standard
}
else version( Android )
{
int setenv(in char*, in char*, int);
Expand Down Expand Up @@ -163,6 +174,10 @@ else version( Solaris )
{
int rand_r(uint*);
}
else version( Solaris )
{
int rand_r(uint*);
}

//
// XOpen (XSI)
Expand Down Expand Up @@ -338,6 +353,46 @@ else version( FreeBSD )
void srandom(uint);
int unlockpt(int);
}
else version( Solaris )
{
//WNOHANG (defined in core.sys.posix.sys.wait)
//WUNTRACED (defined in core.sys.posix.sys.wait)
//WEXITSTATUS (defined in core.sys.posix.sys.wait)
//WIFEXITED (defined in core.sys.posix.sys.wait)
//WIFSIGNALED (defined in core.sys.posix.sys.wait)
//WIFSTOPPED (defined in core.sys.posix.sys.wait)
//WSTOPSIG (defined in core.sys.posix.sys.wait)
//WTERMSIG (defined in core.sys.posix.sys.wait)

c_long a64l(in char*);
double drand48();
char* ecvt(double, int, int *, int *);
double erand48(ref ushort[3]);
char* fcvt(double, int, int *, int *);
char* gcvt(double, int, char*);
int getsubopt(char**, in char**, char**);
int grantpt(int);
char* initstate(uint, char*, size_t);
c_long jrand48(ref ushort[3]);
char* l64a(c_long);
void lcong48(ref ushort[7]);
c_long lrand48();
char* mktemp(char*);
int mkstemp(char*);
c_long mrand48();
c_long nrand48(ref ushort[3]);
int posix_openpt(int);
char* ptsname(int);
int putenv(char*);
c_long random();
char* realpath(in char*, char*);
ushort *seed48(ref ushort[3]);
void setkey(in char*);
char* setstate(in char*);
void srand48(c_long);
void srandom(uint);
int unlockpt(int);
}
else version( Android )
{
double drand48();
Expand Down

0 comments on commit e0169cf

Please sign in to comment.