Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / pTk / compat / unistd.h
CommitLineData
86530b38
AT
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 * $Header: /home/auspex6/CVSROOT/tcl/compat/unistd.h,v 1.1.1.1 1993/11/29 10:44:47 a904209 Exp $
16 */
17
18#ifndef _UNISTD
19#define _UNISTD
20
21#include <sys/types.h>
22#ifndef _TCL
23# include "../Lang.h"
24#endif
25
26#ifndef NULL
27#define NULL 0
28#endif
29
30#ifndef LSEEK_TYPE
31#define LSEEK_TYPE long
32#endif
33
34/*
35 * Strict POSIX stuff goes here. Extensions go down below, in the
36 * ifndef _POSIX_SOURCE section.
37 */
38
39extern void _exit _ANSI_ARGS_((int status));
40extern int access _ANSI_ARGS_((CONST char *path, int mode));
41extern int chdir _ANSI_ARGS_((CONST char *path));
42extern int chown _ANSI_ARGS_((CONST char *path, uid_t owner, gid_t group));
43extern int close _ANSI_ARGS_((int fd));
44extern int dup _ANSI_ARGS_((int oldfd));
45extern int dup2 _ANSI_ARGS_((int oldfd, int newfd));
46extern int execl _ANSI_ARGS_((CONST char *path, ...));
47extern int execle _ANSI_ARGS_((CONST char *path, ...));
48extern int execlp _ANSI_ARGS_((CONST char *file, ...));
49extern int execv _ANSI_ARGS_((CONST char *path, char **argv));
50extern int execve _ANSI_ARGS_((CONST char *path, char **argv, char **envp));
51extern int execvp _ANSI_ARGS_((CONST char *file, char **argv));
52extern pid_t fork _ANSI_ARGS_((void));
53extern char *getcwd _ANSI_ARGS_((char *buf, size_t size));
54extern gid_t getegid _ANSI_ARGS_((void));
55extern uid_t geteuid _ANSI_ARGS_((void));
56extern gid_t getgid _ANSI_ARGS_((void));
57extern int getgroups _ANSI_ARGS_((int bufSize, int *buffer));
58extern pid_t getpid _ANSI_ARGS_((void));
59extern uid_t getuid _ANSI_ARGS_((void));
60extern int isatty _ANSI_ARGS_((int fd));
61extern long lseek _ANSI_ARGS_((int fd, LSEEK_TYPE offset, int whence));
62extern int pipe _ANSI_ARGS_((int *fildes));
63extern int read _ANSI_ARGS_((int fd, char *buf, size_t size));
64extern int setgid _ANSI_ARGS_((gid_t group));
65extern int setuid _ANSI_ARGS_((uid_t user));
66extern unsigned sleep _ANSI_ARGS_ ((unsigned seconds));
67extern char *ttyname _ANSI_ARGS_((int fd));
68extern int unlink _ANSI_ARGS_((CONST char *path));
69extern int write _ANSI_ARGS_((int fd, CONST char *buf, size_t size));
70
71#ifndef _POSIX_SOURCE
72extern char *crypt _ANSI_ARGS_((CONST char *, CONST char *));
73extern int fchown _ANSI_ARGS_((int fd, uid_t owner, gid_t group));
74extern int flock _ANSI_ARGS_((int fd, int operation));
75extern int ftruncate _ANSI_ARGS_((int fd, unsigned long length));
76extern int readlink _ANSI_ARGS_((CONST char *path, char *buf, int bufsize));
77extern int setegid _ANSI_ARGS_((gid_t group));
78extern int seteuid _ANSI_ARGS_((uid_t user));
79extern int setreuid _ANSI_ARGS_((int ruid, int euid));
80extern int symlink _ANSI_ARGS_((CONST char *, CONST char *));
81extern int ttyslot _ANSI_ARGS_((void));
82extern int truncate _ANSI_ARGS_((CONST char *path, unsigned long length));
83extern int vfork _ANSI_ARGS_((void));
84#endif /* _POSIX_SOURCE */
85
86#endif /* _UNISTD */
87