style(9) the structure definitions.

This commit is contained in:
David E. O'Brien 2001-09-05 01:36:46 +00:00
parent faf73940c6
commit 1792335469
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83047
18 changed files with 31 additions and 29 deletions

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)tftp.h 8.1 (Berkeley) 6/2/93 * @(#)tftp.h 8.1 (Berkeley) 6/2/93
* $FreeBSD$
*/ */
#ifndef _ARPA_TFTP_H_ #ifndef _ARPA_TFTP_H_
@ -50,7 +51,7 @@
#define ACK 04 /* acknowledgement */ #define ACK 04 /* acknowledgement */
#define ERROR 05 /* error code */ #define ERROR 05 /* error code */
struct tftphdr { struct tftphdr {
unsigned short th_opcode; /* packet type */ unsigned short th_opcode; /* packet type */
union { union {
unsigned short tu_block; /* block # */ unsigned short tu_block; /* block # */

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)disktab.h 8.1 (Berkeley) 6/2/93 * @(#)disktab.h 8.1 (Berkeley) 6/2/93
* $FreeBSD$
*/ */
#ifndef _DISKTAB_H_ #ifndef _DISKTAB_H_
@ -41,7 +42,7 @@
*/ */
#define DISKTAB "/etc/disktab" #define DISKTAB "/etc/disktab"
struct disktab { struct disktab {
char *d_name; /* drive name */ char *d_name; /* drive name */
char *d_type; /* drive type */ char *d_type; /* drive type */
int d_secsize; /* sector size in bytes */ int d_secsize; /* sector size in bytes */

View File

@ -218,7 +218,7 @@ struct ld_entry {
* `nz_list' type of symbols. * `nz_list' type of symbols.
*/ */
struct _dynamic { struct _dynamic {
int d_version; /* version # of this interface */ int d_version; /* version # of this interface */
struct so_debug *d_debug; struct so_debug *d_debug;
union { union {

View File

@ -84,7 +84,7 @@ extern int h_errno;
* supplied in host order, and returned in network order (suitable for * supplied in host order, and returned in network order (suitable for
* use in system calls). * use in system calls).
*/ */
struct hostent { struct hostent {
char *h_name; /* official name of host */ char *h_name; /* official name of host */
char **h_aliases; /* alias list */ char **h_aliases; /* alias list */
int h_addrtype; /* host address type */ int h_addrtype; /* host address type */
@ -97,21 +97,21 @@ struct hostent {
* Assumption here is that a network number * Assumption here is that a network number
* fits in an unsigned long -- probably a poor one. * fits in an unsigned long -- probably a poor one.
*/ */
struct netent { struct netent {
char *n_name; /* official name of net */ char *n_name; /* official name of net */
char **n_aliases; /* alias list */ char **n_aliases; /* alias list */
int n_addrtype; /* net address type */ int n_addrtype; /* net address type */
unsigned long n_net; /* network # */ unsigned long n_net; /* network # */
}; };
struct servent { struct servent {
char *s_name; /* official service name */ char *s_name; /* official service name */
char **s_aliases; /* alias list */ char **s_aliases; /* alias list */
int s_port; /* port # */ int s_port; /* port # */
char *s_proto; /* protocol to use */ char *s_proto; /* protocol to use */
}; };
struct protoent { struct protoent {
char *p_name; /* official protocol name */ char *p_name; /* official protocol name */
char **p_aliases; /* alias list */ char **p_aliases; /* alias list */
int p_proto; /* protocol # */ int p_proto; /* protocol # */

View File

@ -31,7 +31,7 @@
#ifndef _MACHINE_SIGFRAME_H_ #ifndef _MACHINE_SIGFRAME_H_
#define _MACHINE_SIGFRAME_H_ 1 #define _MACHINE_SIGFRAME_H_ 1
struct osigframe { struct osigframe {
struct osigcontext sf_sc; struct osigcontext sf_sc;
osiginfo_t sf_si; osiginfo_t sf_si;
}; };

View File

@ -75,7 +75,7 @@ struct osigcontext {
* The sequence of the fields should match those in * The sequence of the fields should match those in
* mcontext_t. Keep them in sync! * mcontext_t. Keep them in sync!
*/ */
struct sigcontext { struct sigcontext {
sigset_t sc_mask; /* signal mask to restore */ sigset_t sc_mask; /* signal mask to restore */
long sc_onstack; /* sigstack state to restore */ long sc_onstack; /* sigstack state to restore */
unsigned long sc_regs[32]; /* integer register set (see above) */ unsigned long sc_regs[32]; /* integer register set (see above) */

View File

@ -46,7 +46,7 @@
#define _MACHINE_NPX_H_ #define _MACHINE_NPX_H_
/* Environment information of floating point unit */ /* Environment information of floating point unit */
struct env87 { struct env87 {
long en_cw; /* control word (16bits) */ long en_cw; /* control word (16bits) */
long en_sw; /* status word (16bits) */ long en_sw; /* status word (16bits) */
long en_tw; /* tag word (16bits) */ long en_tw; /* tag word (16bits) */
@ -58,7 +58,7 @@ struct env87 {
}; };
/* Contents of each floating point accumulator */ /* Contents of each floating point accumulator */
struct fpacc87 { struct fpacc87 {
#ifdef dontdef /* too unportable */ #ifdef dontdef /* too unportable */
u_long fp_mantlo; /* mantissa low (31:0) */ u_long fp_mantlo; /* mantissa low (31:0) */
u_long fp_manthi; /* mantissa high (63:32) */ u_long fp_manthi; /* mantissa high (63:32) */
@ -70,7 +70,7 @@ struct fpacc87 {
}; };
/* Floating point context */ /* Floating point context */
struct save87 { struct save87 {
struct env87 sv_env; /* floating point control/status */ struct env87 sv_env; /* floating point control/status */
struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */ struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */
u_long sv_ex_sw; /* status word for last exception */ u_long sv_ex_sw; /* status word for last exception */

View File

@ -46,7 +46,7 @@
#define _MACHINE_NPX_H_ #define _MACHINE_NPX_H_
/* Environment information of floating point unit */ /* Environment information of floating point unit */
struct env87 { struct env87 {
long en_cw; /* control word (16bits) */ long en_cw; /* control word (16bits) */
long en_sw; /* status word (16bits) */ long en_sw; /* status word (16bits) */
long en_tw; /* tag word (16bits) */ long en_tw; /* tag word (16bits) */
@ -58,7 +58,7 @@ struct env87 {
}; };
/* Contents of each floating point accumulator */ /* Contents of each floating point accumulator */
struct fpacc87 { struct fpacc87 {
#ifdef dontdef /* too unportable */ #ifdef dontdef /* too unportable */
u_long fp_mantlo; /* mantissa low (31:0) */ u_long fp_mantlo; /* mantissa low (31:0) */
u_long fp_manthi; /* mantissa high (63:32) */ u_long fp_manthi; /* mantissa high (63:32) */
@ -70,7 +70,7 @@ struct fpacc87 {
}; };
/* Floating point context */ /* Floating point context */
struct save87 { struct save87 {
struct env87 sv_env; /* floating point control/status */ struct env87 sv_env; /* floating point control/status */
struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */ struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */
u_long sv_ex_sw; /* status word for last exception */ u_long sv_ex_sw; /* status word for last exception */

View File

@ -35,7 +35,7 @@
* Signal frames, arguments passed to application signal handlers. * Signal frames, arguments passed to application signal handlers.
*/ */
struct osigframe { struct osigframe {
/* /*
* The first four members may be used by applications. * The first four members may be used by applications.
*/ */

View File

@ -62,7 +62,7 @@ typedef int sig_atomic_t;
*/ */
typedef unsigned int osigset_t; typedef unsigned int osigset_t;
struct osigcontext { struct osigcontext {
int sc_onstack; /* sigstack state to restore */ int sc_onstack; /* sigstack state to restore */
osigset_t sc_mask; /* signal mask to restore */ osigset_t sc_mask; /* signal mask to restore */
int sc_esp; /* machine state follows: */ int sc_esp; /* machine state follows: */
@ -90,7 +90,7 @@ struct osigcontext {
* The sequence of the fields/registers in struct sigcontext should match * The sequence of the fields/registers in struct sigcontext should match
* those in mcontext_t. * those in mcontext_t.
*/ */
struct sigcontext { struct sigcontext {
sigset_t sc_mask; /* signal mask to restore */ sigset_t sc_mask; /* signal mask to restore */
int sc_onstack; /* sigstack state to restore */ int sc_onstack; /* sigstack state to restore */
int sc_gs; /* machine state (struct trapframe): */ int sc_gs; /* machine state (struct trapframe): */

View File

@ -46,7 +46,7 @@
#define _MACHINE_NPX_H_ #define _MACHINE_NPX_H_
/* Environment information of floating point unit */ /* Environment information of floating point unit */
struct env87 { struct env87 {
long en_cw; /* control word (16bits) */ long en_cw; /* control word (16bits) */
long en_sw; /* status word (16bits) */ long en_sw; /* status word (16bits) */
long en_tw; /* tag word (16bits) */ long en_tw; /* tag word (16bits) */
@ -58,7 +58,7 @@ struct env87 {
}; };
/* Contents of each floating point accumulator */ /* Contents of each floating point accumulator */
struct fpacc87 { struct fpacc87 {
#ifdef dontdef /* too unportable */ #ifdef dontdef /* too unportable */
u_long fp_mantlo; /* mantissa low (31:0) */ u_long fp_mantlo; /* mantissa low (31:0) */
u_long fp_manthi; /* mantissa high (63:32) */ u_long fp_manthi; /* mantissa high (63:32) */
@ -70,7 +70,7 @@ struct fpacc87 {
}; };
/* Floating point context */ /* Floating point context */
struct save87 { struct save87 {
struct env87 sv_env; /* floating point control/status */ struct env87 sv_env; /* floating point control/status */
struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */ struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */
u_long sv_ex_sw; /* status word for last exception */ u_long sv_ex_sw; /* status word for last exception */

View File

@ -35,7 +35,7 @@
* Signal frames, arguments passed to application signal handlers. * Signal frames, arguments passed to application signal handlers.
*/ */
struct osigframe { struct osigframe {
/* /*
* The first four members may be used by applications. * The first four members may be used by applications.
*/ */

View File

@ -62,7 +62,7 @@ typedef int sig_atomic_t;
*/ */
typedef unsigned int osigset_t; typedef unsigned int osigset_t;
struct osigcontext { struct osigcontext {
int sc_onstack; /* sigstack state to restore */ int sc_onstack; /* sigstack state to restore */
osigset_t sc_mask; /* signal mask to restore */ osigset_t sc_mask; /* signal mask to restore */
int sc_esp; /* machine state follows: */ int sc_esp; /* machine state follows: */
@ -90,7 +90,7 @@ struct osigcontext {
* The sequence of the fields/registers in struct sigcontext should match * The sequence of the fields/registers in struct sigcontext should match
* those in mcontext_t. * those in mcontext_t.
*/ */
struct sigcontext { struct sigcontext {
sigset_t sc_mask; /* signal mask to restore */ sigset_t sc_mask; /* signal mask to restore */
int sc_onstack; /* sigstack state to restore */ int sc_onstack; /* sigstack state to restore */
int sc_gs; /* machine state (struct trapframe): */ int sc_gs; /* machine state (struct trapframe): */

View File

@ -31,7 +31,7 @@
#ifndef _MACHINE_SIGFRAME_H_ #ifndef _MACHINE_SIGFRAME_H_
#define _MACHINE_SIGFRAME_H_ 1 #define _MACHINE_SIGFRAME_H_ 1
struct osigframe { struct osigframe {
}; };
struct sigframe { struct sigframe {

View File

@ -68,7 +68,7 @@ struct osigcontext {};
* The sequence of the fields should match those in * The sequence of the fields should match those in
* mcontext_t. Keep them in sync! * mcontext_t. Keep them in sync!
*/ */
struct sigcontext { struct sigcontext {
sigset_t sc_mask; /* signal mask to restore */ sigset_t sc_mask; /* signal mask to restore */
unsigned long sc_onstack; unsigned long sc_onstack;
unsigned long sc_flags; unsigned long sc_flags;

View File

@ -31,7 +31,7 @@
#ifndef _MACHINE_SIGFRAME_H_ #ifndef _MACHINE_SIGFRAME_H_
#define _MACHINE_SIGFRAME_H_ 1 #define _MACHINE_SIGFRAME_H_ 1
struct osigframe { struct osigframe {
struct osigcontext sf_sc; struct osigcontext sf_sc;
osiginfo_t sf_si; osiginfo_t sf_si;
}; };

View File

@ -218,7 +218,7 @@ struct ld_entry {
* `nz_list' type of symbols. * `nz_list' type of symbols.
*/ */
struct _dynamic { struct _dynamic {
int d_version; /* version # of this interface */ int d_version; /* version # of this interface */
struct so_debug *d_debug; struct so_debug *d_debug;
union { union {

View File

@ -218,7 +218,7 @@ struct ld_entry {
* `nz_list' type of symbols. * `nz_list' type of symbols.
*/ */
struct _dynamic { struct _dynamic {
int d_version; /* version # of this interface */ int d_version; /* version # of this interface */
struct so_debug *d_debug; struct so_debug *d_debug;
union { union {