Deleted Added
full compact
unistd.h (216603) unistd.h (219304)
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

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)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

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)unistd.h 8.12 (Berkeley) 4/27/95
30 * $FreeBSD: head/include/unistd.h 216603 2010-12-20 21:12:18Z uqs $
30 * $FreeBSD: head/include/unistd.h 219304 2011-03-05 12:40:35Z trasz $
31 */
32
33#ifndef _UNISTD_H_
34#define _UNISTD_H_
35
36#include <sys/cdefs.h>
37#include <sys/types.h> /* XXX adds too much pollution. */
38#include <sys/unistd.h>

--- 456 unchanged lines hidden (view full) ---

495int eaccess(const char *, int);
496void endusershell(void);
497int exect(const char *, char * const *, char * const *);
498int execvP(const char *, const char *, char * const *);
499int feature_present(const char *);
500char *fflagstostr(u_long);
501int getdomainname(char *, int);
502int getgrouplist(const char *, gid_t, gid_t *, int *);
31 */
32
33#ifndef _UNISTD_H_
34#define _UNISTD_H_
35
36#include <sys/cdefs.h>
37#include <sys/types.h> /* XXX adds too much pollution. */
38#include <sys/unistd.h>

--- 456 unchanged lines hidden (view full) ---

495int eaccess(const char *, int);
496void endusershell(void);
497int exect(const char *, char * const *, char * const *);
498int execvP(const char *, const char *, char * const *);
499int feature_present(const char *);
500char *fflagstostr(u_long);
501int getdomainname(char *, int);
502int getgrouplist(const char *, gid_t, gid_t *, int *);
503int getloginclass(char *, size_t);
503mode_t getmode(const void *, mode_t);
504int getosreldate(void);
505int getpeereid(int, uid_t *, gid_t *);
506int getresgid(gid_t *, gid_t *, gid_t *);
507int getresuid(uid_t *, uid_t *, uid_t *);
508char *getusershell(void);
509int initgroups(const char *, gid_t);
510int iruserok(unsigned long, int, const char *, const char *);

--- 44 unchanged lines hidden (view full) ---

555int setgroups(int, const gid_t *);
556void sethostid(long);
557int sethostname(const char *, int);
558#ifndef _SETKEY_DECLARED
559int setkey(const char *);
560#define _SETKEY_DECLARED
561#endif
562int setlogin(const char *);
504mode_t getmode(const void *, mode_t);
505int getosreldate(void);
506int getpeereid(int, uid_t *, gid_t *);
507int getresgid(gid_t *, gid_t *, gid_t *);
508int getresuid(uid_t *, uid_t *, uid_t *);
509char *getusershell(void);
510int initgroups(const char *, gid_t);
511int iruserok(unsigned long, int, const char *, const char *);

--- 44 unchanged lines hidden (view full) ---

556int setgroups(int, const gid_t *);
557void sethostid(long);
558int sethostname(const char *, int);
559#ifndef _SETKEY_DECLARED
560int setkey(const char *);
561#define _SETKEY_DECLARED
562#endif
563int setlogin(const char *);
564int setloginclass(const char *);
563void *setmode(const char *);
564void setproctitle(const char *_fmt, ...) __printf0like(1, 2);
565int setresgid(gid_t, gid_t, gid_t);
566int setresuid(uid_t, uid_t, uid_t);
567int setrgid(gid_t);
568int setruid(uid_t);
569void setusershell(void);
570int strtofflags(char **, u_long *, u_long *);

--- 16 unchanged lines hidden ---
565void *setmode(const char *);
566void setproctitle(const char *_fmt, ...) __printf0like(1, 2);
567int setresgid(gid_t, gid_t, gid_t);
568int setresuid(uid_t, uid_t, uid_t);
569int setrgid(gid_t);
570int setruid(uid_t);
571void setusershell(void);
572int strtofflags(char **, u_long *, u_long *);

--- 16 unchanged lines hidden ---