os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/unistd.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2  * unistd.h --
     3  *
     4  *      Macros, CONSTants and prototypes for Posix conformance.
     5  *
     6  * Copyright 1989 Regents of the University of California
     7  * Permission to use, copy, modify, and distribute this
     8  * software and its documentation for any purpose and without
     9  * fee is hereby granted, provided that the above copyright
    10  * notice appear in all copies.  The University of California
    11  * makes no representations about the suitability of this
    12  * software for any purpose.  It is provided "as is" without
    13  * express or implied warranty.
    14  *
    15  * Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiaries. All rights reserved.  
    16  *
    17  * RCS: @(#) $Id: unistd.h,v 1.2 1998/09/14 18:39:45 stanton Exp $
    18  */
    19 
    20 #ifndef _UNISTD
    21 #define _UNISTD
    22 
    23 #include <sys/types.h>
    24 #ifndef _TCL
    25 #   include "tcl.h"
    26 #endif
    27 
    28 #ifndef NULL
    29 #define NULL    0
    30 #endif
    31 
    32 /* 
    33  * Strict POSIX stuff goes here.  Extensions go down below, in the 
    34  * ifndef _POSIX_SOURCE section.
    35  */
    36 
    37 extern void _exit _ANSI_ARGS_((int status));
    38 extern int access _ANSI_ARGS_((CONST char *path, int mode));
    39 extern int chdir _ANSI_ARGS_((CONST char *path));
    40 extern int chown _ANSI_ARGS_((CONST char *path, uid_t owner, gid_t group));
    41 extern int close _ANSI_ARGS_((int fd));
    42 extern int dup _ANSI_ARGS_((int oldfd));
    43 extern int dup2 _ANSI_ARGS_((int oldfd, int newfd));
    44 extern int execl _ANSI_ARGS_((CONST char *path, ...));
    45 extern int execle _ANSI_ARGS_((CONST char *path, ...));
    46 extern int execlp _ANSI_ARGS_((CONST char *file, ...));
    47 extern int execv _ANSI_ARGS_((CONST char *path, char **argv));
    48 extern int execve _ANSI_ARGS_((CONST char *path, char **argv, char **envp));
    49 extern int execvp _ANSI_ARGS_((CONST char *file, char **argv));
    50 extern pid_t fork _ANSI_ARGS_((void));
    51 extern char *getcwd _ANSI_ARGS_((char *buf, size_t size));
    52 extern gid_t getegid _ANSI_ARGS_((void));
    53 extern uid_t geteuid _ANSI_ARGS_((void));
    54 extern gid_t getgid _ANSI_ARGS_((void));
    55 extern int getgroups _ANSI_ARGS_((int bufSize, int *buffer));
    56 extern pid_t getpid _ANSI_ARGS_((void));
    57 extern uid_t getuid _ANSI_ARGS_((void));
    58 extern int isatty _ANSI_ARGS_((int fd));
    59 #ifndef __SYMBIAN32__  
    60 extern long lseek _ANSI_ARGS_((int fd, long offset, int whence));
    61 #endif
    62 extern int pipe _ANSI_ARGS_((int *fildes));
    63 extern int read _ANSI_ARGS_((int fd, char *buf, size_t size));
    64 extern int setgid _ANSI_ARGS_((gid_t group));
    65 extern int setuid _ANSI_ARGS_((uid_t user));
    66 extern unsigned sleep _ANSI_ARGS_ ((unsigned seconds));
    67 extern char *ttyname _ANSI_ARGS_((int fd));
    68 extern int unlink _ANSI_ARGS_((CONST char *path));
    69 extern int write _ANSI_ARGS_((int fd, CONST char *buf, size_t size));
    70 
    71 #ifndef	_POSIX_SOURCE
    72 extern char *crypt _ANSI_ARGS_((CONST char *, CONST char *));
    73 extern int fchown _ANSI_ARGS_((int fd, uid_t owner, gid_t group));
    74 extern int flock _ANSI_ARGS_((int fd, int operation));
    75 #ifndef __SYMBIAN32__  
    76 extern int ftruncate _ANSI_ARGS_((int fd, unsigned long length));
    77 #endif
    78 extern int ioctl _ANSI_ARGS_((int fd, int request, ...));
    79 extern int readlink _ANSI_ARGS_((CONST char *path, char *buf, int bufsize));
    80 extern int setegid _ANSI_ARGS_((gid_t group));
    81 extern int seteuid _ANSI_ARGS_((uid_t user));
    82 extern int setreuid _ANSI_ARGS_((int ruid, int euid));
    83 extern int symlink _ANSI_ARGS_((CONST char *, CONST char *));
    84 extern int ttyslot _ANSI_ARGS_((void));
    85 #ifndef __SYMBIAN32__  
    86 extern int truncate _ANSI_ARGS_((CONST char *path, unsigned long length));
    87 #endif
    88 extern int vfork _ANSI_ARGS_((void));
    89 #endif /* _POSIX_SOURCE */
    90 
    91 #endif /* _UNISTD */
    92