Deleted Added
full compact
getpwent.c (96186) getpwent.c (111010)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Portions Copyright (c) 1994, 1995, Jason Downs. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

32 * SUCH DAMAGE.
33 */
34
35#if defined(LIBC_SCCS) && !defined(lint)
36static char sccsid[] = "@(#)getpwent.c 8.2 (Berkeley) 4/27/95";
37#endif /* LIBC_SCCS and not lint */
38/* $NetBSD: getpwent.c,v 1.40.2.2 1999/04/27 22:09:45 perry Exp $ */
39#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Portions Copyright (c) 1994, 1995, Jason Downs. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

32 * SUCH DAMAGE.
33 */
34
35#if defined(LIBC_SCCS) && !defined(lint)
36static char sccsid[] = "@(#)getpwent.c 8.2 (Berkeley) 4/27/95";
37#endif /* LIBC_SCCS and not lint */
38/* $NetBSD: getpwent.c,v 1.40.2.2 1999/04/27 22:09:45 perry Exp $ */
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/lib/libc/gen/getpwent.c 96186 2002-05-07 23:26:00Z des $");
40__FBSDID("$FreeBSD: head/lib/libc/gen/getpwent.c 111010 2003-02-16 17:29:11Z nectar $");
41
42#include "un-namespace.h"
43#include <sys/param.h>
44#include <fcntl.h>
45#include <db.h>
46#include <syslog.h>
47#include <pwd.h>
48#include <utmp.h>
49#include <errno.h>
50#include <unistd.h>
51#include <stdlib.h>
52#include <string.h>
53#include <limits.h>
54#include <nsswitch.h>
41
42#include "un-namespace.h"
43#include <sys/param.h>
44#include <fcntl.h>
45#include <db.h>
46#include <syslog.h>
47#include <pwd.h>
48#include <utmp.h>
49#include <errno.h>
50#include <unistd.h>
51#include <stdlib.h>
52#include <string.h>
53#include <limits.h>
54#include <nsswitch.h>
55#include <netdb.h>
55#ifdef HESIOD
56#include <hesiod.h>
57#endif
58#ifdef YP
59#include <machine/param.h>
60#include <stdio.h>
61#include <rpc/rpc.h>
62#include <rpcsvc/yp_prot.h>
63#include <rpcsvc/ypclnt.h>
64#endif
65#include "un-namespace.h"
66
56#ifdef HESIOD
57#include <hesiod.h>
58#endif
59#ifdef YP
60#include <machine/param.h>
61#include <stdio.h>
62#include <rpc/rpc.h>
63#include <rpcsvc/yp_prot.h>
64#include <rpcsvc/ypclnt.h>
65#endif
66#include "un-namespace.h"
67
67extern void setnetgrent(char *);
68extern int getnetgrent(char **, char **, char **);
69extern int innetgr(const char *, const char *, const char *, const char *);
70
71#include "pw_scan.h"
72
73#if defined(YP) || defined(HESIOD)
74#define _PASSWD_COMPAT
75#endif
76
77/*
78 * The lookup techniques and data extraction code here must be kept

--- 1105 unchanged lines hidden ---
68#include "pw_scan.h"
69
70#if defined(YP) || defined(HESIOD)
71#define _PASSWD_COMPAT
72#endif
73
74/*
75 * The lookup techniques and data extraction code here must be kept

--- 1105 unchanged lines hidden ---