Make a lot of include-files self-contained. I excluded the patches changing

int's to gid_t and uid_t - should I commit these, too?

Closes PR misc/2625.

Submitted by:	Julian Assange <proff@iq.org>
This commit is contained in:
Eivind Eklund 1997-05-07 02:27:18 +00:00
parent 89ee8ac3d6
commit 48ea0bec18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25520
30 changed files with 100 additions and 21 deletions

View File

@ -50,7 +50,7 @@
*
* @(#)inet.h 8.1 (Berkeley) 6/2/93
* From: inet.h,v 8.6 1996/08/08 06:54:29 vixie Exp
* $Id$
* $Id: inet.h,v 1.7 1997/02/23 09:17:19 peter Exp $
*/
#ifndef _ARPA_INET_H_
@ -61,7 +61,7 @@
#include <sys/types.h>
#include <sys/cdefs.h>
struct in_addr;
#include <netinet/in.h>
__BEGIN_DECLS
int ascii2addr __P((int, const char *, void *));

View File

@ -36,6 +36,9 @@
#ifndef _FTS_H_
#define _FTS_H_
#include <sys/types.h>
#include <nlist.h>
typedef struct {
struct _ftsent *fts_cur; /* current node */
struct _ftsent *fts_child; /* linked list of children */

View File

@ -41,6 +41,8 @@
#ifndef _GRP_H_
#define _GRP_H_
#include <sys/types.h>
#ifndef _POSIX_SOURCE
#define _PATH_GROUP "/etc/group"
#endif

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: link.h,v 1.11 1997/02/23 09:17:13 peter Exp $
*/
/*
@ -41,6 +41,9 @@
#ifndef _LINK_H_
#define _LINK_H_
#include <sys/types.h>
#include <nlist.h>
/*
* A `Shared Object Descriptor' describes a shared object that is needed
* to complete the link edit process of the object containing it.

View File

@ -21,12 +21,14 @@
*
* Low-level routines relating to the user capabilities database
*
* $Id: login_cap.h,v 1.6 1997/02/23 09:17:13 peter Exp $
* $Id: login_cap.h,v 1.7 1997/03/14 17:53:35 peter Exp $
*/
#ifndef _LOGIN_CAP_H_
#define _LOGIN_CAP_H_
#include <sys/types.h>
#define LOGIN_DEFCLASS "default"
#define LOGIN_DEFSTYLE "passwd"
#define LOGIN_DEFSERVICE "login"
@ -54,7 +56,9 @@
#define BI_SECURE "secure"
#define BI_SETENV "setenv"
#ifndef AUTH_NONE /* Protect against <rpc/auth.h> */
#define AUTH_NONE 0x00
#endif
#define AUTH_OKAY 0x01
#define AUTH_ROOTOKAY 0x02 /* root login okay */
#define AUTH_SECURE 0x04 /* secure login */

View File

@ -36,7 +36,9 @@
#ifndef _MPOOL_H_
#define _MPOOL_H_
#include <sys/types.h>
#include <sys/queue.h>
#include <db.h>
/*
* The memory pool scheme is a simple one. Each in-memory page is referenced

View File

@ -41,6 +41,8 @@
#ifndef _PROTOCOLS_DUMPRESTORE_H_
#define _PROTOCOLS_DUMPRESTORE_H_
#include <sys/types.h>
#include <ufs/ufs/dinode.h>
/*
* TP_BSIZE is the size of file blocks on the dump tapes.
* Note that TP_BSIZE must be a multiple of DEV_BSIZE.

View File

@ -40,7 +40,10 @@
#ifdef __cplusplus
extern "C" {
#endif
#ident "$Revision: 1.1.1.1 $"
#ident "$Revision: 1.8 $"
#include <sys/types.h>
#include <sys/socket.h>
/*
* Routing Information Protocol

View File

@ -36,6 +36,9 @@
#ifndef _PROTOCOLS_TALKD_H_
#define _PROTOCOLS_TALKD_H_
#include <sys/types.h>
#include <sys/socket.h>
/*
* This describes the protocol used by the talk server and clients.
*

View File

@ -36,6 +36,10 @@
#ifndef _PROTOCOLS_TIMED_H_
#define _PROTOCOLS_TIMED_H_
#include <sys/types.h>
#include <sys/time.h>
#include <sys/param.h>
/*
* Time Synchronization Protocol
*/

View File

@ -33,6 +33,8 @@
#ifndef _PTHREAD_NP_H_
#define _PTHREAD_NP_H_
#include <pthread.h>
/*
* Non-POSIX thread function prototype definitions:
*/

View File

@ -41,6 +41,7 @@
#define _REGEX_H_
#include <sys/cdefs.h>
#include <sys/types.h>
/* types */
typedef off_t regoff_t;

View File

@ -53,7 +53,7 @@
*
* @(#)resolv.h 8.1 (Berkeley) 6/2/93
* From Id: resolv.h,v 8.17 1996/11/26 10:11:20 vixie Exp
* $Id$
* $Id: resolv.h,v 1.10 1997/02/23 09:17:15 peter Exp $
*/
#ifndef _RESOLV_H_
@ -62,6 +62,8 @@
#include <sys/param.h>
#include <sys/types.h>
#include <sys/cdefs.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
/*

View File

@ -28,7 +28,7 @@
*
* from: @(#)auth.h 1.17 88/02/08 SMI
* from: @(#)auth.h 2.3 88/08/07 4.0 RPCSRC
* $Id: auth.h,v 1.8 1997/02/23 09:17:21 peter Exp $
* $Id: auth.h,v 1.9 1997/05/07 00:58:23 bde Exp $
*/
/*
@ -44,6 +44,8 @@
#ifndef _RPC_AUTH_H
#define _RPC_AUTH_H
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#define MAX_AUTH_BYTES 400
#define MAXNETNAMELEN 255 /* maximum length of network user's name */
@ -174,7 +176,9 @@ extern AUTH *authdes_create __P((char *, u_int,
struct sockaddr_in *, des_block *));
__END_DECLS
#ifndef AUTH_NONE /* Protect against <login_cap.h>
#define AUTH_NONE 0 /* no authentication */
#endif
#define AUTH_NULL 0 /* backward compatibility */
#define AUTH_UNIX 1 /* unix style (uid, gids) */
#define AUTH_SHORT 2 /* short hand unix style */

View File

@ -28,7 +28,7 @@
*
* from: @(#)auth_unix.h 1.8 88/02/08 SMI
* from: @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC
* $Id$
* $Id: auth_unix.h,v 1.6 1997/02/23 09:17:21 peter Exp $
*/
/*
@ -47,6 +47,9 @@
#ifndef _RPC_AUTH_UNIX_H
#define _RPC_AUTH_UNIX_H
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
/* The machine name is part of a credential; it may not exceed 255 bytes */
#define MAX_MACHINE_NAME 255

View File

@ -28,7 +28,7 @@
*
* from: @(#)clnt.h 1.31 88/02/08 SMI
* from: @(#)clnt.h 2.1 88/07/29 4.0 RPCSRC
* $Id$
* $Id: clnt.h,v 1.7 1997/02/23 09:17:22 peter Exp $
*/
/*
@ -40,6 +40,9 @@
#ifndef _RPC_CLNT_H_
#define _RPC_CLNT_H_
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
/*
* Rpc calls return an enum clnt_stat. This should be looked at more,

View File

@ -28,7 +28,7 @@
*
* from: @(#)pmap_clnt.h 1.11 88/02/08 SMI
* from: @(#)pmap_clnt.h 2.1 88/07/29 4.0 RPCSRC
* $Id$
* $Id: pmap_clnt.h,v 1.7 1997/02/23 09:17:22 peter Exp $
*/
/*
@ -63,6 +63,9 @@
#ifndef _RPC_PMAPCLNT_H
#define _RPC_PMAPCLNT_H
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <netinet/in.h>
__BEGIN_DECLS
extern bool_t pmap_set __P((u_long, u_long, int, int));

View File

@ -28,7 +28,7 @@
*
* from: @(#)pmap_prot.h 1.14 88/02/08 SMI
* from: @(#)pmap_prot.h 2.1 88/07/29 4.0 RPCSRC
* $Id$
* $Id: pmap_prot.h,v 1.6 1997/02/23 09:17:23 peter Exp $
*/
/*
@ -71,6 +71,8 @@
#ifndef _RPC_PMAPPROT_H
#define _RPC_PMAPPROT_H
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#define PMAPPORT ((u_short)111)
#define PMAPPROG ((u_long)100000)

View File

@ -28,7 +28,7 @@
*
* from: @(#)pmap_rmt.h 1.2 88/02/08 SMI
* from: @(#)pmap_rmt.h 2.1 88/07/29 4.0 RPCSRC
* $Id$
* $Id: pmap_rmt.h,v 1.6 1997/02/23 09:17:23 peter Exp $
*/
/*
@ -41,6 +41,8 @@
#ifndef _RPC_PMAPRMT_H
#define _RPC_PMAPRMT_H
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
struct rmtcallargs {
u_long prog, vers, proc, arglen;

View File

@ -28,7 +28,7 @@
*
* from: @(#)rpc_msg.h 1.7 86/07/16 SMI
* from: @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC
* $Id$
* $Id: rpc_msg.h,v 1.8 1997/02/23 09:17:24 peter Exp $
*/
/*
@ -40,6 +40,9 @@
#ifndef _RPC_RPCMSG_H
#define _RPC_RPCMSG_H
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#define RPC_MSG_VERSION ((u_long) 2)
#define RPC_SERVICE_PORT ((u_short) 2048)

View File

@ -28,7 +28,7 @@
*
* from: @(#)svc.h 1.20 88/02/08 SMI
* from: @(#)svc.h 2.2 88/07/29 4.0 RPCSRC
* $Id$
* $Id: svc.h,v 1.9 1997/02/23 09:17:24 peter Exp $
*/
/*
@ -40,6 +40,11 @@
#ifndef _RPC_SVC_H
#define _RPC_SVC_H
#include <sys/cdefs.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/rpc_msg.h>
#include <netinet/in.h>
/*
* This interface must manage two items concerning remote procedure calling:

View File

@ -28,7 +28,7 @@
*
* from: @(#)svc_auth.h 1.6 86/07/16 SMI
* from: @(#)svc_auth.h 2.1 88/07/29 4.0 RPCSRC
* $Id$
* $Id: svc_auth.h,v 1.6 1997/02/23 09:17:25 peter Exp $
*/
/*
@ -39,6 +39,10 @@
#ifndef _RPC_SVCAUTH_H
#define _RPC_SVCAUTH_H
#include <sys/cdefs.h>
#include <rpc/auth.h>
#include <rpc/svc.h>
#include <rpc/rpc_msg.h>
/*
* Server side authenticator

View File

@ -28,7 +28,7 @@
*
* from: @(#)xdr.h 1.19 87/04/22 SMI
* from: @(#)xdr.h 2.2 88/07/29 4.0 RPCSRC
* $Id$
* $Id: xdr.h,v 1.7 1997/02/23 09:17:25 peter Exp $
*/
/*
@ -40,6 +40,7 @@
#ifndef _RPC_XDR_H
#define _RPC_XDR_H
#include <sys/cdefs.h>
#include <rpc/types.h>
/*
* XDR provides a conventional way for converting between C data

View File

@ -26,12 +26,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: yp_prot.h,v 1.6 1997/02/23 09:17:33 peter Exp $
*/
#ifndef _RPCSVC_YP_PROT_H_
#define _RPCSVC_YP_PROT_H_
#include <rpc/rpc.h>
/*
* YPSERV PROTOCOL:
*

View File

@ -26,12 +26,15 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ypclnt.h,v 1.6 1997/02/23 09:17:34 peter Exp $
*/
#ifndef _RPCSVC_YPCLNT_H_
#define _RPCSVC_YPCLNT_H_
#include <rpc/rpc.h>
#include <rpcsvc/yp_prot.h>
#define YPERR_BADARGS 1 /* args to function are bad */
#define YPERR_RPC 2 /* RPC failure */
#define YPERR_DOMAIN 3 /* can't bind to a server for domain */

View File

@ -36,6 +36,8 @@
#ifndef _UTIME_H_
#define _UTIME_H_
#include <sys/types.h>
struct utimbuf {
time_t actime; /* Access time */
time_t modtime; /* Modification time */

View File

@ -36,12 +36,14 @@
* SUCH DAMAGE.
*
* @(#)utmp.h 8.2 (Berkeley) 1/21/94
* $Id$
* $Id: utmp.h,v 1.5 1997/02/23 09:17:16 peter Exp $
*/
#ifndef _UTMP_H_
#define _UTMP_H_
#include <sys/types.h>
#define _PATH_UTMP "/var/run/utmp"
#define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog"

View File

@ -36,6 +36,9 @@
#ifndef _FTS_H_
#define _FTS_H_
#include <sys/types.h>
#include <nlist.h>
typedef struct {
struct _ftsent *fts_cur; /* current node */
struct _ftsent *fts_child; /* linked list of children */

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: link.h,v 1.11 1997/02/23 09:17:13 peter Exp $
*/
/*
@ -41,6 +41,9 @@
#ifndef _LINK_H_
#define _LINK_H_
#include <sys/types.h>
#include <nlist.h>
/*
* A `Shared Object Descriptor' describes a shared object that is needed
* to complete the link edit process of the object containing it.

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: link.h,v 1.11 1997/02/23 09:17:13 peter Exp $
*/
/*
@ -41,6 +41,9 @@
#ifndef _LINK_H_
#define _LINK_H_
#include <sys/types.h>
#include <nlist.h>
/*
* A `Shared Object Descriptor' describes a shared object that is needed
* to complete the link edit process of the object containing it.