os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/unistd.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/unistd.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,92 @@
     1.4 +/*
     1.5 + * unistd.h --
     1.6 + *
     1.7 + *      Macros, CONSTants and prototypes for Posix conformance.
     1.8 + *
     1.9 + * Copyright 1989 Regents of the University of California
    1.10 + * Permission to use, copy, modify, and distribute this
    1.11 + * software and its documentation for any purpose and without
    1.12 + * fee is hereby granted, provided that the above copyright
    1.13 + * notice appear in all copies.  The University of California
    1.14 + * makes no representations about the suitability of this
    1.15 + * software for any purpose.  It is provided "as is" without
    1.16 + * express or implied warranty.
    1.17 + *
    1.18 + * Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiaries. All rights reserved.  
    1.19 + *
    1.20 + * RCS: @(#) $Id: unistd.h,v 1.2 1998/09/14 18:39:45 stanton Exp $
    1.21 + */
    1.22 +
    1.23 +#ifndef _UNISTD
    1.24 +#define _UNISTD
    1.25 +
    1.26 +#include <sys/types.h>
    1.27 +#ifndef _TCL
    1.28 +#   include "tcl.h"
    1.29 +#endif
    1.30 +
    1.31 +#ifndef NULL
    1.32 +#define NULL    0
    1.33 +#endif
    1.34 +
    1.35 +/* 
    1.36 + * Strict POSIX stuff goes here.  Extensions go down below, in the 
    1.37 + * ifndef _POSIX_SOURCE section.
    1.38 + */
    1.39 +
    1.40 +extern void _exit _ANSI_ARGS_((int status));
    1.41 +extern int access _ANSI_ARGS_((CONST char *path, int mode));
    1.42 +extern int chdir _ANSI_ARGS_((CONST char *path));
    1.43 +extern int chown _ANSI_ARGS_((CONST char *path, uid_t owner, gid_t group));
    1.44 +extern int close _ANSI_ARGS_((int fd));
    1.45 +extern int dup _ANSI_ARGS_((int oldfd));
    1.46 +extern int dup2 _ANSI_ARGS_((int oldfd, int newfd));
    1.47 +extern int execl _ANSI_ARGS_((CONST char *path, ...));
    1.48 +extern int execle _ANSI_ARGS_((CONST char *path, ...));
    1.49 +extern int execlp _ANSI_ARGS_((CONST char *file, ...));
    1.50 +extern int execv _ANSI_ARGS_((CONST char *path, char **argv));
    1.51 +extern int execve _ANSI_ARGS_((CONST char *path, char **argv, char **envp));
    1.52 +extern int execvp _ANSI_ARGS_((CONST char *file, char **argv));
    1.53 +extern pid_t fork _ANSI_ARGS_((void));
    1.54 +extern char *getcwd _ANSI_ARGS_((char *buf, size_t size));
    1.55 +extern gid_t getegid _ANSI_ARGS_((void));
    1.56 +extern uid_t geteuid _ANSI_ARGS_((void));
    1.57 +extern gid_t getgid _ANSI_ARGS_((void));
    1.58 +extern int getgroups _ANSI_ARGS_((int bufSize, int *buffer));
    1.59 +extern pid_t getpid _ANSI_ARGS_((void));
    1.60 +extern uid_t getuid _ANSI_ARGS_((void));
    1.61 +extern int isatty _ANSI_ARGS_((int fd));
    1.62 +#ifndef __SYMBIAN32__  
    1.63 +extern long lseek _ANSI_ARGS_((int fd, long offset, int whence));
    1.64 +#endif
    1.65 +extern int pipe _ANSI_ARGS_((int *fildes));
    1.66 +extern int read _ANSI_ARGS_((int fd, char *buf, size_t size));
    1.67 +extern int setgid _ANSI_ARGS_((gid_t group));
    1.68 +extern int setuid _ANSI_ARGS_((uid_t user));
    1.69 +extern unsigned sleep _ANSI_ARGS_ ((unsigned seconds));
    1.70 +extern char *ttyname _ANSI_ARGS_((int fd));
    1.71 +extern int unlink _ANSI_ARGS_((CONST char *path));
    1.72 +extern int write _ANSI_ARGS_((int fd, CONST char *buf, size_t size));
    1.73 +
    1.74 +#ifndef	_POSIX_SOURCE
    1.75 +extern char *crypt _ANSI_ARGS_((CONST char *, CONST char *));
    1.76 +extern int fchown _ANSI_ARGS_((int fd, uid_t owner, gid_t group));
    1.77 +extern int flock _ANSI_ARGS_((int fd, int operation));
    1.78 +#ifndef __SYMBIAN32__  
    1.79 +extern int ftruncate _ANSI_ARGS_((int fd, unsigned long length));
    1.80 +#endif
    1.81 +extern int ioctl _ANSI_ARGS_((int fd, int request, ...));
    1.82 +extern int readlink _ANSI_ARGS_((CONST char *path, char *buf, int bufsize));
    1.83 +extern int setegid _ANSI_ARGS_((gid_t group));
    1.84 +extern int seteuid _ANSI_ARGS_((uid_t user));
    1.85 +extern int setreuid _ANSI_ARGS_((int ruid, int euid));
    1.86 +extern int symlink _ANSI_ARGS_((CONST char *, CONST char *));
    1.87 +extern int ttyslot _ANSI_ARGS_((void));
    1.88 +#ifndef __SYMBIAN32__  
    1.89 +extern int truncate _ANSI_ARGS_((CONST char *path, unsigned long length));
    1.90 +#endif
    1.91 +extern int vfork _ANSI_ARGS_((void));
    1.92 +#endif /* _POSIX_SOURCE */
    1.93 +
    1.94 +#endif /* _UNISTD */
    1.95 +