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