unistd.h (117105) | unistd.h (119141) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)unistd.h 8.12 (Berkeley) 4/27/95 | 1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)unistd.h 8.12 (Berkeley) 4/27/95 |
34 * $FreeBSD: head/include/unistd.h 117105 2003-07-01 12:09:06Z bde $ | 34 * $FreeBSD: head/include/unistd.h 119141 2003-08-19 20:39:49Z wollman $ |
35 */ 36 37#ifndef _UNISTD_H_ 38#define _UNISTD_H_ 39 40#include <sys/cdefs.h> 41#include <sys/types.h> /* XXX adds too much pollution. */ 42#include <sys/unistd.h> --- 356 unchanged lines hidden (view full) --- 399#endif 400 401/* 1003.1-2001 */ 402#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE 403int fchown(int, uid_t, gid_t); 404int readlink(const char *, char *, int); 405#endif 406#if __POSIX_VISIBLE >= 200112 | 35 */ 36 37#ifndef _UNISTD_H_ 38#define _UNISTD_H_ 39 40#include <sys/cdefs.h> 41#include <sys/types.h> /* XXX adds too much pollution. */ 42#include <sys/unistd.h> --- 356 unchanged lines hidden (view full) --- 399#endif 400 401/* 1003.1-2001 */ 402#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE 403int fchown(int, uid_t, gid_t); 404int readlink(const char *, char *, int); 405#endif 406#if __POSIX_VISIBLE >= 200112 |
407int gethostname(char *, int /* socklen_t */); | 407int gethostname(char *, size_t); |
408int setegid(gid_t); 409int seteuid(uid_t); 410#endif 411 412/* 413 * symlink() was originally in POSIX.1a, which was withdrawn after 414 * being overtaken by events (1003.1-2001). It was in XPG4.2, and of 415 * course has been in BSD since 4.2. --- 139 unchanged lines hidden --- | 408int setegid(gid_t); 409int seteuid(uid_t); 410#endif 411 412/* 413 * symlink() was originally in POSIX.1a, which was withdrawn after 414 * being overtaken by events (1003.1-2001). It was in XPG4.2, and of 415 * course has been in BSD since 4.2. --- 139 unchanged lines hidden --- |