Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/tirpc/netconfig.h
$ cat -n /usr/include/tirpc/netconfig.h 1 #ifndef _NETCONFIG_H_ 2 #define _NETCONFIG_H_ 3 4 #ifdef HAVE_FEATURES_H 5 #include
6 #endif 7 8 #define NETCONFIG "/etc/netconfig" 9 #define NETPATH "NETPATH" 10 11 struct netconfig { 12 char *nc_netid; /* Network ID */ 13 unsigned long nc_semantics; /* Semantics (see below) */ 14 unsigned long nc_flag; /* Flags (see below) */ 15 char *nc_protofmly; /* Protocol family */ 16 char *nc_proto; /* Protocol name */ 17 char *nc_device; /* Network device pathname */ 18 unsigned long nc_nlookups; /* Number of directory lookup libs */ 19 char **nc_lookups; /* Names of the libraries */ 20 unsigned long nc_unused[9]; /* reserved */ 21 }; 22 23 typedef struct { 24 struct netconfig **nc_head; 25 struct netconfig **nc_curr; 26 } NCONF_HANDLE; 27 28 /* 29 * nc_semantics values 30 */ 31 #define NC_TPI_CLTS 1 32 #define NC_TPI_COTS 2 33 #define NC_TPI_COTS_ORD 3 34 #define NC_TPI_RAW 4 35 36 /* 37 * nc_flag values 38 */ 39 #define NC_NOFLAG 0x00 40 #define NC_VISIBLE 0x01 41 #define NC_BROADCAST 0x02 42 43 /* 44 * nc_protofmly values 45 */ 46 #define NC_NOPROTOFMLY "-" 47 #define NC_LOOPBACK "loopback" 48 #define NC_INET "inet" 49 #define NC_INET6 "inet6" 50 #define NC_IMPLINK "implink" 51 #define NC_PUP "pup" 52 #define NC_CHAOS "chaos" 53 #define NC_NS "ns" 54 #define NC_NBS "nbs" 55 #define NC_ECMA "ecma" 56 #define NC_DATAKIT "datakit" 57 #define NC_CCITT "ccitt" 58 #define NC_SNA "sna" 59 #define NC_DECNET "decnet" 60 #define NC_DLI "dli" 61 #define NC_LAT "lat" 62 #define NC_HYLINK "hylink" 63 #define NC_APPLETALK "appletalk" 64 #define NC_NIT "nit" 65 #define NC_IEEE802 "ieee802" 66 #define NC_OSI "osi" 67 #define NC_X25 "x25" 68 #define NC_OSINET "osinet" 69 #define NC_GOSIP "gosip" 70 71 /* 72 * nc_proto values 73 */ 74 #define NC_NOPROTO "-" 75 #define NC_TCP "tcp" 76 #define NC_UDP "udp" 77 #define NC_ICMP "icmp" 78 79 #ifdef __cplusplus 80 extern "C" { 81 #endif 82 83 extern void *setnetconfig (void); 84 extern struct netconfig *getnetconfig (void *); 85 extern struct netconfig *getnetconfigent (const char *); 86 extern void freenetconfigent (struct netconfig *); 87 extern int endnetconfig (void *); 88 89 extern void *setnetpath (void); 90 extern struct netconfig *getnetpath (void *); 91 extern int endnetpath (void *); 92 93 extern void nc_perror (const char *); 94 extern char *nc_sperror (void); 95 96 #ifdef __cplusplus 97 } 98 #endif 99 100 #endif /* _NETCONFIG_H_ */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™