Changeset 659 for trunk/src/emx/include/unistd.h
- Timestamp:
- Sep 7, 2003, 10:10:30 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/unistd.h
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r658 r659 33 33 * @(#)unistd.h 8.12 (Berkeley) 4/27/95 34 34 * $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 35 39 * 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. 39 44 */ 40 45 … … 43 48 #define _UNISTD_H /* bird: emx */ 44 49 45 /* @@todo:remove old _POSIX_SOURCE define. */50 /** @todo remove old _POSIX_SOURCE define. */ 46 51 #if defined (_POSIX_C_SOURCE) && !defined (_POSIX_SOURCE) 47 52 #define _POSIX_SOURCE … … 50 55 #include <sys/cdefs.h> 51 56 #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> */ 53 58 #include <sys/_types.h> 54 59 … … 155 160 unsigned int alarm(unsigned int); 156 161 int chdir(const char *); 157 /* @@todo:int chown(const char *, uid_t, gid_t); */162 /** @todo int chown(const char *, uid_t, gid_t); */ 158 163 int close(int); 159 164 char * cuserid(char *); /* bird: emx/todo/obosolete? */ 160 165 int dup(int); 161 166 int dup2(int, int); 162 /* @@todo:int eaccess(const char *, int); */167 /** @todo int eaccess(const char *, int); */ 163 168 int execl(const char *, const char *, ...); 164 169 int execle(const char *, const char *, ...); … … 180 185 uid_t getuid(void); 181 186 int isatty(int); 182 /* @@todo:int link(const char *, const char *);*/187 /** @todo int link(const char *, const char *);*/ 183 188 #ifndef _LSEEK_DECLARED 184 189 #define _LSEEK_DECLARED … … 191 196 int rmdir(const char *); 192 197 int setgid(gid_t); 193 /* @@todo:void setproctitle(const char *_fmt, ...) __printf0like(1, 2); */198 /** @todo void setproctitle(const char *_fmt, ...) __printf0like(1, 2); */ 194 199 int setpgid(pid_t, pid_t); 195 200 pid_t setsid(void); … … 205 210 /* 1003.2-1992 */ 206 211 #if __POSIX_VISIBLE >= 199209 || __XSI_VISIBLE 207 /* @@todo:size_t confstr(int, char *, size_t);*/212 /** @todo size_t confstr(int, char *, size_t);*/ 208 213 int getopt(int, char * const [], const char *); 209 214 … … 227 232 228 233 #if __POSIX_VISIBLE >= 199506 229 /* @@todo:int getlogin_r(char *, int); */234 /** @todo int getlogin_r(char *, int); */ 230 235 #endif 231 236 232 237 /* 1003.1-2001 */ 233 238 #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); */ 236 241 #endif 237 242 #if __POSIX_VISIBLE >= 200112 238 243 /* 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); */ 241 246 #endif 242 247 … … 247 252 */ 248 253 #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); */ 250 255 #endif 251 256 252 257 /* X/Open System Interfaces */ 253 258 #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); */ 258 263 /* 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); */ 261 266 char *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); */ 270 275 /* 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); */ 275 280 276 281 /* See comment at ftruncate() above. */ … … 283 288 #if __XSI_VISIBLE <= 500 || __BSD_VISIBLE 284 289 int 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); */ 287 292 int getpagesize(void) __pure2; 288 293 char *getpass(const char *); … … 294 299 #if __BSD_VISIBLE 295 300 struct 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 * 300 305 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); */ 320 325 #ifndef _MKSTEMP_DECLARED 321 326 int mkstemp(char *); 322 327 #define _MKSTEMP_DECLARED 323 328 #endif 324 /* @@todo:int mkstemps(char *, int); */329 /** @todo int mkstemps(char *, int); */ 325 330 #ifndef _MKTEMP_DECLARED 326 331 char *mktemp(char *); 327 332 #define _MKTEMP_DECLARED 328 333 #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 *, 334 339 const char *, const char *, int *, int); */ 335 /* @@todo:int rcmdsh(char **, int, const char *,340 /** @todo int rcmdsh(char **, int, const char *, 336 341 const char *, const char *, const char *); */ 337 342 char *re_comp(const char *); 338 343 int 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 *); */ 346 351 #if __BSD_VISIBLE 347 352 #ifndef _SELECT_DECLARED … … 350 355 #endif 351 356 #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 *); */ 361 366 /* 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 */ 383 388 #endif /* __BSD_VISIBLE */ 384 389 ///// … … 391 396 392 397 #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! */ 394 399 void __exit(int) __dead2; 395 400 int _access(const char *, int); 396 401 unsigned int _alarm(unsigned int); 397 402 int _chdir(const char *); 398 /* @@todo:int _chown(const char *, uid_t, gid_t); */403 /** @todo int _chown(const char *, uid_t, gid_t); */ 399 404 int _close(int); 400 405 char *_cuserid(char *); 401 406 int _dup(int); 402 407 int _dup2(int, int); 403 /* @@todo:int _eaccess(const char *, int); */408 /** @todo int _eaccess(const char *, int); */ 404 409 int _execl(const char *, const char *, ...); 405 410 int _execle(const char *, const char *, ...); … … 421 426 uid_t _getuid(void); 422 427 int _isatty(int); 423 /* @@todo:int _link(const char *, const char *);*/428 /** @todo int _link(const char *, const char *);*/ 424 429 #ifndef __LSEEK_DECLARED 425 430 #define __LSEEK_DECLARED … … 432 437 int _rmdir(const char *); 433 438 int _setgid(gid_t); 434 /* @@todo:void _setproctitle(const char *_fmt, ...) __printf0like(1, 2); */439 /** @todo void _setproctitle(const char *_fmt, ...) __printf0like(1, 2); */ 435 440 int _setpgid(pid_t, pid_t); 436 441 pid_t _setsid(void); … … 451 456 char *_mktemp(char *); 452 457 void *_sbrk(intptr_t); 453 /* @@todo:int _profil(void *, unsigned, unsigned, unsigned); */458 /** @todo int _profil(void *, unsigned, unsigned, unsigned); */ 454 459 455 460 /* 1003.2-1992 */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.