Changeset 1624


Ignore:
Timestamp:
Nov 8, 2004, 2:06:04 AM (21 years ago)
Author:
bird
Message:

Updated some headers to 5.2/3 level.

Location:
trunk/src/emx/include
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.11
    r1623 r1624  
    500500
    501501/**
    502  * Worker called after __libc_Back_signalRaise() was called with a
    503  * preallocated signal queue entry. This function will make sure
    504  * we're not ending up with too many heap allocated packets in the
    505  * free list.
    506  */
    507 void __libc_Back_signalFreeWorker(void);
     502 * Queue a signal.
     503 *
     504 * @returns 0 on success.
     505 * @returns -1 on failure, errno set.
     506 * @param   pid             The target process id.
     507 * @param   iSignalNo       Signal to queue.
     508 * @param   SigVal          The value to associate with the signal.
     509 */
     510int __libc_Back_signalQueue(pid_t pid, int iSignalNo, const union sigval SigVal);
    508511
    509512/**
  • trunk/src/emx/include/InnoTekLIBC/sharedpm.h

    • Property cvs2svn:cvs-rev changed from 1.13 to 1.14
    r1623 r1624  
    108108} __LIBC_EXIT_REASON;
    109109
    110 
    111 /** The maximum number of signals a process can have pending on other processes concurrently. */
    112 #define __LIBC_SPM_SIGNALS_MAX_SENT 48
    113110
    114111/**
     
    284281    volatile __LIBC_PSPMSIGNAL  pSigHead;
    285282    /** Number of signals send.
    286      * After __LIBC_SPM_SIGNALS_MAX_SENT signals only SIGCHLD will be allowed sent.
     283     * After _POSIX_SIGQUEUE_MAX signals only SIGCHLD will be allowed sent.
    287284     */
    288285    volatile unsigned           cSigsSent;
     
    295292
    296293    /** Reserved pool pointer field with default value 0. */
    297     unsigned                    aReserved[40 - 16];
     294    unsigned                    aReserved[40 - 17];
    298295
    299296    /** Number of possible pointers to shared memory starting at pvInherit.
  • trunk/src/emx/include/getopt.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1623 r1624  
    11/* getopt.h,v 1.6 2004/09/14 22:27:33 bird Exp */
    22/** @file
    3  * FreeBSD 5.1
    4  * @changed bird: Added two GNU apis for libiberty.
     3 * FreeBSD 5.2
     4 * @changed bird: Added one GNU api from libiberty.
    55 */
    66
    77/*      $NetBSD: getopt.h,v 1.4 2000/07/07 10:43:54 ad Exp $    */
    8 /*      $FreeBSD: src/include/getopt.h,v 1.1 2002/09/29 04:14:30 eric Exp $ */
     8/*      $FreeBSD: src/include/getopt.h,v 1.6 2004/02/24 08:09:20 ache Exp $ */
    99
    1010/*-
     
    4444 */
    4545
    46 
    4746#ifndef _GETOPT_H_
    4847#define _GETOPT_H_
    4948
    5049#include <sys/cdefs.h>
    51 #include <unistd.h>
    5250
    5351/*
    54  * Gnu like getopt_long() and BSD4.4 getsubopt()/optreset extensions
     52 * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.
     53 * getopt() is declared here too for GNU programs.
    5554 */
    56 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
    5755#define no_argument        0
    5856#define required_argument  1
     
    7472
    7573__BEGIN_DECLS
    76 int getopt_long __P((int, char * const *, const char *,
    77     const struct option *, int *));
     74int     getopt_long(int, char * const *, const char *,
     75        const struct option *, int *);
     76int     getopt_long_only(int, char * const *, const char *,
     77        const struct option *, int *);
     78#ifndef _GETOPT_DECLARED
     79#define _GETOPT_DECLARED
     80int      getopt(int, char * const [], const char *);
    7881
    79 /* bird - start: these are provided thru libiberty. */
    80 int getopt_long_only __P((int argc, char *const *, const char *,
    81     const struct option *, int *));
     82extern char *optarg;                    /* getopt(3) external variables */
     83extern int optind, opterr, optopt;
     84#endif
     85#ifndef _OPTRESET_DECLARED
     86#define _OPTRESET_DECLARED
     87extern int optreset;                    /* getopt(3) external variable */
     88#endif
     89
     90/* bird - start: this is provided thru libiberty. */
    8291int _getopt_internal __P((int, char *const *, const char *,
    8392    const struct option *, int *, int));
     
    8594
    8695__END_DECLS
    87 #endif
    8896
    8997#endif /* !_GETOPT_H_ */
  • trunk/src/emx/include/signal.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1623 r1624  
    9191 * in scope (in the current implementation), so we can't use it here.
    9292 */
     93#endif /* bird we do */
    9394int     sigqueue(__pid_t, int, const union sigval);
    94 #endif
    9595struct timespec;
    9696int     sigtimedwait(const sigset_t * __restrict, siginfo_t * __restrict,
     
    124124int     sigignore(int);
    125125int     sigrelse(int);
     126void  (*sigset(int, void (*)(int)))(int);
    126127#endif
    127128#if __BSD_VISIBLE && !defined(_XOPEN_SOURCE) && !defined(sigpause)
  • trunk/src/emx/include/sys/signal.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1623 r1624  
    364364typedef union sigval
    365365{
     366    /** Interger value. */
     367    int     sival_int;
     368    /** Pointer value. */
     369    void   *sival_ptr;
     370    /** FreeBSD names - probably a typo in the FreeBSD, but anyway.
     371     * @{ */
    366372    int     sigval_int;
    367373    void   *sigval_ptr;
     374    /** @} */
    368375} sigval_t;
    369376#endif
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.21 to 1.22
    r1623 r1624  
    11/* $Id: */
    22/** @file
    3  * EMX/FreeBSD 5.1
     3 * FreeBSD 5.3
    44 *
    55 * @changed Commented out stuff which isn't implemented, TCPIP stuff at bottom.
    6  * @todo    Several man-years.. ;) Serious, complete the FreeBSD 5.1 merge and
     6 * @todo    Several man-years.. ;) Serious, complete the FreeBSD 5.3 merge and
    77 *          implement all the functions. Currently there is a bunch of POSIX
    88 *          #defines missing.
     
    4242 *
    4343 *      @(#)unistd.h    8.12 (Berkeley) 4/27/95
    44  * $FreeBSD: src/include/unistd.h,v 1.66 2002/12/29 01:07:55 mike Exp $
     44 * $FreeBSD: src/include/unistd.h,v 1.73 2004/02/23 04:51:07 ache Exp $
    4545 */
    4646
     
    4949#define _UNISTD_H                       /* bird: emx */
    5050
    51 
    5251#include <sys/cdefs.h>
    5352#include <sys/types.h>                  /* XXX adds too much pollution. */
    54 /** @todo port FreeBSD sys/unistd.h: #include <sys/unistd.h> */
     53#include <sys/unistd.h>
     54#include <sys/_null.h>
    5555#include <sys/_types.h>
    5656
     
    9696#endif
    9797
    98 #if !defined(STDIN_FILENO)              /* bird: emx */
    9998#define  STDIN_FILENO   0       /* standard input file descriptor */
    10099#define STDOUT_FILENO   1       /* standard output file descriptor */
    101100#define STDERR_FILENO   2       /* standard error file descriptor */
    102 #endif
    103 
    104 #ifndef NULL
    105 #define NULL            0       /* null pointer constant */
    106 #endif
    107101
    108102#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
     
    113107#endif
    114108
    115 
    116 /** @todo: big todo to get in all the POSIX defines. */
    117 
    118 /* whence values for lseek(2) */
    119 #ifndef SEEK_SET
    120 #define SEEK_SET        0       /* set file offset to offset */
    121 #define SEEK_CUR        1       /* set file offset to current plus offset */
    122 #define SEEK_END        2       /* set file offset to EOF plus offset */
    123 #endif
    124 
    125 #ifndef _POSIX_SOURCE
    126 /* whence values for lseek(2); renamed by POSIX 1003.1 */
    127 #define L_SET           SEEK_SET
    128 #define L_INCR          SEEK_CUR
    129 #define L_XTND          SEEK_END
    130 #endif
    131 
    132 #if !defined (F_OK)
    133 #define F_OK 0
    134 #define X_OK 1
    135 #define W_OK 2
    136 #define R_OK 4
    137 #endif
    138 
    139 #if !defined (SEEK_SET)
    140 #define SEEK_SET 0
    141 #define SEEK_CUR 1
    142 #define SEEK_END 2
    143 #endif
    144 
    145 #if !defined (_PC_LINK_MAX)
    146 #define _PC_LINK_MAX            1
    147 #define _PC_MAX_CANON           2
    148 #define _PC_MAX_INPUT           3
    149 #define _PC_NAME_MAX            4
    150 #define _PC_PATH_MAX            5
    151 #define _PC_PIPE_BUF            6
    152 #define _PC_CHOWN_RESTRICTED    7
    153 #define _PC_NO_TRUNC            8
    154 #define _PC_VDISABLE            9
    155 #endif
    156 
    157 #if !defined (_SC_ARG_MAX)
    158 #define _SC_ARG_MAX             1
    159 #define _SC_CHILD_MAX           2
    160 #define _SC_CLK_TCK             3
    161 #define _SC_NGROUPS_MAX         4
    162 #define _SC_OPEN_MAX            5
    163 #define _SC_STREAM_MAX          6
    164 #define _SC_TZNAME_MAX          7
    165 #define _SC_JOB_CONTROL         8
    166 #define _SC_SAVED_IDS           9
    167 #define _SC_VERSION             10
    168 #endif
    169 
    170 #if !defined (_POSIX_VERSION)
    171 #define _POSIX_VERSION          199009L
    172 #endif
    173 
     109/*
     110 * POSIX options and option groups we unconditionally do or don't
     111 * implement.  This list includes those options which are exclusively
     112 * implemented (or not) in user mode.  Please keep this list in
     113 * alphabetical order.
     114 *
     115 * Anything which is defined as zero below **must** have an
     116 * implementation for the corresponding sysconf() which is able to
     117 * determine conclusively whether or not the feature is supported.
     118 * Anything which is defined as other than -1 below **must** have
     119 * complete headers, types, and function declarations as specified by
     120 * the POSIX standard; however, if the relevant sysconf() function
     121 * returns -1, the functions may be stubbed out.
     122 */
     123#define _POSIX_BARRIERS                 -1
     124#define _POSIX_READER_WRITER_LOCKS      200112L
     125#define _POSIX_REGEXP                   1
     126#define _POSIX_SHELL                    1
     127#define _POSIX_SPAWN                    -1
     128#define _POSIX_SPIN_LOCKS               -1
     129#define _POSIX_THREAD_ATTR_STACKADDR    200112L
     130#define _POSIX_THREAD_ATTR_STACKSIZE    200112L
     131#define _POSIX_THREAD_CPUTIME           -1
     132#define _POSIX_THREAD_PRIO_INHERIT      200112L
     133#define _POSIX_THREAD_PRIO_PROTECT      200112L
     134#define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L
     135#define _POSIX_THREAD_PROCESS_SHARED    -1
     136#define _POSIX_THREAD_SAFE_FUNCTIONS    -1
     137#define _POSIX_THREAD_SPORADIC_SERVER   -1
     138#define _POSIX_THREADS                  200112L
     139#define _POSIX_TRACE                    -1
     140#define _POSIX_TRACE_EVENT_FILTER       -1
     141#define _POSIX_TRACE_INHERIT            -1
     142#define _POSIX_TRACE_LOG                -1
     143#define _POSIX2_C_BIND                  200112L /* mandatory */
     144#define _POSIX2_C_DEV                   -1 /* need c99 utility */
     145#define _POSIX2_CHAR_TERM               1
     146#define _POSIX2_FORT_DEV                -1 /* need fort77 utility */
     147#define _POSIX2_FORT_RUN                200112L
     148#define _POSIX2_LOCALEDEF               -1
     149#define _POSIX2_PBS                     -1
     150#define _POSIX2_PBS_ACCOUNTING          -1
     151#define _POSIX2_PBS_CHECKPOINT          -1
     152#define _POSIX2_PBS_LOCATE              -1
     153#define _POSIX2_PBS_MESSAGE             -1
     154#define _POSIX2_PBS_TRACK               -1
     155#define _POSIX2_SW_DEV                  -1 /* XXX ??? */
     156#define _POSIX2_UPE                     200112L
     157#define _V6_ILP32_OFF32                 -1
     158#define _V6_ILP32_OFFBIG                0
     159#define _V6_LP64_OFF64                  0
     160#define _V6_LPBIG_OFFBIG                -1
     161
     162#if __XSI_VISIBLE
     163#define _XOPEN_CRYPT                    -1 /* XXX ??? */
     164#define _XOPEN_ENH_I18N                 -1 /* mandatory in XSI */
     165#define _XOPEN_LEGACY                   -1
     166#define _XOPEN_REALTIME                 -1
     167#define _XOPEN_REALTIME_THREADS         -1
     168#define _XOPEN_UNIX                     -1
     169#endif
     170
     171/* Define the POSIX.2 version we target for compliance. */
     172#define _POSIX2_VERSION         199212L
     173
     174/*
     175 * POSIX-style system configuration variable accessors (for the
     176 * sysconf function).  The kernel does not directly implement the
     177 * sysconf() interface; rather, a C library stub translates references
     178 * to sysconf() into calls to sysctl() using a giant switch statement.
     179 * Those that are marked `user' are implemented entirely in the C
     180 * library and never query the kernel.  pathconf() is implemented
     181 * directly by the kernel so those are not defined here.
     182 */
     183#define _SC_ARG_MAX              1
     184#define _SC_CHILD_MAX            2
     185#define _SC_CLK_TCK              3
     186#define _SC_NGROUPS_MAX          4
     187#define _SC_OPEN_MAX             5
     188#define _SC_JOB_CONTROL          6
     189#define _SC_SAVED_IDS            7
     190#define _SC_VERSION              8
     191#define _SC_BC_BASE_MAX          9 /* user */
     192#define _SC_BC_DIM_MAX          10 /* user */
     193#define _SC_BC_SCALE_MAX        11 /* user */
     194#define _SC_BC_STRING_MAX       12 /* user */
     195#define _SC_COLL_WEIGHTS_MAX    13 /* user */
     196#define _SC_EXPR_NEST_MAX       14 /* user */
     197#define _SC_LINE_MAX            15 /* user */
     198#define _SC_RE_DUP_MAX          16 /* user */
     199#define _SC_2_VERSION           17 /* user */
     200#define _SC_2_C_BIND            18 /* user */
     201#define _SC_2_C_DEV             19 /* user */
     202#define _SC_2_CHAR_TERM         20 /* user */
     203#define _SC_2_FORT_DEV          21 /* user */
     204#define _SC_2_FORT_RUN          22 /* user */
     205#define _SC_2_LOCALEDEF         23 /* user */
     206#define _SC_2_SW_DEV            24 /* user */
     207#define _SC_2_UPE               25 /* user */
     208#define _SC_STREAM_MAX          26 /* user */
     209#define _SC_TZNAME_MAX          27 /* user */
     210
     211#if __POSIX_VISIBLE >= 199309
     212#define _SC_ASYNCHRONOUS_IO     28
     213#define _SC_MAPPED_FILES        29
     214#define _SC_MEMLOCK             30
     215#define _SC_MEMLOCK_RANGE       31
     216#define _SC_MEMORY_PROTECTION   32
     217#define _SC_MESSAGE_PASSING     33
     218#define _SC_PRIORITIZED_IO      34
     219#define _SC_PRIORITY_SCHEDULING 35
     220#define _SC_REALTIME_SIGNALS    36
     221#define _SC_SEMAPHORES          37
     222#define _SC_FSYNC               38
     223#define _SC_SHARED_MEMORY_OBJECTS 39
     224#define _SC_SYNCHRONIZED_IO     40
     225#define _SC_TIMERS              41
     226#define _SC_AIO_LISTIO_MAX      42
     227#define _SC_AIO_MAX             43
     228#define _SC_AIO_PRIO_DELTA_MAX  44
     229#define _SC_DELAYTIMER_MAX      45
     230#define _SC_MQ_OPEN_MAX         46
     231#define _SC_PAGESIZE            47
     232#define _SC_RTSIG_MAX           48
     233#define _SC_SEM_NSEMS_MAX       49
     234#define _SC_SEM_VALUE_MAX       50
     235#define _SC_SIGQUEUE_MAX        51
     236#define _SC_TIMER_MAX           52
     237#endif
     238
     239#if __POSIX_VISIBLE >= 200112
     240#define _SC_2_PBS               59 /* user */
     241#define _SC_2_PBS_ACCOUNTING    60 /* user */
     242#define _SC_2_PBS_CHECKPOINT    61 /* user */
     243#define _SC_2_PBS_LOCATE        62 /* user */
     244#define _SC_2_PBS_MESSAGE       63 /* user */
     245#define _SC_2_PBS_TRACK         64 /* user */
     246#define _SC_ADVISORY_INFO       65
     247#define _SC_BARRIERS            66 /* user */
     248#define _SC_CLOCK_SELECTION     67
     249#define _SC_CPUTIME             68
     250#define _SC_FILE_LOCKING        69
     251#define _SC_GETGR_R_SIZE_MAX    70 /* user */
     252#define _SC_GETPW_R_SIZE_MAX    71 /* user */
     253#define _SC_HOST_NAME_MAX       72
     254#define _SC_LOGIN_NAME_MAX      73
     255#define _SC_MONOTONIC_CLOCK     74
     256#define _SC_MQ_PRIO_MAX         75
     257#define _SC_READER_WRITER_LOCKS 76 /* user */
     258#define _SC_REGEXP              77 /* user */
     259#define _SC_SHELL               78 /* user */
     260#define _SC_SPAWN               79 /* user */
     261#define _SC_SPIN_LOCKS          80 /* user */
     262#define _SC_SPORADIC_SERVER     81
     263#define _SC_THREAD_ATTR_STACKADDR 82 /* user */
     264#define _SC_THREAD_ATTR_STACKSIZE 83 /* user */
     265#define _SC_THREAD_CPUTIME      84 /* user */
     266#define _SC_THREAD_DESTRUCTOR_ITERATIONS 85 /* user */
     267#define _SC_THREAD_KEYS_MAX     86 /* user */
     268#define _SC_THREAD_PRIO_INHERIT 87 /* user */
     269#define _SC_THREAD_PRIO_PROTECT 88 /* user */
     270#define _SC_THREAD_PRIORITY_SCHEDULING 89 /* user */
     271#define _SC_THREAD_PROCESS_SHARED 90 /* user */
     272#define _SC_THREAD_SAFE_FUNCTIONS 91 /* user */
     273#define _SC_THREAD_SPORADIC_SERVER 92 /* user */
     274#define _SC_THREAD_STACK_MIN    93 /* user */
     275#define _SC_THREAD_THREADS_MAX  94 /* user */
     276#define _SC_TIMEOUTS            95 /* user */
     277#define _SC_THREADS             96 /* user */
     278#define _SC_TRACE               97 /* user */
     279#define _SC_TRACE_EVENT_FILTER  98 /* user */
     280#define _SC_TRACE_INHERIT       99 /* user */
     281#define _SC_TRACE_LOG           100 /* user */
     282#define _SC_TTY_NAME_MAX        101 /* user */
     283#define _SC_TYPED_MEMORY_OBJECTS 102
     284#define _SC_V6_ILP32_OFF32      103 /* user */
     285#define _SC_V6_ILP32_OFFBIG     104 /* user */
     286#define _SC_V6_LP64_OFF64       105 /* user */
     287#define _SC_V6_LPBIG_OFFBIG     106 /* user */
     288#define _SC_IPV6                118
     289#define _SC_RAW_SOCKETS         119
     290#define _SC_SYMLOOP_MAX         120
     291#endif
     292
     293#if __XSI_VISIBLE
     294#define _SC_ATEXIT_MAX          107 /* user */
     295#define _SC_IOV_MAX             56
     296#define _SC_PAGE_SIZE           _SC_PAGESIZE
     297#define _SC_XOPEN_CRYPT         108 /* user */
     298#define _SC_XOPEN_ENH_I18N      109 /* user */
     299#define _SC_XOPEN_LEGACY        110 /* user */
     300#define _SC_XOPEN_REALTIME      111
     301#define _SC_XOPEN_REALTIME_THREADS 112
     302#define _SC_XOPEN_SHM           113
     303#define _SC_XOPEN_STREAMS       114
     304#define _SC_XOPEN_UNIX          115
     305#define _SC_XOPEN_VERSION       116
     306#define _SC_XOPEN_XCU_VERSION   117 /* user */
     307#endif
     308
     309#if __BSD_VISIBLE
     310#define _SC_NPROCESSORS_CONF    57
     311#define _SC_NPROCESSORS_ONLN    58
     312#endif
     313
     314/* Keys for the confstr(3) function. */
     315#if __POSIX_VISIBLE >= 199209
     316#define _CS_PATH                1       /* default value of PATH */
     317#endif
     318
     319#if __POSIX_VISIBLE >= 200112
     320#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS         2
     321#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS        3
     322#define _CS_POSIX_V6_ILP32_OFF32_LIBS           4
     323#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS        5
     324#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS       6
     325#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS          7
     326#define _CS_POSIX_V6_LP64_OFF64_CFLAGS          8
     327#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS         9
     328#define _CS_POSIX_V6_LP64_OFF64_LIBS            10
     329#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS        11
     330#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS       12
     331#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS          13
     332#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS      14
     333#endif
    174334
    175335__BEGIN_DECLS
    176336/* 1003.1-1990 */
    177 void    _exit(int) __dead2;
    178 int      access(const char *, int);
    179 unsigned int    alarm(unsigned int);
    180 int      chdir(const char *);
     337void    _exit(int) __dead2;
     338int      access(const char *, int);
     339unsigned int    alarm(unsigned int);
     340int      chdir(const char *);
    181341int      chown(const char *, uid_t, gid_t);
    182 int      close(int);
    183 char *   cuserid(char *); /* bird: emx/todo/obosolete? */
    184 int      dup(int);
    185 int      dup2(int, int);
     342int      close(int);
     343int      dup(int);
     344int      dup2(int, int);
    186345int      eaccess(const char *, int);
    187 int      execl(const char *, const char *, ...);
    188 int      execle(const char *, const char *, ...);
    189 int      execlp(const char *, const char *, ...);
    190 int      execv(const char *, char * const *);
    191 int      execve(const char *, char * const *, char * const *);
    192 int      execvp(const char *, char * const *);
    193 pid_t    fork(void);
    194 long    fpathconf(int, int);
    195 char    *getcwd(char *, size_t);
    196 gid_t    getegid(void);
    197 uid_t    geteuid(void);
    198 gid_t    getgid(void);
    199 int      getgroups(int, gid_t []);
    200 char    *getlogin(void);
    201 pid_t    getpgrp(void);
    202 pid_t    getpid(void);
    203 pid_t    getppid(void);
    204 uid_t    getuid(void);
    205 int      isatty(int);
     346int      execl(const char *, const char *, ...);
     347int      execle(const char *, const char *, ...);
     348int      execlp(const char *, const char *, ...);
     349int      execv(const char *, char * const *);
     350int      execve(const char *, char * const *, char * const *);
     351int      execvp(const char *, char * const *);
     352pid_t    fork(void);
     353long    fpathconf(int, int);
     354char    *getcwd(char *, size_t);
     355gid_t    getegid(void);
     356uid_t    geteuid(void);
     357gid_t    getgid(void);
     358int      getgroups(int, gid_t []);
     359char    *getlogin(void);
     360pid_t    getpgrp(void);
     361pid_t    getpid(void);
     362pid_t    getppid(void);
     363uid_t    getuid(void);
     364int      isatty(int);
    206365int      link(const char *, const char *);
    207366#ifndef _LSEEK_DECLARED
    208367#define _LSEEK_DECLARED
    209 off_t    lseek(int, off_t, int);
    210 #endif
    211 long    pathconf(const char *, int);
    212 int      pause(void);
    213 int      pipe(int *);
    214 ssize_t  read(int, void *, size_t);
    215 int      rmdir(const char *);
    216 int      setgid(gid_t);
    217 /** @todo void   setproctitle(const char *_fmt, ...) __printf0like(1, 2); */
    218 int      setpgid(pid_t, pid_t);
    219 pid_t    setsid(void);
    220 int      setuid(uid_t);
    221 unsigned sleep(unsigned);
    222 long    sysconf(int);
    223 pid_t    tcgetpgrp(int);
    224 int      tcsetpgrp(int, pid_t);
    225 char    *ttyname(int);
    226 int      unlink(const char *);
    227 int      write(int, const void *, size_t);
     368off_t    lseek(int, off_t, int);
     369#endif
     370long    pathconf(const char *, int);
     371int      pause(void);
     372int      pipe(int *);
     373ssize_t  read(int, void *, size_t);
     374int      rmdir(const char *);
     375int      setgid(gid_t);
     376int      setpgid(pid_t, pid_t);
     377void     setproctitle(const char *_fmt, ...) __printf0like(1, 2);
     378pid_t    setsid(void);
     379int      setuid(uid_t);
     380unsigned int     sleep(unsigned int);
     381long    sysconf(int);
     382pid_t    tcgetpgrp(int);
     383int      tcsetpgrp(int, pid_t);
     384char    *ttyname(int);
     385int      unlink(const char *);
     386ssize_t write(int, const void *, size_t);
    228387
    229388/* 1003.2-1992 */
    230389#if __POSIX_VISIBLE >= 199209 || __XSI_VISIBLE
    231390/** @todo size_t         confstr(int, char *, size_t);*/
     391#ifndef _GETOPT_DECLARED
     392#define _GETOPT_DECLARED
    232393int      getopt(int, char * const [], const char *);
    233394
    234395extern char *optarg;                    /* getopt(3) external variables */
    235396extern int optind, opterr, optopt;
     397#endif /* _GETOPT_DECLARED */
    236398#endif
    237399
     
    260422#endif
    261423#if __POSIX_VISIBLE >= 200112
    262 /* tcpip: int    gethostname(char *, int / * socklen_t * /); */
     424/* tcpip: int    gethostname(char *, size_t); */
    263425/** @todo int    setegid(gid_t);  */
    264426/** @todo int    seteuid(uid_t); */
     
    311473int      getpagesize(void) __pure2;
    312474char    *getpass(const char *);
    313 char    *_getpass1(const char *);          /* bird: emx stuff */
    314 char    *_getpass2(const char *, int);     /* bird: emx stuff */
    315475void    *sbrk(intptr_t);
    316476#endif
     
    328488void     endusershell(void);
    329489/** @todo int    exect(const char *, char * const *, char * const *); */
     490/** @todo int    execvP(const char *, const char *, char * const *); */
    330491/** @todo char  *fflagstostr(u_long); */
    331492/** @todo int    getdomainname(char *, int); */
     
    399560void    *valloc(size_t);                        /* obsoleted by malloc() */
    400561
    401 /** @todo extern char *suboptarg; */                    /* getsubopt(3) external variable */
    402 /** @todo #ifndef _GETSUBOPT_DECLARED */
    403 /** @todo int    getsubopt(char **, char * const *, char **); */
    404 /** @todo #define       _GETSUBOPT_DECLARED */
    405 /** @todo #endif */
     562#ifndef _OPTRESET_DECLARED
     563#define _OPTRESET_DECLARED
    406564extern int optreset;                    /* getopt(3) external variable */
     565#endif
    407566#endif /* __BSD_VISIBLE */
    408567
     
    419578 * EMX stuff.
    420579 */
     580#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
     581char    *_getpass1(const char *);
     582char    *_getpass2(const char *, int);
     583#endif
     584
    421585#if !defined(_POSIX_SOURCE) || defined(_WITH_UNDERSCORE)
    422586/** @todo update this section to match the one without underscores as far as needed! */
     
    513677__END_DECLS
    514678
    515 #endif /* not _UNISTD_H */
     679#endif /* !_UNISTD_H_ */
Note: See TracChangeset for help on using the changeset viewer.