Indent structure definitions by +4n.

This commit is contained in:
Michael Kerrisk 2007-12-23 14:14:04 +00:00
parent 3ad4ddcd0b
commit 3f89ebc011
6 changed files with 19 additions and 15 deletions

View File

@ -22,14 +22,14 @@ is NULL,
returns the number of symbols available for query.
Otherwise it fills in a table of structures:
.PP
.RS
.in +4n
.nf
struct kernel_sym {
unsigned long value;
char name[60];
};
.fi
.RE
.in
.PP
The symbols are interspersed with magic symbols of the form
.BI # module-name

View File

@ -61,7 +61,7 @@ The
.I dirent
structure is declared as follows:
.PP
.RS
.in +4n
.nf
struct dirent {
long d_ino; /* inode number */
@ -69,7 +69,7 @@ struct dirent {
unsigned short d_reclen; /* length of this \fIdirent\fP */
char d_name [NAME_MAX+1]; /* filename (null-terminated) */
}
.fi
.in
.RE
.PP
.I d_ino

View File

@ -44,19 +44,20 @@ is delivered upon expiration.
.LP
Timer values are defined by the following structures:
.PD 0
.RS .5i
.in +4n
.nf
struct itimerval {
struct timeval it_interval; /* next value */
struct timeval it_value; /* current value */
};
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
.fi
.RE
.in
.PD
.LP
The function

View File

@ -70,15 +70,16 @@ Returns the symbols and values exported by the kernel or the indicated
module.
The returned buffer is an array of structures of the following form
.\" ret is set on ENOSPC
.RS
.PP
.in +4n
.nf
struct module_symbol {
unsigned long value;
unsigned long name;
};
.fi
.PP
.in
.IP
followed by null-terminated strings.
The value of
.I name
@ -86,21 +87,21 @@ is the character offset of the string relative to the start of
.IR buf ;
.I ret
is set to the number of symbols.
.RE
.TP
.B QM_INFO
Returns miscellaneous information about the indicated module.
The output buffer format is:
.RS
.PP
.in +4n
.nf
struct module_info {
unsigned long address;
unsigned long size;
unsigned long flags;
};
.fi
.PP
.in
.IP
where
.I address
is the kernel address at which the module resides,

View File

@ -74,7 +74,7 @@ after all processing has been performed.
.PP
The \fIgroup\fP structure is defined in \fI<grp.h>\fP as follows:
.sp
.RS +0.5i
.in +4n
.nf
struct group {
char *gr_name; /* group name */
@ -83,7 +83,7 @@ struct group {
char **gr_mem; /* group members */
};
.fi
.RE
.in
.SH "RETURN VALUE"
The
.BR getgrent ()

View File

@ -96,6 +96,7 @@ Set window size.
.LP
The struct used by these ioctls is defined as
.in +4n
.nf
struct winsize {
unsigned short ws_row;
@ -104,6 +105,7 @@ struct winsize {
unsigned short ws_ypixel; /* unused */
};
.fi
.in
When the window size changes, a
.B SIGWINCH