diff options
Diffstat (limited to 'conform/data')
-rw-r--r-- | conform/data/aio.h-data | 43 | ||||
-rw-r--r-- | conform/data/assert.h-data | 1 | ||||
-rw-r--r-- | conform/data/cpio.h-data | 23 | ||||
-rw-r--r-- | conform/data/ctype.h-data | 25 | ||||
-rw-r--r-- | conform/data/dirent.h-data | 20 | ||||
-rw-r--r-- | conform/data/dlfcn.h-data | 11 | ||||
-rw-r--r-- | conform/data/errno.h-data | 87 | ||||
-rw-r--r-- | conform/data/fcntl.h-data | 55 | ||||
-rw-r--r-- | conform/data/float.h-data | 39 | ||||
-rw-r--r-- | conform/data/fmtmsg.h-data | 60 | ||||
-rw-r--r-- | conform/data/fnmatch.h-data | 9 | ||||
-rw-r--r-- | conform/data/ftw.h-data | 21 | ||||
-rw-r--r-- | conform/data/glob.h-data | 25 | ||||
-rw-r--r-- | conform/data/grp.h-data | 22 | ||||
-rw-r--r-- | conform/data/iconv.h-data | 7 | ||||
-rw-r--r-- | conform/data/inttypes.h-data | 13 | ||||
-rw-r--r-- | conform/data/iso646.h-data | 11 | ||||
-rw-r--r-- | conform/data/langinfo.h-data | 61 | ||||
-rw-r--r-- | conform/data/libgen.h-data | 4 | ||||
-rw-r--r-- | conform/data/locale.h-data | 34 | ||||
-rw-r--r-- | conform/data/math.h-data | 158 |
21 files changed, 729 insertions, 0 deletions
diff --git a/conform/data/aio.h-data b/conform/data/aio.h-data new file mode 100644 index 0000000000..75698cb39b --- /dev/null +++ b/conform/data/aio.h-data @@ -0,0 +1,43 @@ +#ifndef ISO +type {struct aiocb} + +// Test elements of the AIO control struct. +element {struct aiocb} int aio_fildes +element {struct aiocb} off_t aio_offset +element {struct aiocb} {volatile void*} aio_buf +element {struct aiocb} size_t aio_nbytes +element {struct aiocb} int aio_reqprio +element {struct aiocb} {struct sigevent} aio_sigevent +element {struct aiocb} int aio_lio_opcode + +constant AIO_CANCELED +constant AIO_NOTCANCELED +constant AIO_ALLDONE +constant LIO_WAIT +constant LIO_NOWAIT +constant LIO_READ +constant LIO_WRITE +constant LIO_NOP + +function int aio_cancel (int, struct aiocb*) +function int aio_error (const struct aiocb*) +function int aio_fsync (int, struct aiocb*) +function int aio_read (struct aiocb*) +function ssize_t aio_return (struct aiocb*) +function int aio_suspend (const struct aiocb* const[], int, const struct timespec*) +function int aio_write (struct aiocb*) +function int lio_listio (int, struct aiocb *const[], int, struct sigevent*) + +# if !defined POSIX +allow-header fcntl.h +allow-header signal.h +allow-header sys/types.h +allow-header time.h +# endif + +allow aio_* +allow lio_* +allow AIO_* +allow LIO_* +allow *_t +#endif diff --git a/conform/data/assert.h-data b/conform/data/assert.h-data new file mode 100644 index 0000000000..60a559cb8b --- /dev/null +++ b/conform/data/assert.h-data @@ -0,0 +1 @@ +macro assert diff --git a/conform/data/cpio.h-data b/conform/data/cpio.h-data new file mode 100644 index 0000000000..bccbc3057c --- /dev/null +++ b/conform/data/cpio.h-data @@ -0,0 +1,23 @@ +#ifndef ISO +constant C_IRUSR 0000400 +constant C_IWUSR 0000200 +constant C_IXUSR 0000100 +constant C_IRGRP 0000040 +constant C_IWGRP 0000020 +constant C_IXGRP 0000010 +constant C_IROTH 0000004 +constant C_IWOTH 0000002 +constant C_IXOTH 0000001 +constant C_ISUID 0004000 +constant C_ISGID 0002000 +constant C_ISVTX 0001000 +constant C_ISDIR 0040000 +constant C_ISFIFO 0010000 +constant C_ISREG 0100000 +constant C_ISBLK 0060000 +constant C_ISCHR 0020000 +constant C_ISCTG 0110000 +constant C_ISLNK 0120000 +constant C_ISSOCK 0140000 +constant MAGIC +#endif diff --git a/conform/data/ctype.h-data b/conform/data/ctype.h-data new file mode 100644 index 0000000000..ac0dbb6367 --- /dev/null +++ b/conform/data/ctype.h-data @@ -0,0 +1,25 @@ +function int isalnum (int) +function int isalpha (int) +function int iscntrl (int) +function int isdigit (int) +function int isgraph (int) +function int islower (int) +function int isprint (int) +function int ispunct (int) +function int isspace (int) +function int isupper (int) +function int isxdigit (int) +function int tolower (int) +function int toupper (int) + +#ifndef ISO +function int isascii (int) +function int toascii (int) +function int _toupper (int) +function int _tolower (int) + +# The following is not entirely correct. It should be is[a-z]* but the +# replacement fnmatch implementation doesn't grok it. +allow is* +allow to* +#endif diff --git a/conform/data/dirent.h-data b/conform/data/dirent.h-data new file mode 100644 index 0000000000..4dbe552c11 --- /dev/null +++ b/conform/data/dirent.h-data @@ -0,0 +1,20 @@ +#ifndef ISO +type DIR + +type {struct dirent} + +element {struct dirent} ino_t d_ino +element {struct dirent} char d_name [] + +type ino_t + +function int closedir (DIR*) +function DIR* opendir (const char*) +function {struct dirent*} readdir (DIR*) +function int readdir_r (DIR*, struct dirent*, struct dirent**) +function void rewinddir (DIR*) +function void seekdir (DIR*, long int) +function {long int} telldir (DIR*) + +allow d_* +#endif diff --git a/conform/data/dlfcn.h-data b/conform/data/dlfcn.h-data new file mode 100644 index 0000000000..17600da641 --- /dev/null +++ b/conform/data/dlfcn.h-data @@ -0,0 +1,11 @@ +#if !defined ISO && !defined POSIX +macro RTLD_LAZY +macro RTLD_NOW +macro RTLD_GLOBAL +macro RTLD_LOCAL + +function {void*} dlopen (const char*, int) +function {void*} dlsym (void *, const char*) +function int dlclose (void*) +function {char*} dlerror (void) +#endif diff --git a/conform/data/errno.h-data b/conform/data/errno.h-data new file mode 100644 index 0000000000..e21e147ba3 --- /dev/null +++ b/conform/data/errno.h-data @@ -0,0 +1,87 @@ +constant EDOM +constant EILSEQ +constant ERANGE + +#ifndef ISO +constant E2BIG +constant EACCES +constant EADDRINUSE +constant EADDRNOTAVAIL +constant EAFNOSUPPORT +constant EAGAIN +constant EALREADY +constant EBADF +constant EBADMSG +constant EBUSY +constant ECANCELED +constant ECHILD +constant ECONNABORTED +constant ECONNREFUSED +constant ECONNRESET +constant EDEADLK +constant EDESTADDRREQ +constant EDQUOT +constant EEXIST +constant EFAULT +constant EFBIG +constant EHOSTUNREACH +constant EIDRM +constant EINPROGRESS +constant EINTR +constant EINVAL +constant EIO +constant EISCONN +constant EISDIR +constant ELOOP +constant EMFILE +constant EMLINK +constant EMSGSIZE +constant EMULTIHOP +constant ENAMETOOLONG +constant ENETDOWN +constant ENETUNREACH +constant ENFILE +constant ENOBUFS +constant ENODATA +constant ENODEV +constant ENOENT +constant ENOEXEC +constant ENOLCK +constant ENOLINK +constant ENOMEM +constant ENOMSG +constant ENOPROTOOPT +constant ENOSPC +constant ENOSR +constant ENOSTR +constant ENOSYS +constant ENOTCONN +constant ENOTDIR +constant ENOTEMPTY +constant ENOTSOCK +constant ENOTSUP +constant ENOTTY +constant ENXIO +constant EOPNOTSUPP +constant EOVERFLOW +constant EPERM +constant EPIPE +constant EPROTO +constant EPROTONOSUPPORT +constant EPROTOTYPE +constant EROFS +constant ESPIPE +constant ESRCH +constant ESTALE +constant ETIME +constant ETIMEDOUT +constant ETXTBSY +constant EWOULDBLOCK +constant EXDEV + +# variable int errno +allow errno + +allow E* +allow *_t +#endif diff --git a/conform/data/fcntl.h-data b/conform/data/fcntl.h-data new file mode 100644 index 0000000000..0344ce973b --- /dev/null +++ b/conform/data/fcntl.h-data @@ -0,0 +1,55 @@ +#if !defined ISO && !defined POSIX +constant F_DUPFD +constant F_GETFD +constant F_SETFD +constant F_GETFL +constant F_SETFL +constant F_GETLK +constant F_SETLK +constant F_SETLKW + +constant FD_CLOEXEC + +constant F_RDLCK +constant F_UNLCK +constant F_WRLCK + +constant O_CREAT +constant O_EXCL +constant O_NOCTTY +constant O_TRUNC + +constant O_APPEND +constant O_DSYNC +constant O_NONBLOCK +constant O_RSYNC +constant O_SYNC + +constant O_ACCMODE + +constant O_RDONLY +constant O_RDWR +constant O_WRONLY + +type {struct flock} + +element {struct flock} short l_type +element {struct flock} short l_whence +element {struct flock} off_t l_start +element {struct flock} off_t l_len +element {struct flock} pid_t l_pid + +type mode_t +type off_t +type pid_t + +function int creat (const char*, mode_t) +function int fcntl (int, int, ...) +function int open (const char*, int, ...) + +allow-header sys/stat.h +allow-header unistd.h + +allow *_t +allow l_* +#endif diff --git a/conform/data/float.h-data b/conform/data/float.h-data new file mode 100644 index 0000000000..bdc28d12b3 --- /dev/null +++ b/conform/data/float.h-data @@ -0,0 +1,39 @@ +macro FLT_RADIX + +constant FLT_ROUNDS + +macro FLT_MANT_DIG +macro DBL_MANT_DIG +macro LDBL_MANT_DIG + +macro FLT_DIG +macro DBL_DIG +macro LDBL_DIG + +macro FLT_MIN_EXP +macro DBL_MIN_EXP +macro LDBL_MIN_EXP + +macro FLT_MIN_10_EXP +macro DBL_MIN_10_EXP +macro LDBL_MIN_10_EXP + +macro FLT_MAX_EXP +macro DBL_MAX_EXP +macro LDBL_MAX_EXP + +macro FLT_MAX_10_EXP +macro DBL_MAX_10_EXP +macro LDBL_MAX_10_EXP + +macro FLT_MAX +macro DBL_MAX +macro LDBL_MAX + +macro FLT_EPSILON +macro DBL_EPSILON +macro LDBL_EPSILON + +macro FLT_MIN +macro DBL_MIN +macro LDBL_MIN diff --git a/conform/data/fmtmsg.h-data b/conform/data/fmtmsg.h-data new file mode 100644 index 0000000000..1b88372075 --- /dev/null +++ b/conform/data/fmtmsg.h-data @@ -0,0 +1,60 @@ +#if !defined ISO && !defined POSIX +macro MM_HARD +constant MM_HARD + +macro MM_SOFT +constant MM_SOFT + +macro MM_FIRM +constant MM_FIRM + +macro MM_APPL +constant MM_APPL + +macro MM_UTIL +constant MM_UTIL + +macro MM_OPSYS +constant MM_OPSYS + +macro MM_RECOVER +constant MM_RECOVER + +macro MM_NRECOV +constant MM_NRECOV + +macro MM_HALT +constant MM_HALT + +macro MM_ERROR +constant MM_ERROR + +macro MM_WARNING +constant MM_WARNING + +macro MM_INFO +constant MM_INFO + +macro MM_NOSEV +constant MM_NOSEV + +macro MM_PRINT +constant MM_PRINT + +macro MM_CONSOLE +constant MM_CONSOLE + +constant MM_NULLLBL 0 +constant MM_NULLSEV 0 +constant MM_NULLMC 0 +constant MM_NULLTXT 0 +constant MM_NULLACT 0 +constant MM_NULLTAG 0 + +macro MM_OK +macro MM_NOTOK +macro MM_NOMSG +macro MM_NOCON + +function int fmtmsg (long, const char*, int, const char*, const char*, const char*) +#endif diff --git a/conform/data/fnmatch.h-data b/conform/data/fnmatch.h-data new file mode 100644 index 0000000000..b00fa45e66 --- /dev/null +++ b/conform/data/fnmatch.h-data @@ -0,0 +1,9 @@ +#ifndef ISO +constant FNM_NOMATCH +constant FNM_PATHNAME +constant FNM_PERIOD +constant FNM_NOESCAPE +constant FNM_NOSYS + +function int fnmatch (const char*, const char*, int) +#endif diff --git a/conform/data/ftw.h-data b/conform/data/ftw.h-data new file mode 100644 index 0000000000..b3fa283922 --- /dev/null +++ b/conform/data/ftw.h-data @@ -0,0 +1,21 @@ +#if !defined ISO && !defined POSIX +type {struct FTW} +element {struct FTW} int base +element {struct FTW} int level + +macro FTW_F +macro FTW_D +macro FTW_DNR +macro FTW_DP +macro FTW_NS +macro FTW_SL +macro FTW_SLN + +macro FTW_PHYS +macro FTW_MOUNT +macro FTW_DEPTH +macro FTW_CHDIR + +function int ftw (const char*, int (*) (const char *, const struct stat*, int), int) +function int nftw (const char*, int (*) (const char *, const struct stat*, int, FTW *), int, int) +#endif diff --git a/conform/data/glob.h-data b/conform/data/glob.h-data new file mode 100644 index 0000000000..fd24e7fa79 --- /dev/null +++ b/conform/data/glob.h-data @@ -0,0 +1,25 @@ +#ifndef ISO +type glob_t +element glob_t size_t gl_pathc +element glob_t {char**} gl_pathv +element glob_t size_t gl_offs + +constant GLOB_APPEND +constant GLOB_DOOFS +constant GLOB_ERR +constant GLOB_MARK +constant GLOB_NOCHECK +constant GLOB_NOESCAPE +constant GLOB_NOSORT + +constant GLOB_ABORTED +constant GLOB_NOMATCH +constant GLOB_NOSPACE +constant GLOB_NOSYS + +function int glob (const char*, int, int (*) (const char*, int), glob_t*) +function void globfree (glob_t) + +allow gl_* +allow GLOB_* +#endif diff --git a/conform/data/grp.h-data b/conform/data/grp.h-data new file mode 100644 index 0000000000..664efb0274 --- /dev/null +++ b/conform/data/grp.h-data @@ -0,0 +1,22 @@ +#ifndef ISO +type {struct group} +element {struct group} {char*} gr_name +element {struct group} gid_t gr_gid +element {struct group} {char**} gr_mem + +# ifndef POSIX +type gid_t +# endif + +function {struct group*} getgrgid (gid_t) +function {struct group*} getgrnam (const char*) +# ifndef POSIX +function int getgrgid_r (gid_t, struct group*, char *, size_t, struct group**) +function int getgrnam_r (const char *, struct group *, char *, size_t, struct group**) +function {struct group*} getgrent (void) +function void endgrent (void) +function void setgrent (void) +# endif + +allow gr_ +#endif diff --git a/conform/data/iconv.h-data b/conform/data/iconv.h-data new file mode 100644 index 0000000000..05523e1595 --- /dev/null +++ b/conform/data/iconv.h-data @@ -0,0 +1,7 @@ +#if !defined ISO && !defined POSIX +type iconv_t + +function iconv_t iconv_open (const char*, const char*) +function size_t iconv (iconv_t, char**, size_t*, char**, size_t*) +function int iconv_close (iconv_t) +#endif diff --git a/conform/data/inttypes.h-data b/conform/data/inttypes.h-data new file mode 100644 index 0000000000..204a7cf64c --- /dev/null +++ b/conform/data/inttypes.h-data @@ -0,0 +1,13 @@ +type int8_t +type int16_t +type int32_t +type int64_t +type uint8_t +type uint16_t +type uint32_t +type uint64_t +type intptr_t +type uintptr_t + +allow PRI* +allow SCN* diff --git a/conform/data/iso646.h-data b/conform/data/iso646.h-data new file mode 100644 index 0000000000..8339da3f1f --- /dev/null +++ b/conform/data/iso646.h-data @@ -0,0 +1,11 @@ +macro and +macro and_eq +macro bitand +macro bitor +macro compl +macro not +macro not_eq +macro or +macro or_eq +macro xor +macro xor_eq diff --git a/conform/data/langinfo.h-data b/conform/data/langinfo.h-data new file mode 100644 index 0000000000..0e313e38c8 --- /dev/null +++ b/conform/data/langinfo.h-data @@ -0,0 +1,61 @@ +#if !defined ISO && !defined POSIX +constant CODESET +constant D_T_FMT +constant D_FMT +constant T_FMT +constant T_FMT_AMPM +constant AM_STR +constant PM_STR +constant DAY_1 +constant DAY_2 +constant DAY_3 +constant DAY_4 +constant DAY_5 +constant DAY_6 +constant DAY_7 +constant ABDAY_1 +constant ABDAY_2 +constant ABDAY_3 +constant ABDAY_4 +constant ABDAY_5 +constant ABDAY_6 +constant ABDAY_7 +constant MON_1 +constant MON_2 +constant MON_3 +constant MON_4 +constant MON_5 +constant MON_6 +constant MON_7 +constant MON_8 +constant MON_9 +constant MON_10 +constant MON_11 +constant MON_12 +constant ABMON_1 +constant ABMON_2 +constant ABMON_3 +constant ABMON_4 +constant ABMON_5 +constant ABMON_6 +constant ABMON_7 +constant ABMON_8 +constant ABMON_9 +constant ABMON_10 +constant ABMON_11 +constant ABMON_12 +constant ERA +constant ERA_D_FMT +constant ERA_D_T_FMT +constant ERA_T_FMT +constant ALT_DIGITS +constant RADIXCHAR +constant THOUSEP +constant YESEXPR +constant NOEXPR +constant CRNCYSTR + +function {char*} nl_langinfo (nl_item) + +allow-header nl_types.h +#endif diff --git a/conform/data/libgen.h-data b/conform/data/libgen.h-data new file mode 100644 index 0000000000..97980e9a53 --- /dev/null +++ b/conform/data/libgen.h-data @@ -0,0 +1,4 @@ +#if !defined ISO && !defined POSIX +function {char*} basename (char*) +function {char*} dirname (char*) +#endif diff --git a/conform/data/locale.h-data b/conform/data/locale.h-data new file mode 100644 index 0000000000..c1325e30e0 --- /dev/null +++ b/conform/data/locale.h-data @@ -0,0 +1,34 @@ +type {struct lconv} +element {struct lconv} {char*} currency_symbol +element {struct lconv} {char*} decimal_point +element {struct lconv} char frac_digits +element {struct lconv} {char*} grouping +element {struct lconv} {char*} int_curr_symbol +element {struct lconv} char int_frac_digits +element {struct lconv} {char*} mon_decimal_point +element {struct lconv} {char*} mon_thousands_sep +element {struct lconv} {char*} mon_grouping +element {struct lconv} {char*} negative_sign +element {struct lconv} char n_cs_precedes +element {struct lconv} char n_sep_by_space +element {struct lconv} char n_sign_posn +element {struct lconv} {char*} positive_sign +element {struct lconv} char p_cs_precedes +element {struct lconv} char p_sep_by_space +element {struct lconv} char p_sign_pos +element {struct lconv} {char*} thousands_sep + +constant NULL + +macro LC_ALL +macro LC_COLLATE +macro LC_CTYPE +macro LC_MESSAGES +macro LC_MONETARY +macro LC_NUMERIC +macro LC_TIME + +function {struct lconv*) localeconv (void) +function {char*} setlocale (int, const char*) + +allow LC_* diff --git a/conform/data/math.h-data b/conform/data/math.h-data new file mode 100644 index 0000000000..13f617577e --- /dev/null +++ b/conform/data/math.h-data @@ -0,0 +1,158 @@ +#if !defined ISO && !defined POSIX +constant M_E +constant M_LOG2E +constant M_LOG10E +constant M_LN2 +constant M_LN10 +constant M_PI +constant M_PI_2 +constant M_PI_4 +constant M_1_PI +constant M_2_PI +constant M_2_SQRTPI +constant M_SQRT2 +constant M_SQRT1_2 + +constant MAXFLOAT +constant HUGE_VAL + +function double acos (double) +function double asin (double) +function double atan (double) +function double atan2 (double, double) +function double ceil (double) +function double cos (double) +function double cosh (double) +function double exp (double) +function double fabs (double) +function double floor (double) +function double fmod (double, double) +function double frexp (double, int*) +function double ldexp (double, int) +function double log (double) +function double log10 (double) +function double pow (double, double) +function double sin (double) +function double sinh (double) +function double sqrt (double) +function double tan (double) +function double tanh (double) +function double erf (double) +function double erfc (double) +function double gamma (double) +function double hypot (double, double) +function double j0 (double) +function double j1 (double) +function double jn (double) +function double lgamma (double) +function double y0 (double) +function double y1 (double) +function double yn (double) +function int isnan (double) +function double acosh (double) +function double asinh (double) +function double atanh (double) +function double cbrt (double) +function double expm1 (double) +function int ilogb (double) +function double log1p (double) +function double logb (double) +function double nextafter (double, double) +function double remainder (double, double) +function double rint (double) +function double scalb (double, double) + +# variable signgam +allow signgam + +allow acosf +allow asinf +allow atanf +allow atan2f +allow ceilf +allow cosf +allow coshf +allow expf +allow fabsf +allow floorf +allow fmodf +allow frexpf +allow ldexpf +allow logf +allow log10f +allow powf +allow sinf +allow sinhf +allow sqrtf +allow tanf +allow tanhf +allow erff +allow erfcf +allow gammaf +allow hypotf +allow j0f +allow j1f +allow jnf +allow lgammaf +allow y0f +allow y1f +allow ynf +allow isnanf +allow acoshf +allow asinhf +allow atanhf +allow cbrtf +allow expm1f +allow ilogbf +allow log1pf +allow logbf +allow nextafterf +allow remainderf +allow rintf +allow scalbf + +allow acosl +allow asinl +allow atanl +allow atan2l +allow ceill +allow cosl +allow coshl +allow expl +allow fabsl +allow floorl +allow fmodl +allow frexpl +allow ldexpl +allow logl +allow log10l +allow powl +allow sinl +allow sinhl +allow sqrtl +allow tanl +allow tanhl +allow erfl +allow erfcl +allow gammal +allow hypotl +allow j0l +allow j1l +allow jnl +allow lgammal +allow y0l +allow y1l +allow ynl +allow isnanl +allow acoshl +allow asinhl +allow atanhl +allow cbrtl +allow expm1l +allow ilogbl +allow log1pl +allow logbl +allow nextafterl +allow remainderl +allow rintl +allow scalbl |