Ignore:
Timestamp:
Sep 7, 2003, 10:10:30 PM (22 years ago)
Author:
bird
Message:

Changed to doxygen for header status.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r658 r659  
    3333 *      @(#)unistd.h    8.12 (Berkeley) 4/27/95
    3434 * $FreeBSD: src/include/unistd.h,v 1.66 2002/12/29 01:07:55 mike Exp $
     35 */
     36
     37/** @file
     38 * EMX/FreeBSD 5.1
    3539 *
    36  * @@level      EMX/FreeBSD 5.1
    37  * @@changed    Commented out stuff which isn't implemented, TCPIP stuff at bottom.
    38  * @@todo       Several man-years.. ;) Serious, complete the FreeBSD 5.1 merge. There is a bunch of POSIX stuff left.
     40 * @changed Commented out stuff which isn't implemented, TCPIP stuff at bottom.
     41 * @todo    Several man-years.. ;) Serious, complete the FreeBSD 5.1 merge and
     42 *          implement all the functions. Currently there is a bunch of POSIX
     43 *          #defines missing.
    3944 */
    4045
     
    4348#define _UNISTD_H                       /* bird: emx */
    4449
    45 /* @@todo: remove old _POSIX_SOURCE define. */
     50/** @todo remove old _POSIX_SOURCE define. */
    4651#if defined (_POSIX_C_SOURCE) && !defined (_POSIX_SOURCE)
    4752#define _POSIX_SOURCE
     
    5055#include <sys/cdefs.h>
    5156#include <sys/types.h>                  /* XXX adds too much pollution. */
    52 /* @@todo: port FreeBSD sys/unistd.h: #include <sys/unistd.h> */
     57/** @todo port FreeBSD sys/unistd.h: #include <sys/unistd.h> */
    5358#include <sys/_types.h>
    5459
     
    155160unsigned int     alarm(unsigned int);
    156161int      chdir(const char *);
    157 /* @@todo: int   chown(const char *, uid_t, gid_t); */
     162/** @todo int    chown(const char *, uid_t, gid_t); */
    158163int      close(int);
    159164char *   cuserid(char *); /* bird: emx/todo/obosolete? */
    160165int      dup(int);
    161166int      dup2(int, int);
    162 /* @@todo: int   eaccess(const char *, int); */
     167/** @todo int    eaccess(const char *, int); */
    163168int      execl(const char *, const char *, ...);
    164169int      execle(const char *, const char *, ...);
     
    180185uid_t    getuid(void);
    181186int      isatty(int);
    182 /* @@todo: int   link(const char *, const char *);*/
     187/** @todo int    link(const char *, const char *);*/
    183188#ifndef _LSEEK_DECLARED
    184189#define _LSEEK_DECLARED
     
    191196int      rmdir(const char *);
    192197int      setgid(gid_t);
    193 /* @@todo: void  setproctitle(const char *_fmt, ...) __printf0like(1, 2); */
     198/** @todo void   setproctitle(const char *_fmt, ...) __printf0like(1, 2); */
    194199int      setpgid(pid_t, pid_t);
    195200pid_t    setsid(void);
     
    205210/* 1003.2-1992 */
    206211#if __POSIX_VISIBLE >= 199209 || __XSI_VISIBLE
    207 /* @@todo: size_t        confstr(int, char *, size_t);*/
     212/** @todo size_t         confstr(int, char *, size_t);*/
    208213int      getopt(int, char * const [], const char *);
    209214
     
    227232
    228233#if __POSIX_VISIBLE >= 199506
    229 /* @@todo: int   getlogin_r(char *, int); */
     234/** @todo int    getlogin_r(char *, int); */
    230235#endif
    231236
    232237/* 1003.1-2001 */
    233238#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
    234 /* @@todo: int   fchown(int, uid_t, gid_t); */
    235 /* @@todo: int   readlink(const char *, char *, int); */
     239/** @todo int    fchown(int, uid_t, gid_t); */
     240/** @todo int    readlink(const char *, char *, int); */
    236241#endif
    237242#if __POSIX_VISIBLE >= 200112
    238243/* tcpip: int    gethostname(char *, int / * socklen_t * /); */
    239 /* @@todo: int   setegid(gid_t);  */
    240 /* @@todo: int   seteuid(uid_t); */
     244/** @todo int    setegid(gid_t);  */
     245/** @todo int    seteuid(uid_t); */
    241246#endif
    242247
     
    247252 */
    248253#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 402 || __BSD_VISIBLE
    249 /* @@todo: int   symlink(const char * __restrict, const char * __restrict); */
     254/** @todo int    symlink(const char * __restrict, const char * __restrict); */
    250255#endif
    251256
    252257/* X/Open System Interfaces */
    253258#if __XSI_VISIBLE
    254 /* @@todo: char *crypt(const char *, const char *); */
    255 /* @@todo: char *ctermid(char *); */            /* XXX ??? */
    256 /* @@todo: int   encrypt(char *, int); */
    257 /* @@todo: int   fchdir(int); */
     259/** @todo char  *crypt(const char *, const char *); */
     260/** @todo char  *ctermid(char *); */            /* XXX ??? */
     261/** @todo int    encrypt(char *, int); */
     262/** @todo int    fchdir(int); */
    258263/* tcpip: long   gethostid(void); */
    259 /* @@todo: int   getpgid(pid_t _pid); */
    260 /* @@todo: int   getsid(pid_t _pid); */
     264/** @todo int    getpgid(pid_t _pid); */
     265/** @todo int    getsid(pid_t _pid); */
    261266char    *getwd(char *);                 /* LEGACY: obsoleted by getcwd() */
    262 /* @@todo: int   lchown(const char *, uid_t, gid_t); */
    263 /* @@todo: int   lockf(int, int, off_t); */
    264 /* @@todo: int   nice(int); */
    265 /* @@todo: ssize_t       pread(int, void *, size_t, off_t); */
    266 /* @@todo: ssize_t       pwrite(int, const void *, size_t, off_t); */
    267 /* @@todo: int   setpgrp(pid_t _pid, pid_t _pgrp); */ /* obsoleted by setpgid() */
    268 /* @@todo: int   setregid(gid_t, gid_t); */
    269 /* @@todo: int   setreuid(uid_t, uid_t); */
     267/** @todo int    lchown(const char *, uid_t, gid_t); */
     268/** @todo int    lockf(int, int, off_t); */
     269/** @todo int    nice(int); */
     270/** @todo ssize_t        pread(int, void *, size_t, off_t); */
     271/** @todo ssize_t        pwrite(int, const void *, size_t, off_t); */
     272/** @todo int    setpgrp(pid_t _pid, pid_t _pgrp); */ /* obsoleted by setpgid() */
     273/** @todo int    setregid(gid_t, gid_t); */
     274/** @todo int    setreuid(uid_t, uid_t); */
    270275/* void  swab(const void * __restrict, void * __restrict, ssize_t); */
    271 /* @@todo: void  sync(void); */
    272 /* @@todo: useconds_t    ualarm(useconds_t, useconds_t); */
    273 /* @@todo: int   usleep(useconds_t); */
    274 /* @@todo: pid_t         vfork(void); */
     276/** @todo void   sync(void); */
     277/** @todo useconds_t     ualarm(useconds_t, useconds_t); */
     278/** @todo int    usleep(useconds_t); */
     279/** @todo pid_t  vfork(void); */
    275280
    276281/* See comment at ftruncate() above. */
     
    283288#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
    284289int      brk(const void *);
    285 /* @@todo: int   chroot(const char *); */
    286 /* @@todo: int   getdtablesize(void); */
     290/** @todo int    chroot(const char *); */
     291/** @todo int    getdtablesize(void); */
    287292int      getpagesize(void) __pure2;
    288293char    *getpass(const char *);
     
    294299#if __BSD_VISIBLE
    295300struct timeval;                         /* select(2) */
    296 /* @@todo: int   acct(const char *); */
    297 /* @@todo: int   async_daemon(void); */
    298 /* @@todo: int   check_utility_compat(const char *); */
    299 /* @@todo: const char *
     301/** @todo int    acct(const char *); */
     302/** @todo int    async_daemon(void); */
     303/** @todo int    check_utility_compat(const char *); */
     304/** @todo const char *
    300305         crypt_get_format(void); */
    301 /* @@todo: int   crypt_set_format(const char *); */
    302 /* @@todo: int   des_cipher(const char *, char *, long, int); */
    303 /* @@todo: int   des_setkey(const char *key); */
    304 /* @@todo: void  endusershell(void); */
    305 /* @@todo: int   exect(const char *, char * const *, char * const *); */
    306 /* @@todo: char *fflagstostr(u_long); */
    307 /* @@todo: int   getdomainname(char *, int); */
    308 /* @@todo: int   getgrouplist(const char *, gid_t, gid_t *, int *); */
    309 /* @@todo: mode_t        getmode(const void *, mode_t); */
    310 /* @@todo: int   getpeereid(int, uid_t *, gid_t *); */
    311 /* @@todo: int   getresgid(gid_t *, gid_t *, gid_t *); */
    312 /* @@todo: int   getresuid(uid_t *, uid_t *, uid_t *); */
    313 /* @@todo: char *getusershell(void); */
    314 /* @@todo: int   initgroups(const char *, gid_t); */
    315 /* @@todo: int   iruserok(unsigned long, int, const char *, const char *); */
    316 /* @@todo: int   iruserok_sa(const void *, int, int, const char *, const char *); */
    317 /* @@todo: int   issetugid(void); */
    318 /* @@todo: char *mkdtemp(char *); */
    319 /* @@todo: int   mknod(const char *, mode_t, dev_t); */
     306/** @todo int    crypt_set_format(const char *); */
     307/** @todo int    des_cipher(const char *, char *, long, int); */
     308/** @todo int    des_setkey(const char *key); */
     309/** @todo void   endusershell(void); */
     310/** @todo int    exect(const char *, char * const *, char * const *); */
     311/** @todo char  *fflagstostr(u_long); */
     312/** @todo int    getdomainname(char *, int); */
     313/** @todo int    getgrouplist(const char *, gid_t, gid_t *, int *); */
     314/** @todo mode_t         getmode(const void *, mode_t); */
     315/** @todo int    getpeereid(int, uid_t *, gid_t *); */
     316/** @todo int    getresgid(gid_t *, gid_t *, gid_t *); */
     317/** @todo int    getresuid(uid_t *, uid_t *, uid_t *); */
     318/** @todo char  *getusershell(void); */
     319/** @todo int    initgroups(const char *, gid_t); */
     320/** @todo int    iruserok(unsigned long, int, const char *, const char *); */
     321/** @todo int    iruserok_sa(const void *, int, int, const char *, const char *); */
     322/** @todo int    issetugid(void); */
     323/** @todo char  *mkdtemp(char *); */
     324/** @todo int    mknod(const char *, mode_t, dev_t); */
    320325#ifndef _MKSTEMP_DECLARED
    321326int      mkstemp(char *);
    322327#define _MKSTEMP_DECLARED
    323328#endif
    324 /* @@todo: int   mkstemps(char *, int); */
     329/** @todo int    mkstemps(char *, int); */
    325330#ifndef _MKTEMP_DECLARED
    326331char    *mktemp(char *);
    327332#define _MKTEMP_DECLARED
    328333#endif
    329 /* @@todo: int   nfsclnt(int, void *); */
    330 /* @@todo: int   nfssvc(int, void *); */
    331 /* @@todo: int   profil(char *, size_t, vm_offset_t, int); */
    332 /* @@todo: int   rcmd(char **, int, const char *, const char *, const char *, int *); */
    333 /* @@todo: int   rcmd_af(char **, int, const char *,
     334/** @todo int    nfsclnt(int, void *); */
     335/** @todo int    nfssvc(int, void *); */
     336/** @todo int    profil(char *, size_t, vm_offset_t, int); */
     337/** @todo int    rcmd(char **, int, const char *, const char *, const char *, int *); */
     338/** @todo int    rcmd_af(char **, int, const char *,
    334339                const char *, const char *, int *, int); */
    335 /* @@todo: int   rcmdsh(char **, int, const char *,
     340/** @todo int    rcmdsh(char **, int, const char *,
    336341                const char *, const char *, const char *); */
    337342char    *re_comp(const char *);
    338343int      re_exec(const char *);
    339 /* @@todo: int   reboot(int); */
    340 /* @@todo: int   revoke(const char *); */
    341 /* @@todo: pid_t         rfork(int); */
    342 /* @@todo: pid_t         rfork_thread(int, void *, int (*)(void *), void *); */
    343 /* @@todo: int   rresvport(int *); */
    344 /* @@todo: int   rresvport_af(int *, int); */
    345 /* @@todo: int   ruserok(const char *, int, const char *, const char *); */
     344/** @todo int    reboot(int); */
     345/** @todo int    revoke(const char *); */
     346/** @todo pid_t  rfork(int); */
     347/** @todo pid_t  rfork_thread(int, void *, int (*)(void *), void *); */
     348/** @todo int    rresvport(int *); */
     349/** @todo int    rresvport_af(int *, int); */
     350/** @todo int    ruserok(const char *, int, const char *, const char *); */
    346351#if __BSD_VISIBLE
    347352#ifndef _SELECT_DECLARED
     
    350355#endif
    351356#endif
    352 /* @@todo: int   setdomainname(const char *, int); */
    353 /* @@todo: int   setgroups(int, const gid_t *); */
    354 /* @@todo: void  sethostid(long); */
    355 /* @@todo: int   sethostname(const char *, int); */
    356 /* @@todo: #ifndef _SETKEY_DECLARED */
    357 /* @@todo: int   setkey(const char *); */
    358 /* @@todo: #define      _SETKEY_DECLARED */
    359 /* @@todo: #endif */
    360 /* @@todo: int   setlogin(const char *); */
     357/** @todo int    setdomainname(const char *, int); */
     358/** @todo int    setgroups(int, const gid_t *); */
     359/** @todo void   sethostid(long); */
     360/** @todo int    sethostname(const char *, int); */
     361/** @todo #ifndef _SETKEY_DECLARED */
     362/** @todo int    setkey(const char *); */
     363/** @todo #define       _SETKEY_DECLARED */
     364/** @todo #endif */
     365/** @todo int    setlogin(const char *); */
    361366/* crash with DOS: void *setmode(const char *); */
    362 /* @@todo: int   setresgid(gid_t, gid_t, gid_t); */
    363 /* @@todo: int   setresuid(uid_t, uid_t, uid_t); */
    364 /* @@todo: int   setrgid(gid_t); */
    365 /* @@todo: int   setruid(uid_t); */
    366 /* @@todo: void  setusershell(void); */
    367 /* @@todo: int   strtofflags(char **, u_long *, u_long *); */
    368 /* @@todo: int   swapon(const char *); */
    369 /* @@todo: int   swapoff(const char *); */
    370 /* @@todo: int   syscall(int, ...); */
    371 /* @@todo: off_t         __syscall(quad_t, ...); */
    372 /* @@todo: int   ttyslot(void); */
    373 /* @@todo: int   undelete(const char *); */
    374 /* @@todo: int   unwhiteout(const char *); */
    375 /* @@todo: void *valloc(size_t); */                     /* obsoleted by malloc() */
    376 
    377 /* @@todo: extern char *suboptarg; */                   /* getsubopt(3) external variable */
    378 /* @@todo: #ifndef _GETSUBOPT_DECLARED */
    379 /* @@todo: int   getsubopt(char **, char * const *, char **); */
    380 /* @@todo: #define      _GETSUBOPT_DECLARED */
    381 /* @@todo: #endif */
    382 /* @@todo: extern int optreset; */                      /* getopt(3) external variable */
     367/** @todo int    setresgid(gid_t, gid_t, gid_t); */
     368/** @todo int    setresuid(uid_t, uid_t, uid_t); */
     369/** @todo int    setrgid(gid_t); */
     370/** @todo int    setruid(uid_t); */
     371/** @todo void   setusershell(void); */
     372/** @todo int    strtofflags(char **, u_long *, u_long *); */
     373/** @todo int    swapon(const char *); */
     374/** @todo int    swapoff(const char *); */
     375/** @todo int    syscall(int, ...); */
     376/** @todo off_t  __syscall(quad_t, ...); */
     377/** @todo int    ttyslot(void); */
     378/** @todo int    undelete(const char *); */
     379/** @todo int    unwhiteout(const char *); */
     380/** @todo void  *valloc(size_t); */                     /* obsoleted by malloc() */
     381
     382/** @todo extern char *suboptarg; */                    /* getsubopt(3) external variable */
     383/** @todo #ifndef _GETSUBOPT_DECLARED */
     384/** @todo int    getsubopt(char **, char * const *, char **); */
     385/** @todo #define       _GETSUBOPT_DECLARED */
     386/** @todo #endif */
     387/** @todo extern int optreset; */                       /* getopt(3) external variable */
    383388#endif /* __BSD_VISIBLE */
    384389/////
     
    391396
    392397#if !defined(_POSIX_SOURCE) || defined(_WITH_UNDERSCORE)
    393 /* @@todo: update this section to match the one without underscores as far as needed! */
     398/** @todo update this section to match the one without underscores as far as needed! */
    394399void     __exit(int) __dead2;
    395400int      _access(const char *, int);
    396401unsigned int _alarm(unsigned int);
    397402int      _chdir(const char *);
    398 /* @@todo: int   _chown(const char *, uid_t, gid_t); */
     403/** @todo int    _chown(const char *, uid_t, gid_t); */
    399404int      _close(int);
    400405char    *_cuserid(char *);
    401406int      _dup(int);
    402407int      _dup2(int, int);
    403 /* @@todo: int   _eaccess(const char *, int); */
     408/** @todo int    _eaccess(const char *, int); */
    404409int      _execl(const char *, const char *, ...);
    405410int      _execle(const char *, const char *, ...);
     
    421426uid_t    _getuid(void);
    422427int      _isatty(int);
    423 /* @@todo: int   _link(const char *, const char *);*/
     428/** @todo int    _link(const char *, const char *);*/
    424429#ifndef __LSEEK_DECLARED
    425430#define __LSEEK_DECLARED
     
    432437int      _rmdir(const char *);
    433438int      _setgid(gid_t);
    434 /* @@todo: void  _setproctitle(const char *_fmt, ...) __printf0like(1, 2); */
     439/** @todo void   _setproctitle(const char *_fmt, ...) __printf0like(1, 2); */
    435440int      _setpgid(pid_t, pid_t);
    436441pid_t    _setsid(void);
     
    451456char    *_mktemp(char *);
    452457void    *_sbrk(intptr_t);
    453 /* @@todo: int     _profil(void *, unsigned, unsigned, unsigned); */
     458/** @todo int     _profil(void *, unsigned, unsigned, unsigned); */
    454459
    455460/* 1003.2-1992 */
Note: See TracChangeset for help on using the changeset viewer.