sl@0: /*
sl@0:  * unistd.h --
sl@0:  *
sl@0:  *      Macros, CONSTants and prototypes for Posix conformance.
sl@0:  *
sl@0:  * Copyright 1989 Regents of the University of California
sl@0:  * Permission to use, copy, modify, and distribute this
sl@0:  * software and its documentation for any purpose and without
sl@0:  * fee is hereby granted, provided that the above copyright
sl@0:  * notice appear in all copies.  The University of California
sl@0:  * makes no representations about the suitability of this
sl@0:  * software for any purpose.  It is provided "as is" without
sl@0:  * express or implied warranty.
sl@0:  *
sl@0:  * Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiaries. All rights reserved.  
sl@0:  *
sl@0:  * RCS: @(#) $Id: unistd.h,v 1.2 1998/09/14 18:39:45 stanton Exp $
sl@0:  */
sl@0: 
sl@0: #ifndef _UNISTD
sl@0: #define _UNISTD
sl@0: 
sl@0: #include <sys/types.h>
sl@0: #ifndef _TCL
sl@0: #   include "tcl.h"
sl@0: #endif
sl@0: 
sl@0: #ifndef NULL
sl@0: #define NULL    0
sl@0: #endif
sl@0: 
sl@0: /* 
sl@0:  * Strict POSIX stuff goes here.  Extensions go down below, in the 
sl@0:  * ifndef _POSIX_SOURCE section.
sl@0:  */
sl@0: 
sl@0: extern void _exit _ANSI_ARGS_((int status));
sl@0: extern int access _ANSI_ARGS_((CONST char *path, int mode));
sl@0: extern int chdir _ANSI_ARGS_((CONST char *path));
sl@0: extern int chown _ANSI_ARGS_((CONST char *path, uid_t owner, gid_t group));
sl@0: extern int close _ANSI_ARGS_((int fd));
sl@0: extern int dup _ANSI_ARGS_((int oldfd));
sl@0: extern int dup2 _ANSI_ARGS_((int oldfd, int newfd));
sl@0: extern int execl _ANSI_ARGS_((CONST char *path, ...));
sl@0: extern int execle _ANSI_ARGS_((CONST char *path, ...));
sl@0: extern int execlp _ANSI_ARGS_((CONST char *file, ...));
sl@0: extern int execv _ANSI_ARGS_((CONST char *path, char **argv));
sl@0: extern int execve _ANSI_ARGS_((CONST char *path, char **argv, char **envp));
sl@0: extern int execvp _ANSI_ARGS_((CONST char *file, char **argv));
sl@0: extern pid_t fork _ANSI_ARGS_((void));
sl@0: extern char *getcwd _ANSI_ARGS_((char *buf, size_t size));
sl@0: extern gid_t getegid _ANSI_ARGS_((void));
sl@0: extern uid_t geteuid _ANSI_ARGS_((void));
sl@0: extern gid_t getgid _ANSI_ARGS_((void));
sl@0: extern int getgroups _ANSI_ARGS_((int bufSize, int *buffer));
sl@0: extern pid_t getpid _ANSI_ARGS_((void));
sl@0: extern uid_t getuid _ANSI_ARGS_((void));
sl@0: extern int isatty _ANSI_ARGS_((int fd));
sl@0: #ifndef __SYMBIAN32__  
sl@0: extern long lseek _ANSI_ARGS_((int fd, long offset, int whence));
sl@0: #endif
sl@0: extern int pipe _ANSI_ARGS_((int *fildes));
sl@0: extern int read _ANSI_ARGS_((int fd, char *buf, size_t size));
sl@0: extern int setgid _ANSI_ARGS_((gid_t group));
sl@0: extern int setuid _ANSI_ARGS_((uid_t user));
sl@0: extern unsigned sleep _ANSI_ARGS_ ((unsigned seconds));
sl@0: extern char *ttyname _ANSI_ARGS_((int fd));
sl@0: extern int unlink _ANSI_ARGS_((CONST char *path));
sl@0: extern int write _ANSI_ARGS_((int fd, CONST char *buf, size_t size));
sl@0: 
sl@0: #ifndef	_POSIX_SOURCE
sl@0: extern char *crypt _ANSI_ARGS_((CONST char *, CONST char *));
sl@0: extern int fchown _ANSI_ARGS_((int fd, uid_t owner, gid_t group));
sl@0: extern int flock _ANSI_ARGS_((int fd, int operation));
sl@0: #ifndef __SYMBIAN32__  
sl@0: extern int ftruncate _ANSI_ARGS_((int fd, unsigned long length));
sl@0: #endif
sl@0: extern int ioctl _ANSI_ARGS_((int fd, int request, ...));
sl@0: extern int readlink _ANSI_ARGS_((CONST char *path, char *buf, int bufsize));
sl@0: extern int setegid _ANSI_ARGS_((gid_t group));
sl@0: extern int seteuid _ANSI_ARGS_((uid_t user));
sl@0: extern int setreuid _ANSI_ARGS_((int ruid, int euid));
sl@0: extern int symlink _ANSI_ARGS_((CONST char *, CONST char *));
sl@0: extern int ttyslot _ANSI_ARGS_((void));
sl@0: #ifndef __SYMBIAN32__  
sl@0: extern int truncate _ANSI_ARGS_((CONST char *path, unsigned long length));
sl@0: #endif
sl@0: extern int vfork _ANSI_ARGS_((void));
sl@0: #endif /* _POSIX_SOURCE */
sl@0: 
sl@0: #endif /* _UNISTD */
sl@0: