formatting

This commit is contained in:
Joseph Poirier 2015-06-14 04:53:27 -05:00
parent 890694a14a
commit 7c21d0a54f
6 changed files with 194 additions and 194 deletions

View file

@ -103,22 +103,22 @@ void StdToascii(struct ParseState *Parser, struct Value *ReturnValue,
/* all string.h functions */ /* all string.h functions */
struct LibraryFunction StdCtypeFunctions[] = struct LibraryFunction StdCtypeFunctions[] =
{ {
{StdIsalnum, "int isalnum(int);"}, {StdIsalnum, "int isalnum(int);"},
{StdIsalpha, "int isalpha(int);"}, {StdIsalpha, "int isalpha(int);"},
{StdIsblank, "int isblank(int);"}, {StdIsblank, "int isblank(int);"},
{StdIscntrl, "int iscntrl(int);"}, {StdIscntrl, "int iscntrl(int);"},
{StdIsdigit, "int isdigit(int);"}, {StdIsdigit, "int isdigit(int);"},
{StdIsgraph, "int isgraph(int);"}, {StdIsgraph, "int isgraph(int);"},
{StdIslower, "int islower(int);"}, {StdIslower, "int islower(int);"},
{StdIsprint, "int isprint(int);"}, {StdIsprint, "int isprint(int);"},
{StdIspunct, "int ispunct(int);"}, {StdIspunct, "int ispunct(int);"},
{StdIsspace, "int isspace(int);"}, {StdIsspace, "int isspace(int);"},
{StdIsupper, "int isupper(int);"}, {StdIsupper, "int isupper(int);"},
{StdIsxdigit, "int isxdigit(int);"}, {StdIsxdigit, "int isxdigit(int);"},
{StdTolower, "int tolower(int);"}, {StdTolower, "int tolower(int);"},
{StdToupper, "int toupper(int);"}, {StdToupper, "int toupper(int);"},
{StdIsascii, "int isascii(int);"}, {StdIsascii, "int isascii(int);"},
{StdToascii, "int toascii(int);"}, {StdToascii, "int toascii(int);"},
{NULL, NULL } {NULL, NULL }
}; };

View file

@ -2,18 +2,18 @@
#include "../interpreter.h" #include "../interpreter.h"
static double M_EValue = 2.7182818284590452354; /* e */ static double M_EValue = 2.7182818284590452354; /* e */
static double M_LOG2EValue = 1.4426950408889634074; /* log_2 e */ static double M_LOG2EValue = 1.4426950408889634074; /* log_2 e */
static double M_LOG10EValue = 0.43429448190325182765; /* log_10 e */ static double M_LOG10EValue = 0.43429448190325182765; /* log_10 e */
static double M_LN2Value = 0.69314718055994530942; /* log_e 2 */ static double M_LN2Value = 0.69314718055994530942; /* log_e 2 */
static double M_LN10Value = 2.30258509299404568402; /* log_e 10 */ static double M_LN10Value = 2.30258509299404568402; /* log_e 10 */
static double M_PIValue = 3.14159265358979323846; /* pi */ static double M_PIValue = 3.14159265358979323846; /* pi */
static double M_PI_2Value = 1.57079632679489661923; /* pi/2 */ static double M_PI_2Value = 1.57079632679489661923; /* pi/2 */
static double M_PI_4Value = 0.78539816339744830962; /* pi/4 */ static double M_PI_4Value = 0.78539816339744830962; /* pi/4 */
static double M_1_PIValue = 0.31830988618379067154; /* 1/pi */ static double M_1_PIValue = 0.31830988618379067154; /* 1/pi */
static double M_2_PIValue = 0.63661977236758134308; /* 2/pi */ static double M_2_PIValue = 0.63661977236758134308; /* 2/pi */
static double M_2_SQRTPIValue = 1.12837916709551257390; /* 2/sqrt(pi) */ static double M_2_SQRTPIValue = 1.12837916709551257390; /* 2/sqrt(pi) */
static double M_SQRT2Value = 1.41421356237309504880; /* sqrt(2) */ static double M_SQRT2Value = 1.41421356237309504880; /* sqrt(2) */
static double M_SQRT1_2Value = 0.70710678118654752440; /* 1/sqrt(2) */ static double M_SQRT1_2Value = 0.70710678118654752440; /* 1/sqrt(2) */
@ -160,30 +160,30 @@ void MathFloor(struct ParseState *Parser, struct Value *ReturnValue,
/* all math.h functions */ /* all math.h functions */
struct LibraryFunction MathFunctions[] = struct LibraryFunction MathFunctions[] =
{ {
{MathAcos, "float acos(float);"}, {MathAcos, "float acos(float);"},
{MathAsin, "float asin(float);"}, {MathAsin, "float asin(float);"},
{MathAtan, "float atan(float);"}, {MathAtan, "float atan(float);"},
{MathAtan2, "float atan2(float, float);"}, {MathAtan2, "float atan2(float, float);"},
{MathCeil, "float ceil(float);"}, {MathCeil, "float ceil(float);"},
{MathCos, "float cos(float);"}, {MathCos, "float cos(float);"},
{MathCosh, "float cosh(float);"}, {MathCosh, "float cosh(float);"},
{MathExp, "float exp(float);"}, {MathExp, "float exp(float);"},
{MathFabs, "float fabs(float);"}, {MathFabs, "float fabs(float);"},
{MathFloor, "float floor(float);"}, {MathFloor, "float floor(float);"},
{MathFmod, "float fmod(float, float);"}, {MathFmod, "float fmod(float, float);"},
{MathFrexp, "float frexp(float, int *);"}, {MathFrexp, "float frexp(float, int *);"},
{MathLdexp, "float ldexp(float, int);"}, {MathLdexp, "float ldexp(float, int);"},
{MathLog, "float log(float);"}, {MathLog, "float log(float);"},
{MathLog10, "float log10(float);"}, {MathLog10, "float log10(float);"},
{MathModf, "float modf(float, float *);"}, {MathModf, "float modf(float, float *);"},
{MathPow, "float pow(float,float);"}, {MathPow, "float pow(float,float);"},
{MathRound, "float round(float);"}, {MathRound, "float round(float);"},
{MathSin, "float sin(float);"}, {MathSin, "float sin(float);"},
{MathSinh, "float sinh(float);"}, {MathSinh, "float sinh(float);"},
{MathSqrt, "float sqrt(float);"}, {MathSqrt, "float sqrt(float);"},
{MathTan, "float tan(float);"}, {MathTan, "float tan(float);"},
{MathTanh, "float tanh(float);"}, {MathTanh, "float tanh(float);"},
{NULL, NULL } {NULL, NULL }
}; };
/* creates various system-dependent definitions */ /* creates various system-dependent definitions */

View file

@ -724,54 +724,54 @@ typedef struct __FILEStruct FILE;\
/* all stdio functions */ /* all stdio functions */
struct LibraryFunction StdioFunctions[] = struct LibraryFunction StdioFunctions[] =
{ {
{StdioFopen, "FILE *fopen(char *, char *);"}, {StdioFopen, "FILE *fopen(char *, char *);"},
{StdioFreopen, "FILE *freopen(char *, char *, FILE *);"}, {StdioFreopen, "FILE *freopen(char *, char *, FILE *);"},
{StdioFclose, "int fclose(FILE *);"}, {StdioFclose, "int fclose(FILE *);"},
{StdioFread, "int fread(void *, int, int, FILE *);"}, {StdioFread, "int fread(void *, int, int, FILE *);"},
{StdioFwrite, "int fwrite(void *, int, int, FILE *);"}, {StdioFwrite, "int fwrite(void *, int, int, FILE *);"},
{StdioFgetc, "int fgetc(FILE *);"}, {StdioFgetc, "int fgetc(FILE *);"},
{StdioFgetc, "int getc(FILE *);"}, {StdioFgetc, "int getc(FILE *);"},
{StdioFgets, "char *fgets(char *, int, FILE *);"}, {StdioFgets, "char *fgets(char *, int, FILE *);"},
{StdioFputc, "int fputc(int, FILE *);"}, {StdioFputc, "int fputc(int, FILE *);"},
{StdioFputs, "int fputs(char *, FILE *);"}, {StdioFputs, "int fputs(char *, FILE *);"},
{StdioRemove, "int remove(char *);"}, {StdioRemove, "int remove(char *);"},
{StdioRename, "int rename(char *, char *);"}, {StdioRename, "int rename(char *, char *);"},
{StdioRewind, "void rewind(FILE *);"}, {StdioRewind, "void rewind(FILE *);"},
{StdioTmpfile, "FILE *tmpfile();"}, {StdioTmpfile, "FILE *tmpfile();"},
{StdioClearerr,"void clearerr(FILE *);"}, {StdioClearerr,"void clearerr(FILE *);"},
{StdioFeof, "int feof(FILE *);"}, {StdioFeof, "int feof(FILE *);"},
{StdioFerror, "int ferror(FILE *);"}, {StdioFerror, "int ferror(FILE *);"},
{StdioFileno, "int fileno(FILE *);"}, {StdioFileno, "int fileno(FILE *);"},
{StdioFflush, "int fflush(FILE *);"}, {StdioFflush, "int fflush(FILE *);"},
{StdioFgetpos, "int fgetpos(FILE *, int *);"}, {StdioFgetpos, "int fgetpos(FILE *, int *);"},
{StdioFsetpos, "int fsetpos(FILE *, int *);"}, {StdioFsetpos, "int fsetpos(FILE *, int *);"},
{StdioFtell, "int ftell(FILE *);"}, {StdioFtell, "int ftell(FILE *);"},
{StdioFseek, "int fseek(FILE *, int, int);"}, {StdioFseek, "int fseek(FILE *, int, int);"},
{StdioPerror, "void perror(char *);"}, {StdioPerror, "void perror(char *);"},
{StdioPutc, "int putc(char *, FILE *);"}, {StdioPutc, "int putc(char *, FILE *);"},
{StdioPutchar, "int putchar(int);"}, {StdioPutchar, "int putchar(int);"},
{StdioPutchar, "int fputchar(int);"}, {StdioPutchar, "int fputchar(int);"},
{StdioSetbuf, "void setbuf(FILE *, char *);"}, {StdioSetbuf, "void setbuf(FILE *, char *);"},
{StdioSetvbuf, "void setvbuf(FILE *, char *, int, int);"}, {StdioSetvbuf, "void setvbuf(FILE *, char *, int, int);"},
{StdioUngetc, "int ungetc(int, FILE *);"}, {StdioUngetc, "int ungetc(int, FILE *);"},
{StdioPuts, "int puts(char *);"}, {StdioPuts, "int puts(char *);"},
{StdioGets, "char *gets(char *);"}, {StdioGets, "char *gets(char *);"},
{StdioGetchar, "int getchar();"}, {StdioGetchar, "int getchar();"},
{StdioPrintf, "int printf(char *, ...);"}, {StdioPrintf, "int printf(char *, ...);"},
{StdioFprintf, "int fprintf(FILE *, char *, ...);"}, {StdioFprintf, "int fprintf(FILE *, char *, ...);"},
{StdioSprintf, "int sprintf(char *, char *, ...);"}, {StdioSprintf, "int sprintf(char *, char *, ...);"},
{StdioSnprintf,"int snprintf(char *, int, char *, ...);"}, {StdioSnprintf,"int snprintf(char *, int, char *, ...);"},
{StdioScanf, "int scanf(char *, ...);"}, {StdioScanf, "int scanf(char *, ...);"},
{StdioFscanf, "int fscanf(FILE *, char *, ...);"}, {StdioFscanf, "int fscanf(FILE *, char *, ...);"},
{StdioSscanf, "int sscanf(char *, char *, ...);"}, {StdioSscanf, "int sscanf(char *, char *, ...);"},
{StdioVprintf, "int vprintf(char *, va_list);"}, {StdioVprintf, "int vprintf(char *, va_list);"},
{StdioVfprintf,"int vfprintf(FILE *, char *, va_list);"}, {StdioVfprintf,"int vfprintf(FILE *, char *, va_list);"},
{StdioVsprintf,"int vsprintf(char *, char *, va_list);"}, {StdioVsprintf,"int vsprintf(char *, char *, va_list);"},
{StdioVsnprintf,"int vsnprintf(char *, int, char *, va_list);"}, {StdioVsnprintf,"int vsnprintf(char *, int, char *, va_list);"},
{StdioVscanf, "int vscanf(char *, va_list);"}, {StdioVscanf, "int vscanf(char *, va_list);"},
{StdioVfscanf, "int vfscanf(FILE *, char *, va_list);"}, {StdioVfscanf, "int vfscanf(FILE *, char *, va_list);"},
{StdioVsscanf, "int vsscanf(char *, char *, va_list);"}, {StdioVsscanf, "int vsscanf(char *, char *, va_list);"},
{NULL, NULL} {NULL, NULL}
}; };
/* creates various system-dependent definitions */ /* creates various system-dependent definitions */

View file

@ -159,31 +159,31 @@ typedef struct { \
/* all stdlib.h functions */ /* all stdlib.h functions */
struct LibraryFunction StdlibFunctions[] = struct LibraryFunction StdlibFunctions[] =
{ {
{StdlibAtof, "float atof(char *);"}, {StdlibAtof, "float atof(char *);"},
{StdlibStrtod, "float strtod(char *,char **);"}, {StdlibStrtod, "float strtod(char *,char **);"},
{StdlibAtoi, "int atoi(char *);"}, {StdlibAtoi, "int atoi(char *);"},
{StdlibAtol, "int atol(char *);"}, {StdlibAtol, "int atol(char *);"},
{StdlibStrtol, "int strtol(char *,char **,int);"}, {StdlibStrtol, "int strtol(char *,char **,int);"},
{StdlibStrtoul, "int strtoul(char *,char **,int);"}, {StdlibStrtoul, "int strtoul(char *,char **,int);"},
{StdlibMalloc, "void *malloc(int);"}, {StdlibMalloc, "void *malloc(int);"},
{StdlibCalloc, "void *calloc(int,int);"}, {StdlibCalloc, "void *calloc(int,int);"},
{StdlibRealloc, "void *realloc(void *,int);"}, {StdlibRealloc, "void *realloc(void *,int);"},
{StdlibFree, "void free(void *);"}, {StdlibFree, "void free(void *);"},
{StdlibRand, "int rand();"}, {StdlibRand, "int rand();"},
{StdlibSrand, "void srand(int);"}, {StdlibSrand, "void srand(int);"},
{StdlibAbort, "void abort();"}, {StdlibAbort, "void abort();"},
{StdlibExit, "void exit(int);"}, {StdlibExit, "void exit(int);"},
{StdlibGetenv, "char *getenv(char *);"}, {StdlibGetenv, "char *getenv(char *);"},
{StdlibSystem, "int system(char *);"}, {StdlibSystem, "int system(char *);"},
/* {StdlibBsearch, "void *bsearch(void *,void *,int,int,int (*)());"}, */ /* {StdlibBsearch, "void *bsearch(void *,void *,int,int,int (*)());"}, */
/* {StdlibQsort, "void *qsort(void *,int,int,int (*)());"}, */ /* {StdlibQsort, "void *qsort(void *,int,int,int (*)());"}, */
{StdlibAbs, "int abs(int);"}, {StdlibAbs, "int abs(int);"},
{StdlibLabs, "int labs(int);"}, {StdlibLabs, "int labs(int);"},
#if 0 #if 0
{StdlibDiv, "div_t div(int);"}, {StdlibDiv, "div_t div(int);"},
{StdlibLdiv, "ldiv_t ldiv(int);"}, {StdlibLdiv, "ldiv_t ldiv(int);"},
#endif #endif
{NULL, NULL} {NULL, NULL}
}; };
/* creates various system-dependent definitions */ /* creates various system-dependent definitions */

View file

@ -102,21 +102,21 @@ typedef int clock_t;\
/* all string.h functions */ /* all string.h functions */
struct LibraryFunction StdTimeFunctions[] = struct LibraryFunction StdTimeFunctions[] =
{ {
{StdAsctime, "char *asctime(struct tm *);"}, {StdAsctime, "char *asctime(struct tm *);"},
{StdClock, "time_t clock();"}, {StdClock, "time_t clock();"},
{StdCtime, "char *ctime(int *);"}, {StdCtime, "char *ctime(int *);"},
{StdDifftime, "double difftime(int, int);"}, {StdDifftime, "double difftime(int, int);"},
{StdGmtime, "struct tm *gmtime(int *);"}, {StdGmtime, "struct tm *gmtime(int *);"},
{StdLocaltime, "struct tm *localtime(int *);"}, {StdLocaltime, "struct tm *localtime(int *);"},
{StdMktime, "int mktime(struct tm *ptm);"}, {StdMktime, "int mktime(struct tm *ptm);"},
{StdTime, "int time(int *);"}, {StdTime, "int time(int *);"},
{StdStrftime, "int strftime(char *, int, char *, struct tm *);"}, {StdStrftime, "int strftime(char *, int, char *, struct tm *);"},
#ifndef WIN32 #ifndef WIN32
{StdStrptime, "char *strptime(char *, char *, struct tm *);"}, {StdStrptime, "char *strptime(char *, char *, struct tm *);"},
{StdGmtime_r, "struct tm *gmtime_r(int *, struct tm *);"}, {StdGmtime_r, "struct tm *gmtime_r(int *, struct tm *);"},
{StdTimegm, "int timegm(struct tm *);"}, {StdTimegm, "int timegm(struct tm *);"},
#endif #endif
{NULL, NULL} {NULL, NULL}
}; };

View file

@ -496,91 +496,91 @@ typedef int intptr_t;\
/* all unistd.h functions */ /* all unistd.h functions */
struct LibraryFunction UnistdFunctions[] = struct LibraryFunction UnistdFunctions[] =
{ {
{UnistdAccess, "int access(char *, int);"}, {UnistdAccess, "int access(char *, int);"},
{UnistdAlarm, "unsigned int alarm(unsigned int);"}, {UnistdAlarm, "unsigned int alarm(unsigned int);"},
/* {UnistdBrk, "int brk(void *);"}, */ /* {UnistdBrk, "int brk(void *);"}, */
{UnistdChdir, "int chdir(char *);"}, {UnistdChdir, "int chdir(char *);"},
{UnistdChroot, "int chroot(char *);"}, {UnistdChroot, "int chroot(char *);"},
{UnistdChown, "int chown(char *, uid_t, gid_t);"}, {UnistdChown, "int chown(char *, uid_t, gid_t);"},
{UnistdClose, "int close(int);"}, {UnistdClose, "int close(int);"},
{UnistdConfstr, "size_t confstr(int, char *, size_t);"}, {UnistdConfstr, "size_t confstr(int, char *, size_t);"},
{UnistdCtermid, "char *ctermid(char *);"}, {UnistdCtermid, "char *ctermid(char *);"},
/* {UnistdCuserid, "char *cuserid(char *);"}, */ /* {UnistdCuserid, "char *cuserid(char *);"}, */
{UnistdDup, "int dup(int);"}, {UnistdDup, "int dup(int);"},
{UnistdDup2, "int dup2(int, int);"}, {UnistdDup2, "int dup2(int, int);"},
/* {UnistdEncrypt, "void encrypt(char[64], int);"}, */ /* {UnistdEncrypt, "void encrypt(char[64], int);"}, */
/* {UnistdExecl, "int execl(char *, char *, ...);"}, */ /* {UnistdExecl, "int execl(char *, char *, ...);"}, */
/* {UnistdExecle, "int execle(char *, char *, ...);"}, */ /* {UnistdExecle, "int execle(char *, char *, ...);"}, */
/* {UnistdExeclp, "int execlp(char *, char *, ...);"}, */ /* {UnistdExeclp, "int execlp(char *, char *, ...);"}, */
/* {UnistdExecv, "int execv(char *, char *[]);"}, */ /* {UnistdExecv, "int execv(char *, char *[]);"}, */
/* {UnistdExecve, "int execve(char *, char *[], char *[]);"}, */ /* {UnistdExecve, "int execve(char *, char *[], char *[]);"}, */
/* {UnistdExecvp, "int execvp(char *, char *[]);"}, */ /* {UnistdExecvp, "int execvp(char *, char *[]);"}, */
{Unistd_Exit, "void _exit(int);"}, {Unistd_Exit, "void _exit(int);"},
{UnistdFchown, "int fchown(int, uid_t, gid_t);"}, {UnistdFchown, "int fchown(int, uid_t, gid_t);"},
{UnistdFchdir, "int fchdir(int);"}, {UnistdFchdir, "int fchdir(int);"},
{UnistdFdatasync, "int fdatasync(int);"}, {UnistdFdatasync, "int fdatasync(int);"},
{UnistdFork, "pid_t fork(void);"}, {UnistdFork, "pid_t fork(void);"},
{UnistdFpathconf, "long fpathconf(int, int);"}, {UnistdFpathconf, "long fpathconf(int, int);"},
{UnistdFsync, "int fsync(int);"}, {UnistdFsync, "int fsync(int);"},
{UnistdFtruncate, "int ftruncate(int, off_t);"}, {UnistdFtruncate, "int ftruncate(int, off_t);"},
{UnistdGetcwd, "char *getcwd(char *, size_t);"}, {UnistdGetcwd, "char *getcwd(char *, size_t);"},
{UnistdGetdtablesize, "int getdtablesize(void);"}, {UnistdGetdtablesize, "int getdtablesize(void);"},
{UnistdGetegid, "gid_t getegid(void);"}, {UnistdGetegid, "gid_t getegid(void);"},
{UnistdGeteuid, "uid_t geteuid(void);"}, {UnistdGeteuid, "uid_t geteuid(void);"},
{UnistdGetgid, "gid_t getgid(void);"}, {UnistdGetgid, "gid_t getgid(void);"},
/* {UnistdGetgroups, "int getgroups(int, gid_t []);"}, */ /* {UnistdGetgroups, "int getgroups(int, gid_t []);"}, */
{UnistdGethostid, "long gethostid(void);"}, {UnistdGethostid, "long gethostid(void);"},
{UnistdGetlogin, "char *getlogin(void);"}, {UnistdGetlogin, "char *getlogin(void);"},
{UnistdGetlogin_r, "int getlogin_r(char *, size_t);"}, {UnistdGetlogin_r, "int getlogin_r(char *, size_t);"},
/* {UnistdGetopt, "int getopt(int, char * [], char *);"}, */ /* {UnistdGetopt, "int getopt(int, char * [], char *);"}, */
{UnistdGetpagesize, "int getpagesize(void);"}, {UnistdGetpagesize, "int getpagesize(void);"},
{UnistdGetpass, "char *getpass(char *);"}, {UnistdGetpass, "char *getpass(char *);"},
/* {UnistdGetpgid, "pid_t getpgid(pid_t);"}, */ /* {UnistdGetpgid, "pid_t getpgid(pid_t);"}, */
{UnistdGetpgrp, "pid_t getpgrp(void);"}, {UnistdGetpgrp, "pid_t getpgrp(void);"},
{UnistdGetpid, "pid_t getpid(void);"}, {UnistdGetpid, "pid_t getpid(void);"},
{UnistdGetppid, "pid_t getppid(void);"}, {UnistdGetppid, "pid_t getppid(void);"},
/* {UnistdGetsid, "pid_t getsid(pid_t);"}, */ /* {UnistdGetsid, "pid_t getsid(pid_t);"}, */
{UnistdGetuid, "uid_t getuid(void);"}, {UnistdGetuid, "uid_t getuid(void);"},
{UnistdGetwd, "char *getwd(char *);"}, {UnistdGetwd, "char *getwd(char *);"},
{UnistdIsatty, "int isatty(int);"}, {UnistdIsatty, "int isatty(int);"},
{UnistdLchown, "int lchown(char *, uid_t, gid_t);"}, {UnistdLchown, "int lchown(char *, uid_t, gid_t);"},
{UnistdLink, "int link(char *, char *);"}, {UnistdLink, "int link(char *, char *);"},
{UnistdLockf, "int lockf(int, int, off_t);"}, {UnistdLockf, "int lockf(int, int, off_t);"},
{UnistdLseek, "off_t lseek(int, off_t, int);"}, {UnistdLseek, "off_t lseek(int, off_t, int);"},
{UnistdNice, "int nice(int);"}, {UnistdNice, "int nice(int);"},
{UnistdPathconf, "long pathconf(char *, int);"}, {UnistdPathconf, "long pathconf(char *, int);"},
{UnistdPause, "int pause(void);"}, {UnistdPause, "int pause(void);"},
/* {UnistdPipe, "int pipe(int [2]);"}, */ /* {UnistdPipe, "int pipe(int [2]);"}, */
/* {UnistdPread, "ssize_t pread(int, void *, size_t, off_t);"}, */ /* {UnistdPread, "ssize_t pread(int, void *, size_t, off_t);"}, */
/* {UnistdPthread_atfork,"int pthread_atfork(void (*)(void), void (*)(void), void(*)(void));"}, */ /* {UnistdPthread_atfork, "int pthread_atfork(void (*)(void), void (*)(void), void(*)(void));"}, */
/* {UnistdPwrite, "ssize_t pwrite(int, void *, size_t, off_t);"}, */ /* {UnistdPwrite, "ssize_t pwrite(int, void *, size_t, off_t);"}, */
{UnistdRead, "ssize_t read(int, void *, size_t);"}, {UnistdRead, "ssize_t read(int, void *, size_t);"},
{UnistdReadlink, "int readlink(char *, char *, size_t);"}, {UnistdReadlink, "int readlink(char *, char *, size_t);"},
{UnistdRmdir, "int rmdir(char *);"}, {UnistdRmdir, "int rmdir(char *);"},
{UnistdSbrk, "void *sbrk(intptr_t);"}, {UnistdSbrk, "void *sbrk(intptr_t);"},
{UnistdSetgid, "int setgid(gid_t);"}, {UnistdSetgid, "int setgid(gid_t);"},
{UnistdSetpgid, "int setpgid(pid_t, pid_t);"}, {UnistdSetpgid, "int setpgid(pid_t, pid_t);"},
{UnistdSetpgrp, "pid_t setpgrp(void);"}, {UnistdSetpgrp, "pid_t setpgrp(void);"},
{UnistdSetregid, "int setregid(gid_t, gid_t);"}, {UnistdSetregid, "int setregid(gid_t, gid_t);"},
{UnistdSetreuid, "int setreuid(uid_t, uid_t);"}, {UnistdSetreuid, "int setreuid(uid_t, uid_t);"},
{UnistdSetsid, "pid_t setsid(void);"}, {UnistdSetsid, "pid_t setsid(void);"},
{UnistdSetuid, "int setuid(uid_t);"}, {UnistdSetuid, "int setuid(uid_t);"},
{UnistdSleep, "unsigned int sleep(unsigned int);"}, {UnistdSleep, "unsigned int sleep(unsigned int);"},
/* {UnistdSwab, "void swab(void *, void *, ssize_t);"}, */ /* {UnistdSwab, "void swab(void *, void *, ssize_t);"}, */
{UnistdSymlink, "int symlink(char *, char *);"}, {UnistdSymlink, "int symlink(char *, char *);"},
{UnistdSync, "void sync(void);"}, {UnistdSync, "void sync(void);"},
{UnistdSysconf, "long sysconf(int);"}, {UnistdSysconf, "long sysconf(int);"},
{UnistdTcgetpgrp, "pid_t tcgetpgrp(int);"}, {UnistdTcgetpgrp, "pid_t tcgetpgrp(int);"},
{UnistdTcsetpgrp, "int tcsetpgrp(int, pid_t);"}, {UnistdTcsetpgrp, "int tcsetpgrp(int, pid_t);"},
{UnistdTruncate, "int truncate(char *, off_t);"}, {UnistdTruncate, "int truncate(char *, off_t);"},
{UnistdTtyname, "char *ttyname(int);"}, {UnistdTtyname, "char *ttyname(int);"},
{UnistdTtyname_r, "int ttyname_r(int, char *, size_t);"}, {UnistdTtyname_r, "int ttyname_r(int, char *, size_t);"},
{UnistdUalarm, "useconds_t ualarm(useconds_t, useconds_t);"}, {UnistdUalarm, "useconds_t ualarm(useconds_t, useconds_t);"},
{UnistdUnlink, "int unlink(char *);"}, {UnistdUnlink, "int unlink(char *);"},
{UnistdUsleep, "int usleep(useconds_t);"}, {UnistdUsleep, "int usleep(useconds_t);"},
{UnistdVfork, "pid_t vfork(void);"}, {UnistdVfork, "pid_t vfork(void);"},
{UnistdWrite, "ssize_t write(int, void *, size_t);"}, {UnistdWrite, "ssize_t write(int, void *, size_t);"},
{NULL, NULL} {NULL, NULL}
}; };
/* creates various system-dependent definitions */ /* creates various system-dependent definitions */