]>
git.saurik.com Git - apple/libc.git/blob - include/unistd.h
456418ccdb26dc68d54c2fb4b4f262ac0ac071e4
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
27 * Copyright (c) 1991, 1993, 1994
28 * The Regents of the University of California. All rights reserved.
30 * Redistribution and use in source and binary forms, with or without
31 * modification, are permitted provided that the following conditions
33 * 1. Redistributions of source code must retain the above copyright
34 * notice, this list of conditions and the following disclaimer.
35 * 2. Redistributions in binary form must reproduce the above copyright
36 * notice, this list of conditions and the following disclaimer in the
37 * documentation and/or other materials provided with the distribution.
38 * 3. All advertising materials mentioning features or use of this software
39 * must display the following acknowledgement:
40 * This product includes software developed by the University of
41 * California, Berkeley and its contributors.
42 * 4. Neither the name of the University nor the names of its contributors
43 * may be used to endorse or promote products derived from this software
44 * without specific prior written permission.
46 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
47 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
48 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
49 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
50 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
51 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
52 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
54 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * @(#)unistd.h 8.12 (Berkeley) 4/27/95
60 * Copyright (c) 1998 Apple Compter, Inc.
65 7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
66 3/26/98 CHW at Apple added real interface to searchfs call
67 3/5/98 CHW at Apple added hfs semantic system calls headers
73 #include <sys/cdefs.h>
74 #include <sys/types.h>
75 #include <sys/unistd.h> /* XXX needs to go away */
78 #define STDIN_FILENO 0 /* standard input file descriptor */
79 #define STDOUT_FILENO 1 /* standard output file descriptor */
80 #define STDERR_FILENO 2 /* standard error file descriptor */
85 #else /* ! __GNUG__ */
87 #define NULL ((void *)0)
88 #else /* __cplusplus */
90 #endif /* ! __cplusplus */
94 #ifdef _POSIX_VERSION /* XXX <sys/unistd.h> */
97 #ifdef _POSIX2_VERSION /* XXX <sys/unistd.h> */
98 #undef _POSIX2_VERSION
100 #ifdef _POSIX_CHOWN_RESTRICTED /* XXX <sys/unistd.h> */
101 #undef _POSIX_CHOWN_RESTRICTED
103 #ifdef _POSIX_NO_TRUNC /* XXX <sys/unistd.h> */
104 #undef _POSIX_NO_TRUNC
107 /* Version test macros */
108 #define _POSIX_VERSION 200112L
109 #define _POSIX2_VERSION 200112L
111 #define _XOPEN_VERSION 600 /* [XSI] */
112 #define _XOPEN_XCU_VERSION 4 /* Older standard */
115 /* Please keep this list in the same order as the applicable standard */
116 #define _POSIX_ADVISORY_INFO (-1) /* [ADV] */
117 #define _POSIX_ASYNCHRONOUS_IO 200112L /* [AIO] */
118 #define _POSIX_BARRIERS (-1) /* [BAR] */
119 #define _POSIX_CHOWN_RESTRICTED 200112L
120 #define _POSIX_CLOCK_SELECTION (-1) /* [CS] */
121 #define _POSIX_CPUTIME (-1) /* [CPT] */
122 #define _POSIX_FSYNC 200112L /* [FSC] */
123 #define _POSIX_IPV6 200112L
124 #define _POSIX_JOB_CONTROL 200112L
125 #define _POSIX_MAPPED_FILES 200112L /* [MF] */
126 #define _POSIX_MEMLOCK 200112L /* [ML] */
127 #define _POSIX_MEMLOCK_RANGE 200112L /* [MR] */
128 #define _POSIX_MEMORY_PROTECTION 200112L /* [MPR] */
129 #define _POSIX_MESSAGE_PASSING (-1) /* [MSG] */
130 #define _POSIX_MONOTONIC_CLOCK (-1) /* [MON] */
131 #define _POSIX_NO_TRUNC 200112L
132 #define _POSIX_PRIORITIZED_IO (-1) /* [PIO] */
133 #define _POSIX_PRIORITY_SCHEDULING (-1) /* [PS] */
134 #define _POSIX_RAW_SOCKETS 200112L /* [RS] */
135 #define _POSIX_READER_WRITER_LOCKS 200112L /* [THR] */
136 #define _POSIX_REALTIME_SIGNALS (-1) /* [RTS] */
137 #define _POSIX_REGEXP 200112L
138 #define _POSIX_SAVED_IDS (-1) /* XXX required */
139 #define _POSIX_SEMAPHORES 200112L /* [SEM] */
140 #define _POSIX_SHARED_MEMORY_OBJECTS 200112L /* [SHM] */
141 #define _POSIX_SHELL 200112L
142 #define _POSIX_SPAWN (-1) /* [SPN] */
143 #define _POSIX_SPIN_LOCKS (-1) /* [SPI] */
144 #define _POSIX_SPORADIC_SERVER (-1) /* [SS] */
145 #define _POSIX_SYNCHRONIZED_IO 200112L /* [SIO] */
146 #define _POSIX_THREAD_ATTR_STACKADDR 200112L /* [TSA] */
147 #define _POSIX_THREAD_ATTR_STACKSIZE 200112L /* [TSS] */
148 #define _POSIX_THREAD_CPUTIME (-1) /* [TCT] */
149 #define _POSIX_THREAD_PRIO_INHERIT (-1) /* [TPI] */
150 #define _POSIX_THREAD_PRIO_PROTECT (-1) /* [TPP] */
151 #define _POSIX_THREAD_PRIORITY_SCHEDULING (-1) /* [TPS] */
152 #define _POSIX_THREAD_PROCESS_SHARED 200112L /* [TSH] */
153 #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L /* [TSF] */
154 #define _POSIX_THREAD_SPORADIC_SERVER (-1) /* [TSP] */
155 #define _POSIX_THREADS 200112L /* [THR] */
156 #define _POSIX_TIMEOUTS (-1) /* [TMO] */
157 #define _POSIX_TIMERS (-1) /* [TMR] */
158 #define _POSIX_TRACE (-1) /* [TRC] */
159 #define _POSIX_TRACE_EVENT_FILTER (-1) /* [TEF] */
160 #define _POSIX_TRACE_INHERIT (-1) /* [TRI] */
161 #define _POSIX_TRACE_LOG (-1) /* [TRL] */
162 #define _POSIX_TYPED_MEMORY_OBJECTS (-1) /* [TYM] */
163 #ifndef _POSIX_VDISABLE
164 #define _POSIX_VDISABLE 0xff /* same as sys/termios.h */
165 #endif /* _POSIX_VDISABLE */
167 #define _POSIX2_C_BIND 200112L
168 #define _POSIX2_C_DEV (-1) /* c99 command */
169 #define _POSIX2_CHAR_TERM 200112L
170 #define _POSIX2_FORT_DEV (-1) /* fort77 command */
171 #define _POSIX2_FORT_RUN 200112L
172 #define _POSIX2_LOCALEDEF (-1) /* localedef command */
173 #define _POSIX2_PBS (-1)
174 #define _POSIX2_PBS_ACCOUNTING (-1)
175 #define _POSIX2_PBS_CHECKPOINT (-1)
176 #define _POSIX2_PBS_LOCATE (-1)
177 #define _POSIX2_PBS_MESSAGE (-1)
178 #define _POSIX2_PBS_TRACK (-1)
179 #define _POSIX2_SW_DEV 200112L
180 #define _POSIX2_UPE 200112L /* XXXX no fc, newgrp, tabs */
182 #define _V6_ILP32_OFF32 (-1)
183 #define _V6_ILP32_OFFBIG 0
184 #define _V6_LP64_OFF64 0
185 #define _V6_LPBIG_OFFBIG (-1)
187 #define _XBS5_ILP32_OFF32 _V6_ILP32_OFF32 /* legacy */
188 #define _XBS5_ILP32_OFFBIG _V6_ILP32_OFFBIG /* legacy */
189 #define _XBS5_LP64_OFF64 _V6_LP64_OFF64 /* legacy */
190 #define _XBS5_LPBIG_OFFBIG _V6_LPBIG_OFFBIG /* legacy */
192 #define _XOPEN_CRYPT (1)
193 #define _XOPEN_ENH_I18N (1) /* XXX required */
194 #define _XOPEN_LEGACY (-1) /* no ftime gcvt, wcswcs */
195 #define _XOPEN_REALTIME (-1) /* no q'ed signals, mq_* */
196 #define _XOPEN_REALTIME_THREADS (-1) /* no posix_spawn, et. al. */
197 #define _XOPEN_SHM (1)
198 #define _XOPEN_STREAMS (-1)
199 #define _XOPEN_UNIX (1)
202 #ifndef _POSIX_SOURCE
203 #define F_ULOCK 0 /* unlock locked section */
204 #define F_LOCK 1 /* lock a section for exclusive use */
205 #define F_TLOCK 2 /* test and lock a section for exclusive use */
206 #define F_TEST 3 /* test a section for locks by other procs */
209 /* configurable system variables */
210 #define _SC_ARG_MAX 1
211 #define _SC_CHILD_MAX 2
212 #define _SC_CLK_TCK 3
213 #define _SC_NGROUPS_MAX 4
214 #define _SC_OPEN_MAX 5
215 #define _SC_JOB_CONTROL 6
216 #define _SC_SAVED_IDS 7
217 #define _SC_VERSION 8
218 #define _SC_BC_BASE_MAX 9
219 #define _SC_BC_DIM_MAX 10
220 #define _SC_BC_SCALE_MAX 11
221 #define _SC_BC_STRING_MAX 12
222 #define _SC_COLL_WEIGHTS_MAX 13
223 #define _SC_EXPR_NEST_MAX 14
224 #define _SC_LINE_MAX 15
225 #define _SC_RE_DUP_MAX 16
226 #define _SC_2_VERSION 17
227 #define _SC_2_C_BIND 18
228 #define _SC_2_C_DEV 19
229 #define _SC_2_CHAR_TERM 20
230 #define _SC_2_FORT_DEV 21
231 #define _SC_2_FORT_RUN 22
232 #define _SC_2_LOCALEDEF 23
233 #define _SC_2_SW_DEV 24
235 #define _SC_STREAM_MAX 26
236 #define _SC_TZNAME_MAX 27
237 #define _SC_ASYNCHRONOUS_IO 28
238 #define _SC_PAGESIZE 29
239 #define _SC_MEMLOCK 30
240 #define _SC_MEMLOCK_RANGE 31
241 #define _SC_MEMORY_PROTECTION 32
242 #define _SC_MESSAGE_PASSING 33
243 #define _SC_PRIORITIZED_IO 34
244 #define _SC_PRIORITY_SCHEDULING 35
245 #define _SC_REALTIME_SIGNALS 36
246 #define _SC_SEMAPHORES 37
248 #define _SC_SHARED_MEMORY_OBJECTS 39
249 #define _SC_SYNCHRONIZED_IO 40
250 #define _SC_TIMERS 41
251 #define _SC_AIO_LISTIO_MAX 42
252 #define _SC_AIO_MAX 43
253 #define _SC_AIO_PRIO_DELTA_MAX 44
254 #define _SC_DELAYTIMER_MAX 45
255 #define _SC_MQ_OPEN_MAX 46
256 #define _SC_MAPPED_FILES 47 /* swap _SC_PAGESIZE vs. BSD */
257 #define _SC_RTSIG_MAX 48
258 #define _SC_SEM_NSEMS_MAX 49
259 #define _SC_SEM_VALUE_MAX 50
260 #define _SC_SIGQUEUE_MAX 51
261 #define _SC_TIMER_MAX 52
263 #define _SC_2_PBS_ACCOUNTING 60
264 #define _SC_2_PBS_CHECKPOINT 61
265 #define _SC_2_PBS_LOCATE 62
266 #define _SC_2_PBS_MESSAGE 63
267 #define _SC_2_PBS_TRACK 64
268 #define _SC_ADVISORY_INFO 65
269 #define _SC_BARRIERS 66
270 #define _SC_CLOCK_SELECTION 67
271 #define _SC_CPUTIME 68
272 #define _SC_FILE_LOCKING 69
273 #define _SC_GETGR_R_SIZE_MAX 70
274 #define _SC_GETPW_R_SIZE_MAX 71
275 #define _SC_HOST_NAME_MAX 72
276 #define _SC_LOGIN_NAME_MAX 73
277 #define _SC_MONOTONIC_CLOCK 74
278 #define _SC_MQ_PRIO_MAX 75
279 #define _SC_READER_WRITER_LOCKS 76
280 #define _SC_REGEXP 77
283 #define _SC_SPIN_LOCKS 80
284 #define _SC_SPORADIC_SERVER 81
285 #define _SC_THREAD_ATTR_STACKADDR 82
286 #define _SC_THREAD_ATTR_STACKSIZE 83
287 #define _SC_THREAD_CPUTIME 84
288 #define _SC_THREAD_DESTRUCTOR_ITERATIONS 85
289 #define _SC_THREAD_KEYS_MAX 86
290 #define _SC_THREAD_PRIO_INHERIT 87
291 #define _SC_THREAD_PRIO_PROTECT 88
292 #define _SC_THREAD_PRIORITY_SCHEDULING 89
293 #define _SC_THREAD_PROCESS_SHARED 90
294 #define _SC_THREAD_SAFE_FUNCTIONS 91
295 #define _SC_THREAD_SPORADIC_SERVER 92
296 #define _SC_THREAD_STACK_MIN 93
297 #define _SC_THREAD_THREADS_MAX 94
298 #define _SC_TIMEOUTS 95
299 #define _SC_THREADS 96
301 #define _SC_TRACE_EVENT_FILTER 98
302 #define _SC_TRACE_INHERIT 99
303 #define _SC_TRACE_LOG 100
304 #define _SC_TTY_NAME_MAX 101
305 #define _SC_TYPED_MEMORY_OBJECTS 102
306 #define _SC_V6_ILP32_OFF32 103
307 #define _SC_V6_ILP32_OFFBIG 104
308 #define _SC_V6_LP64_OFF64 105
309 #define _SC_V6_LPBIG_OFFBIG 106
311 #define _SC_RAW_SOCKETS 119
312 #define _SC_SYMLOOP_MAX 120
313 #define _SC_ATEXIT_MAX 107
314 #define _SC_IOV_MAX 56
315 #define _SC_PAGE_SIZE _SC_PAGESIZE
316 #define _SC_XOPEN_CRYPT 108
317 #define _SC_XOPEN_ENH_I18N 109
318 #define _SC_XOPEN_LEGACY 110
319 #define _SC_XOPEN_REALTIME 111
320 #define _SC_XOPEN_REALTIME_THREADS 112
321 #define _SC_XOPEN_SHM 113
322 #define _SC_XOPEN_STREAMS (-1) /* 114 - Not supported */
323 #define _SC_XOPEN_UNIX 115
324 #define _SC_XOPEN_VERSION 116
325 #define _SC_XOPEN_XCU_VERSION 121
326 #define _SC_XBS5_ILP32_OFF32 122
327 #define _SC_XBS5_ILP32_OFFBIG 123
328 #define _SC_XBS5_LP64_OFF64 124
329 #define _SC_XBS5_LPBIG_OFFBIG 125
331 #ifndef _CS_PATH /* XXX temporary #ifdef'ed for <sys/unistd.h> */
334 #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 2
335 #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 3
336 #define _CS_POSIX_V6_ILP32_OFF32_LIBS 4
337 #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 5
338 #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 6
339 #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 7
340 #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 8
341 #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 9
342 #define _CS_POSIX_V6_LP64_OFF64_LIBS 10
343 #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 11
344 #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 12
345 #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 13
346 #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 14
348 /* reserved for compatibility with Issue 5 */
349 #define _CS_XBS5_ILP32_OFF32_CFLAGS 20
350 #define _CS_XBS5_ILP32_OFF32_LDFLAGS 21
351 #define _CS_XBS5_ILP32_OFF32_LIBS 22
352 #define _CS_XBS5_ILP32_OFF32_LINTFLAGS 23
353 #define _CS_XBS5_ILP32_OFFBIG_CFLAGS 24
354 #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS 25
355 #define _CS_XBS5_ILP32_OFFBIG_LIBS 26
356 #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS 27
357 #define _CS_XBS5_LP64_OFF64_CFLAGS 28
358 #define _CS_XBS5_LP64_OFF64_LDFLAGS 29
359 #define _CS_XBS5_LP64_OFF64_LIBS 30
360 #define _CS_XBS5_LP64_OFF64_LINTFLAGS 31
361 #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS 32
362 #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS 33
363 #define _CS_XBS5_LPBIG_OFFBIG_LIBS 34
364 #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS 35
369 void _Exit(int) __dead2
;
370 void _exit(int) __dead2
;
371 int access(const char *, int);
372 unsigned int alarm(unsigned int);
373 int chdir(const char *);
374 int chown(const char *, uid_t
, gid_t
);
376 size_t confstr(int, char *, size_t);
379 int execl(const char *, const char *, ...);
380 int execle(const char *, const char *, ...);
381 int execlp(const char *, const char *, ...);
382 int execv(const char *, char * const *);
383 int execve(const char *, char * const *, char * const *);
384 int execvp(const char *, char * const *);
386 long fpathconf(int, int);
387 char *getcwd(char *, size_t);
388 int getdomainname(char *, int);
392 int getgroups(int, gid_t
[]);
393 char *getlogin(void);
394 int getlogin_r(char *, int);
400 int lchown(const char *, uid_t
, gid_t
);
401 int link(const char *, const char *);
402 off_t
lseek(int, off_t
, int);
403 long pathconf(const char *, int);
406 ssize_t
read(int, void *, size_t);
407 int rmdir(const char *);
408 int setdomainname(const char *, int);
410 int setpgid(pid_t
, pid_t
);
413 unsigned int sleep(unsigned int);
415 pid_t
tcgetpgrp(int);
416 int tcsetpgrp(int, pid_t
);
418 char *ttyname_r(int, char *, size_t);
419 int unlink(const char *);
420 ssize_t
write(int, const void *, size_t);
422 extern char *optarg
; /* getopt(3) external variables */
423 extern int optind
, opterr
, optopt
, optreset
;
424 int getopt(int, char * const [], const char *);
426 #ifndef _POSIX_SOURCE
428 struct timespec
; /* pselect(3) */
429 struct timeval
; /* select(2) */
431 int acct(const char *);
432 int async_daemon(void);
433 char *brk(const char *);
434 int chroot(const char *);
435 char *crypt(const char *, const char *);
436 void encrypt(char *, int);
437 void endusershell(void);
439 int fchown(int, int, int);
440 char *fflagstostr(u_long
);
442 int ftruncate(int, off_t
);
443 int getdtablesize(void);
444 int getgrouplist(const char *, int, int *, int *);
445 long gethostid(void);
446 int gethostname(char *, int);
447 mode_t
getmode(const void *, mode_t
);
448 int getpagesize(void) __pure2
;
449 char *getpass(const char *);
450 int getpeereid(int, uid_t
*, gid_t
*);
451 int getpgid(pid_t _pid
);
452 int getsid(pid_t _pid
);
453 char *getusershell(void);
454 char *getwd(char *); /* obsoleted by getcwd() */
455 int lockf(int, int, off_t
);
456 int initgroups(const char *, int);
457 int iruserok(unsigned long, int, const char *, const char *);
459 char *mkdtemp(char *);
460 int mknod(const char *, mode_t
, dev_t
);
462 int mkstemps(char *, int);
463 char *mktemp(char *);
464 int nfssvc(int, void *);
466 ssize_t
pread(int, void *, size_t, off_t
);
468 void psignal(unsigned int, const char *);
469 extern __const
char *__const sys_siglist
[];
473 int profil(char *, int, int, int);
475 int pselect(int, fd_set
*, fd_set
*, fd_set
*,
476 const struct timespec
*, const sigset_t
*);
477 #endif /* ! __MWERKS__ */
478 ssize_t
pwrite(int, const void *, size_t, off_t
);
479 int rcmd(char **, int, const char *, const char *, const char *, int *);
480 int readlink(const char *, char *, int);
482 int revoke(const char *);
483 int rresvport(int *);
484 int rresvport_af(int *, int);
485 int ruserok(const char *, int, const char *, const char *);
487 int select(int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*);
490 int setgroups(int, const gid_t
*);
491 void sethostid(long);
492 int sethostname(const char *, int);
493 void setkey(const char *);
494 int setlogin(const char *);
495 void *setmode(const char *);
496 int setpgrp(pid_t pid
, pid_t pgrp
); /* obsoleted by setpgid() */
497 int setregid(gid_t
, gid_t
);
498 int setreuid(uid_t
, uid_t
);
501 void setusershell(void);
502 int strtofflags(char **, u_long
*, u_long
*);
503 int swapon(const char *);
504 int symlink(const char *, const char *);
506 int syscall(int, ...);
507 int truncate(const char *, off_t
);
509 unsigned int ualarm(unsigned int, unsigned int);
510 int undelete(const char *);
511 int unwhiteout(const char *);
512 int usleep(unsigned int);
513 void *valloc(size_t);
516 extern char *suboptarg
; /* getsubopt(3) external variable */
517 int getsubopt(char **, char * const *, char **);
519 /* HFS & HFS Plus semantics system calls go here */
521 int getattrlist(const char*,void*,void*,size_t,unsigned int);
522 int setattrlist(const char*,void*,void*,size_t,unsigned int);
523 int exchangedata(const char*,const char*,unsigned int);
524 int checkuseraccess(const char*,uid_t
,gid_t
*,int,int,unsigned int);
525 int getdirentriesattr(int,void*,void*,size_t,unsigned int*,unsigned int*,unsigned int*,unsigned int);
526 int searchfs(const char*,void*,void*,unsigned int,unsigned int,void*);
528 int fsctl(const char *,unsigned int,void*,unsigned int);
530 int getattrlist(const char*,void*,void*,size_t,unsigned long);
531 int setattrlist(const char*,void*,void*,size_t,unsigned long);
532 int exchangedata(const char*,const char*,unsigned long);
533 int checkuseraccess(const char*,uid_t
,gid_t
*,int,int,unsigned long);
534 int getdirentriesattr(int,void*,void*,size_t,unsigned long*,unsigned long*,unsigned long*,unsigned long);
535 int searchfs(const char*,void*,void*,unsigned long,unsigned long,void*);
537 int fsctl(const char *,unsigned long,void*,unsigned long);
538 #endif /* __LP64__ */
540 #endif /* !_POSIX_SOURCE */
543 #endif /* !_UNISTD_H_ */