1 /******************************************************************************
2   Copyright (c) 1992, 1995, 1996 Xerox Corporation.  All rights reserved.
3   Portions of this code were written by Stephen White, aka ghond.
4   Use and copying of this software and preparation of derivative works based
5   upon this software are permitted.  Any distribution of this software or
6   derivative works must comply with all applicable United States export
7   control laws.  This software is made available AS IS, and Xerox Corporation
8   makes no warranty about the software, its performance or its conformity to
9   any specification.  Any person obtaining a copy of this software is requested
10   to send their name and post office or electronic mail address to:
11     Pavel Curtis
12     Xerox PARC
13     3333 Coyote Hill Rd.
14     Palo Alto, CA 94304
15     Pavel@Xerox.Com
16  *****************************************************************************/
17 
18 #include "config.h"
19 
20 #if HAVE_UNISTD_H  &&  !NDECL_FORK
21 
22 #include <unistd.h>
23 
24 #else
25 
26 #include "my-types.h"
27 
28 extern unsigned alarm(unsigned);
29 extern int chmod(const char *, mode_t);
30 extern int close(int);
31 extern int dup(int);
32 extern void _exit(int);
33 extern pid_t fork(void);
34 extern pid_t getpid(void);
35 extern int link(const char *, const char *);
36 extern int pause(void);
37 extern int pipe(int *fds);
38 extern int read(int, void *, unsigned);
39 extern unsigned sleep(unsigned);
40 extern int unlink(const char *);
41 extern int write(int, const void *, unsigned);
42 
43 #endif
44 
45 /*
46  * $Log: my-unistd.h,v $
47  * Revision 1.3  1998/12/14 13:18:23  nop
48  * Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims
49  *
50  * Revision 1.2  1997/03/03 04:18:59  nop
51  * GNU Indent normalization
52  *
53  * Revision 1.1.1.1  1997/03/03 03:45:05  nop
54  * LambdaMOO 1.8.0p5
55  *
56  * Revision 2.1  1996/02/08  06:00:01  pavel
57  * Updated copyright notice for 1996.  Release 1.8.0beta1.
58  *
59  * Revision 2.0  1995/11/30  04:59:57  pavel
60  * New baseline version, corresponding to release 1.8.0alpha1.
61  *
62  * Revision 1.11  1992/10/23  23:03:47  pavel
63  * Added copyright notice.
64  *
65  * Revision 1.10  1992/10/23  19:37:01  pavel
66  * Added support for systems that have <unistd.h>, but still don't declare
67  * most of the functions in it...
68  *
69  * Revision 1.9  1992/10/21  03:02:35  pavel
70  * Converted to use new automatic configuration system.
71  *
72  * Revision 1.8  1992/10/17  20:42:25  pavel
73  * Added declarations of link() and unlink().
74  *
75  * Revision 1.7  1992/09/27  19:30:09  pavel
76  * Added declarations of chmod() and pipe() for non-POSIX systems.
77  *
78  * Revision 1.6  1992/09/21  17:08:59  pavel
79  * Added missing #include of config.h.
80  *
81  * Revision 1.5  1992/09/03  23:53:33  pavel
82  * Added declaration for sleep().
83  *
84  * Revision 1.4  1992/08/31  22:26:21  pjames
85  * Changed some `char *'s to `const char *'
86  *
87  * Revision 1.3  1992/08/21  00:46:08  pavel
88  * Changed to conditionalize on the option AVOID_POSIX rather than USE_POSIX.
89  *
90  * Revision 1.2  1992/08/13  23:19:46  pavel
91  * Added declaration for dup()...
92  *
93  * Revision 1.1  1992/07/20  23:23:12  pavel
94  * Initial RCS-controlled version.
95  */
96