aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-12-19 06:16:04 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-12-19 06:16:04 +0000
commitbd191423093e5434f6100cd86d21cebea9a0d6b4 (patch)
tree3b2c427492d714d8ac969e295fed3825b7b1a972
parent28f6564486b816a1d31c10fcd1899bf97c366725 (diff)
downloadman-pages-bd191423093e5434f6100cd86d21cebea9a0d6b4.tar.gz
enclose code smaples/structure defns/etc in ".in +4n / .in"
-rw-r--r--man2/adjtimex.212
-rw-r--r--man2/sigaction.210
-rw-r--r--man2/sigaltstack.28
-rw-r--r--man2/stat.210
-rw-r--r--man2/statfs.24
-rw-r--r--man2/utime.28
-rw-r--r--man3/cmsg.38
-rw-r--r--man3/ctime.34
-rw-r--r--man3/encrypt.34
-rw-r--r--man3/fgetgrent.34
-rw-r--r--man3/getgrent_r.34
-rw-r--r--man3/getgrnam.34
-rw-r--r--man3/getpw.34
-rw-r--r--man3/getpwent.34
-rw-r--r--man3/getpwent_r.34
-rw-r--r--man3/getpwnam.34
-rw-r--r--man3/getrpcent.34
-rw-r--r--man3/getservent.34
-rw-r--r--man3/getspnam.34
-rw-r--r--man3/hsearch.34
-rw-r--r--man3/inet.34
-rw-r--r--man3/insque.34
-rw-r--r--man3/mq_receive.34
-rw-r--r--man3/mq_send.34
-rw-r--r--man3/printf.330
-rw-r--r--man3/readdir.34
-rw-r--r--man3/regex.34
-rw-r--r--man4/sd.44
-rw-r--r--man7/arp.74
-rw-r--r--man7/ddp.74
-rw-r--r--man7/ipv6.74
-rw-r--r--man7/netdevice.74
-rw-r--r--man7/x25.74
33 files changed, 94 insertions, 96 deletions
diff --git a/man2/adjtimex.2 b/man2/adjtimex.2
index 02a1d19bbc..7915d24a7e 100644
--- a/man2/adjtimex.2
+++ b/man2/adjtimex.2
@@ -44,7 +44,7 @@ structure, updates kernel parameters from field values,
and returns the same structure with current kernel values.
This structure is declared as follows:
.PP
-.RS 4
+.in +4n
.nf
struct timex {
int modes; /* mode selector */
@@ -61,7 +61,7 @@ struct timex {
long tick; /* usecs between clock ticks */
};
.fi
-.RE
+.in
.PP
The
.I modes
@@ -70,7 +70,7 @@ It may contain a
.RI bitwise- or
combination of zero or more of the following bits:
.PP
-.RS 4
+.in +4n
.nf
#define ADJ_OFFSET 0x0001 /* time offset */
#define ADJ_FREQUENCY 0x0002 /* frequency offset */
@@ -81,7 +81,7 @@ combination of zero or more of the following bits:
#define ADJ_TICK 0x4000 /* tick value */
#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime() */
.fi
-.RE
+.in
.PP
Ordinary users are restricted to a zero value for
.IR mode .
@@ -93,7 +93,7 @@ On success,
.BR adjtimex ()
returns the clock state:
.PP
-.RS 4
+.in +4n
.nf
#define TIME_OK 0 /* clock synchronized */
#define TIME_INS 1 /* insert leap second */
@@ -102,7 +102,7 @@ returns the clock state:
#define TIME_WAIT 4 /* leap second has occurred */
#define TIME_BAD 5 /* clock not synchronized */
.fi
-.RE
+.in
.PP
On failure,
.BR adjtimex ()
diff --git a/man2/sigaction.2 b/man2/sigaction.2
index cc09395073..41dfaba5f0 100644
--- a/man2/sigaction.2
+++ b/man2/sigaction.2
@@ -77,7 +77,7 @@ The
.I sigaction
structure is defined as something like
.sp
-.RS 4
+.in +4n
.nf
struct sigaction {
void (*sa_handler)(int);
@@ -87,7 +87,7 @@ struct sigaction {
void (*sa_restorer)(void);
}
.fi
-.RE
+.in
.PP
On some architectures a union is involved: do not assign to both
.I sa_handler
@@ -140,7 +140,7 @@ flag is used.
specifies a set of flags which modify the behavior of the signal handling
process.
It is formed by the bitwise OR of zero or more of the following:
-.RS
+.RS 4
.TP
.B SA_NOCLDSTOP
If
@@ -206,7 +206,7 @@ parameter to
.I sa_sigaction
is a struct with the following elements
.sp
-.RS 4
+.in +4n
.nf
siginfo_t {
.\" FIXME si_tid and si_overrun are not documented.
@@ -227,7 +227,7 @@ siginfo_t {
int si_fd; /* File descriptor */
}
.fi
-.RE
+.in
.IR si_signo ", " si_errno " and " si_code
are defined for all signals.
diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2
index 92672fa828..895b9430bd 100644
--- a/man2/sigaltstack.2
+++ b/man2/sigaltstack.2
@@ -75,7 +75,7 @@ If we are interested in performing just one
of these tasks then the other argument can be specified as NULL.
Each of these arguments is a structure of the following type:
.sp
-.RS 4
+.in +4n
.nf
typedef struct {
void *ss_sp; /* Base address of stack */
@@ -83,7 +83,7 @@ typedef struct {
size_t ss_size; /* Number of bytes in stack */
} stack_t;
.fi
-.RE
+.in
To establish a new alternate signal stack,
\fIss.ss_flags\fP is set to zero, and \fIss.ss_sp\fP and
@@ -202,7 +202,7 @@ had to know the direction of stack growth.
The following code segment demonstrates the use of
.BR sigaltstack ():
-.RS
+.in +4n
.nf
stack_t ss;
@@ -214,7 +214,7 @@ ss.ss_flags = 0;
if (sigaltstack(&ss, NULL) == \-1)
/* Handle error */;
.fi
-.RE
+.in
.SH "SEE ALSO"
.BR execve (2),
.BR setrlimit (2),
diff --git a/man2/stat.2 b/man2/stat.2
index 63ee87c7e1..42b713617a 100644
--- a/man2/stat.2
+++ b/man2/stat.2
@@ -96,7 +96,7 @@ All of these system calls return a
.I stat
structure, which contains the following fields:
.PP
-.RS 4
+.in +4n
.nf
struct stat {
dev_t st_dev; /* ID of device containing file */
@@ -114,7 +114,7 @@ struct stat {
time_t st_ctime; /* time of last status change */
};
.fi
-.RE
+.in
.PP
The
.I st_dev
@@ -194,7 +194,7 @@ is changed by writing or by setting inode information
The following POSIX macros are defined to check the file type using the
.I st_mode
field:
-.RS
+.RS 4
.TP 1.2i
.BR S_ISREG (m)
is it a regular file?
@@ -221,7 +221,7 @@ socket? (Not in POSIX.1-1996.)
The following flags are defined for the
.I st_mode
field:
-.RS 4
+.in +4n
.TS
lB l l.
S_IFMT 0170000 bit mask for the file type bit fields
@@ -248,7 +248,7 @@ S_IROTH 00004 others have read permission
S_IWOTH 00002 others have write permission
S_IXOTH 00001 others have execute permission
.TE
-.RE
+.in
.P
The set-group-ID bit
.RB ( S_ISGID )
diff --git a/man2/statfs.2 b/man2/statfs.2
index 591d634cd4..0b795d6b19 100644
--- a/man2/statfs.2
+++ b/man2/statfs.2
@@ -43,7 +43,7 @@ is a pointer to a
.I statfs
structure defined approximately as follows:
-.RS 4
+.in +4n
.nf
struct statfs {
long f_type; /* type of filesystem (see below) */
@@ -104,7 +104,7 @@ File system types:
XFS_SUPER_MAGIC 0x58465342
_XIAFS_SUPER_MAGIC 0x012FD16D
.fi
-.RE
+.in
.PP
Nobody knows what
.I f_fsid
diff --git a/man2/utime.2 b/man2/utime.2
index 2963e6245d..413a6a24c8 100644
--- a/man2/utime.2
+++ b/man2/utime.2
@@ -70,14 +70,14 @@ The
.I utimbuf
structure is:
-.RS 4
+.in +4n
.nf
struct utimbuf {
time_t actime; /* access time */
time_t modtime; /* modification time */
};
.fi
-.RE
+.in
The function
.BR utime ()
@@ -92,14 +92,14 @@ The
.I timeval
structure is:
-.RS 4
+.in +4n
.nf
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
.fi
-.RE
+.in
.PP
.IR times [0]
specifies the new access time, and
diff --git a/man3/cmsg.3 b/man3/cmsg.3
index ccf8c54856..9c18887687 100644
--- a/man3/cmsg.3
+++ b/man3/cmsg.3
@@ -160,7 +160,7 @@ This code looks for the
.B IP_TTL
option in a received ancillary buffer:
.PP
-.RS 4
+.in +4n
.nf
struct msghdr msgh;
struct cmsghdr *cmsg;
@@ -185,12 +185,12 @@ if (cmsg == NULL) {
*/
}
.fi
-.RE
+.in
.PP
The code below passes an array of file descriptors over a Unix socket using
.BR SCM_RIGHTS :
.PP
-.RS 4
+.in +4n
.nf
struct msghdr msg = {0};
struct cmsghdr *cmsg;
@@ -210,7 +210,7 @@ memcpy(fdptr, myfds, NUM_FD * sizeof(int));
/* Sum of the length of all control messages in the buffer: */
msg.msg_controllen = cmsg\->cmsg_len;
.fi
-.RE
+.in
.SH "SEE ALSO"
.BR recvmsg (2),
.BR sendmsg (2)
diff --git a/man3/ctime.3 b/man3/ctime.3
index 58edf4680c..19d8c768c9 100644
--- a/man3/ctime.3
+++ b/man3/ctime.3
@@ -91,7 +91,7 @@ separated into year, month, day, etc.
Broken-down time is stored
in the structure \fItm\fP which is defined in \fI<time.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct tm {
int tm_sec; /* seconds */
@@ -105,7 +105,7 @@ struct tm {
int tm_isdst; /* daylight saving time */
};
.fi
-.RE
+.in
.PP
The members of the \fItm\fP structure are:
.TP
diff --git a/man3/encrypt.3 b/man3/encrypt.3
index e6e0602e51..26f7a0762f 100644
--- a/man3/encrypt.3
+++ b/man3/encrypt.3
@@ -79,7 +79,7 @@ and
are the reentrant versions.
They use the following
structure to hold the key data:
-.RS 4
+.in +4n
.nf
struct crypt_data {
@@ -95,7 +95,7 @@ struct crypt_data {
int initialized;
};
.fi
-.RE
+.in
.PP
Before calling
.BR setkey_r ()
diff --git a/man3/fgetgrent.3 b/man3/fgetgrent.3
index 622d57cb23..77e1de6e2b 100644
--- a/man3/fgetgrent.3
+++ b/man3/fgetgrent.3
@@ -55,7 +55,7 @@ The file \fIstream\fP must have the same format as \fI/etc/group\fP.
.PP
The \fIgroup\fP structure is defined in \fI<grp.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct group {
char *gr_name; /* group name */
@@ -64,7 +64,7 @@ struct group {
char **gr_mem; /* group members */
};
.fi
-.RE
+.in
.SH "RETURN VALUE"
The
.BR fgetgrent ()
diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3
index 99efd40b9e..3de34e3291 100644
--- a/man3/getgrent_r.3
+++ b/man3/getgrent_r.3
@@ -66,7 +66,7 @@ The \fIgroup\fP structure is defined in
.I <grp.h>
as follows:
.sp
-.RS 4
+.in +4n
.nf
struct group {
char *gr_name; /* group name */
@@ -76,7 +76,7 @@ struct group {
};
.ta
.fi
-.RE
+.in
.sp
The non-reentrant functions return a pointer to static storage,
where this static storage contains further pointers to group
diff --git a/man3/getgrnam.3 b/man3/getgrnam.3
index 0911264a89..6429b63789 100644
--- a/man3/getgrnam.3
+++ b/man3/getgrnam.3
@@ -88,7 +88,7 @@ was found or an error occurred) is stored in
.PP
The \fIgroup\fP structure is defined in \fI<grp.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct group {
char *gr_name; /* group name */
@@ -97,7 +97,7 @@ struct group {
char **gr_mem; /* group members */
};
.fi
-.RE
+.in
.PP
The maximum needed size for
.I buf
diff --git a/man3/getpw.3 b/man3/getpw.3
index 22ab31428e..aedcdd465b 100644
--- a/man3/getpw.3
+++ b/man3/getpw.3
@@ -51,7 +51,7 @@ The returned buffer contains a line of format
.PP
The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct passwd {
char *pw_name; /* user name */
@@ -63,7 +63,7 @@ struct passwd {
char *pw_shell; /* shell program */
};
.fi
-.RE
+.in
.SH "RETURN VALUE"
The
.BR getpw ()
diff --git a/man3/getpwent.3 b/man3/getpwent.3
index dcacdc8d4b..cdfdcc0a11 100644
--- a/man3/getpwent.3
+++ b/man3/getpwent.3
@@ -78,7 +78,7 @@ after all processing has been performed.
.PP
The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct passwd {
char *pw_name; /* user name */
@@ -90,7 +90,7 @@ struct passwd {
char *pw_shell; /* shell program */
};
.fi
-.RE
+.in
.SH "RETURN VALUE"
The
.BR getpwent ()
diff --git a/man3/getpwent_r.3 b/man3/getpwent_r.3
index 90c156a743..862b7c5180 100644
--- a/man3/getpwent_r.3
+++ b/man3/getpwent_r.3
@@ -65,7 +65,7 @@ The \fIpasswd\fP structure is defined in
.I <pwd.h>
as follows:
.sp
-.RS 4
+.in +4n
.nf
struct passwd {
char *pw_name; /* user name */
@@ -77,7 +77,7 @@ struct passwd {
char *pw_shell; /* shell program */
};
.fi
-.RE
+.in
.sp
The non-reentrant functions return a pointer to static storage,
where this static storage contains further pointers to user
diff --git a/man3/getpwnam.3 b/man3/getpwnam.3
index 14f657bde6..d2e0cf1e70 100644
--- a/man3/getpwnam.3
+++ b/man3/getpwnam.3
@@ -99,7 +99,7 @@ was found or an error occurred) is stored in
.PP
The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct passwd {
char *pw_name; /* user name */
@@ -111,7 +111,7 @@ struct passwd {
char *pw_shell; /* shell program */
};
.fi
-.RE
+.in
.PP
The maximum needed size for
.I buf
diff --git a/man3/getrpcent.3 b/man3/getrpcent.3
index eec0cd3268..ab2a2f80e0 100644
--- a/man3/getrpcent.3
+++ b/man3/getrpcent.3
@@ -39,7 +39,7 @@ following structure
containing the broken-out
fields of a line in the rpc program number data base,
.IR /etc/rpc .
-.RS 4
+.in +4n
.LP
.nf
struct rpcent {
@@ -48,7 +48,7 @@ struct rpcent {
long r_number; /* rpc program number */
};
.fi
-.RE
+.in
.LP
The members of this structure are:
.TP 10
diff --git a/man3/getservent.3 b/man3/getservent.3
index b13dcd1cf6..b4dab2f221 100644
--- a/man3/getservent.3
+++ b/man3/getservent.3
@@ -86,7 +86,7 @@ function closes \fI/etc/services\fP.
.PP
The \fIservent\fP structure is defined in \fI<netdb.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct servent {
char *s_name; /* official service name */
@@ -95,7 +95,7 @@ struct servent {
char *s_proto; /* protocol to use */
}
.fi
-.RE
+.in
.PP
The members of the \fIservent\fP structure are:
.TP
diff --git a/man3/getspnam.3 b/man3/getspnam.3
index 0cfb147476..4587753007 100644
--- a/man3/getspnam.3
+++ b/man3/getspnam.3
@@ -188,7 +188,7 @@ often with different prototypes.
.SS Structure
The shadow password structure is defined in \fI<shadow.h>\fP as follows:
.sp
-.RS 4
+.in +4n
.nf
struct spwd {
char *sp_namp; /* Login name */
@@ -205,7 +205,7 @@ struct spwd {
unsigned long sp_flag; /* Reserved */
};
.fi
-.RE
+.in
.SH "RETURN VALUE"
The functions that return a pointer return NULL if no more entries
are available or if an error occurs during processing.
diff --git a/man3/hsearch.3 b/man3/hsearch.3
index abc8fe4deb..aaec52c02b 100644
--- a/man3/hsearch.3
+++ b/man3/hsearch.3
@@ -77,14 +77,14 @@ the hash table so that a new table can be constructed.
.PP
The argument \fIitem\fP is of type \fBENTRY\fP, which is a typedef defined in
\fI<search.h>\fP and includes these elements:
-.RS 4
+.in +4n
.sp
.nf
typedef struct entry {
char *key;
void *data;
} ENTRY;
-.RE
+.in
.fi
.sp
The field \fIkey\fP points to the null-terminated string which is the
diff --git a/man3/inet.3 b/man3/inet.3
index 74a48efd67..63643c047a 100644
--- a/man3/inet.3
+++ b/man3/inet.3
@@ -137,7 +137,7 @@ is defined in
.I <netinet/in.h>
as:
.sp
-.RS 4
+.in +4n
.nf
typedef uint32_t in_addr_t;
@@ -145,7 +145,7 @@ struct in_addr {
in_addr_t s_addr;
};
.fi
-.RE
+.in
.PP
Note that on the i80x86 the host byte order is Least Significant Byte
first (little endian), whereas the network byte order, as used on the
diff --git a/man3/insque.3 b/man3/insque.3
index d5d8ab21a1..484a31eff1 100644
--- a/man3/insque.3
+++ b/man3/insque.3
@@ -72,7 +72,7 @@ Traditionally (e.g., SunOS, Linux libc 4,5) the parameters of these
functions were of type \fIstruct qelem *\fP, where the struct
is defined as
-.RS 4
+.in +4n
.nf
struct qelem {
struct qelem *q_forw;
@@ -80,7 +80,7 @@ struct qelem {
char q_data[1];
};
.fi
-.RE
+.in
This is still what you will get if
.B _GNU_SOURCE
diff --git a/man3/mq_receive.3 b/man3/mq_receive.3
index 41b0a08dee..946cc0e095 100644
--- a/man3/mq_receive.3
+++ b/man3/mq_receive.3
@@ -83,7 +83,7 @@ This ceiling is an absolute timeout in seconds and nanoseconds
since the Epoch (midnight on the morning of 1 January 1970),
specified in the following structure:
.sp
-.RS 4
+.in +4n
.nf
struct timespec {
time_t tv_sec; /* seconds */
@@ -91,7 +91,7 @@ struct timespec {
};
.fi
-.RE
+.in
If no message is available,
and the timeout has already expired by the time of the call,
.BR mq_timedreceive ()
diff --git a/man3/mq_send.3 b/man3/mq_send.3
index 4c66c83e2d..655bafc4ef 100644
--- a/man3/mq_send.3
+++ b/man3/mq_send.3
@@ -89,7 +89,7 @@ This ceiling is an absolute timeout in seconds and nanoseconds
since the Epoch (midnight on the morning of 1 January 1970),
specified in the following structure:
.sp
-.RS 4
+.in +4n
.nf
struct timespec {
time_t tv_sec; /* seconds */
@@ -97,7 +97,7 @@ struct timespec {
};
.fi
-.RE
+.in
If the message queue is full,
and the timeout has already expired by the time of the call,
.BR mq_timedsend ()
diff --git a/man3/printf.3 b/man3/printf.3
index ade6e6018a..6d6f38d0c4 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -187,21 +187,21 @@ of `%' and `*m$' instead of `*', where the decimal integer m denotes
the position in the argument list of the desired argument, indexed starting
from 1.
Thus,
-.RS
+.in +4n
.nf
- printf("%*d", width, num);
+printf("%*d", width, num);
.fi
-.RE
+.in
and
-.RS
+.in +4n
.nf
- printf("%2$*1$d", width, num);
+printf("%2$*1$d", width, num);
.fi
-.RE
+.in
are equivalent.
The second style allows repeated references to the
same argument.
@@ -927,14 +927,14 @@ call to write to memory and creating a security hole.
.br
.if \w'\*(Pi'=0 .ds Pi pi
To print \*(Pi to five decimal places:
-.RS
+.in +4n
.nf
#include <math.h>
#include <stdio.h>
fprintf(stdout, "pi = %.5f\en", 4 * atan(1.0));
.fi
-.RE
+.in
.PP
To print a date and time in the form `Sunday, July 3, 10:02',
where
@@ -942,19 +942,19 @@ where
and
.I month
are pointers to strings:
-.RS
+.in +4n
.nf
#include <stdio.h>
fprintf(stdout, "%s, %s %d, %.2d:%.2d\en",
weekday, month, day, hour, min);
.fi
-.RE
+.in
.PP
Many countries use the day-month-year order.
Hence, an internationalized version must be able to print
the arguments in an order specified by the format:
-.RS
+.in +4n
.nf
#include <stdio.h>
@@ -962,21 +962,20 @@ fprintf(stdout, format,
weekday, month, day, hour, min);
.fi
-.RE
+.in
where
.I format
depends on locale, and may permute the arguments.
With the value
-.RS
+.in +4n
.nf
"%1$s, %3$d. %2$s, %4$d:%5$.2d\en"
.fi
-.RE
+.in
one might obtain `Sonntag, 3. Juli, 10:02'.
.PP
To allocate a sufficiently large string and print into it
(code correct for both glibc 2.0 and glibc 2.1):
-.RS 4
.nf
#include <stdio.h>
@@ -1016,7 +1015,6 @@ make_message(const char *fmt, ...)
}
}
.fi
-.RE
.SH "SEE ALSO"
.BR printf (1),
.BR asprintf (3),
diff --git a/man3/readdir.3 b/man3/readdir.3
index 9c5b483d35..0b6b878223 100644
--- a/man3/readdir.3
+++ b/man3/readdir.3
@@ -54,7 +54,7 @@ On Linux, the
.I dirent
structure is defined as follows:
.PP
-.RS 4
+.in +4n
.nf
struct dirent {
ino_t d_ino; /* inode number */
@@ -64,7 +64,7 @@ struct dirent {
char d_name[256]; /* filename */
};
.fi
-.RE
+.in
.PP
According to POSIX, the
.I dirent
diff --git a/man3/regex.3 b/man3/regex.3
index 3f720faa9a..0aa2fb0225 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -182,14 +182,14 @@ structure which is the type of
is defined in
.IR <regex.h> .
-.RS 4
+.in +4n
.nf
typedef struct {
regoff_t rm_so;
regoff_t rm_eo;
} regmatch_t;
.fi
-.RE
+.in
Each
.I rm_so
diff --git a/man4/sd.4 b/man4/sd.4
index fc7ba2fdcf..37c853f648 100644
--- a/man4/sd.4
+++ b/man4/sd.4
@@ -74,7 +74,7 @@ are provided:
.B HDIO_GETGEO
.RS
Returns the BIOS disk parameters in the following structure:
-.RS 4
+.in +4n
.nf
struct hd_geometry {
@@ -84,7 +84,7 @@ struct hd_geometry {
unsigned long start;
};
.fi
-.RE
+.in
A pointer to this structure is passed as the
.BR ioctl (2)
diff --git a/man7/arp.7 b/man7/arp.7
index e6a8fda46f..a44ed64e8b 100644
--- a/man7/arp.7
+++ b/man7/arp.7
@@ -74,7 +74,7 @@ They take a pointer to a
.I struct arpreq
as their parameter.
-.RS 4
+.in +4n
.nf
struct arpreq {
struct sockaddr arp_pa; /* protocol address */
@@ -84,7 +84,7 @@ struct arpreq {
char arp_dev[16];
};
.fi
-.RE
+.in
.BR SIOCSARP ", " SIOCDARP " and " SIOCGARP
respectively set, delete and get an ARP mapping.
diff --git a/man7/ddp.7 b/man7/ddp.7
index 6f46ef6dc5..e2f98b56d5 100644
--- a/man7/ddp.7
+++ b/man7/ddp.7
@@ -61,7 +61,7 @@ capability.
An Appletalk socket address is defined as a combination of a network number,
a node number, and a port number.
.PP
-.RS 4
+.in +4n
.nf
struct at_addr {
u_short s_net;
@@ -75,7 +75,7 @@ struct sockaddr_atalk {
};
.ta
.fi
-.RE
+.in
.PP
.I sat_family
is always set to
diff --git a/man7/ipv6.7 b/man7/ipv6.7
index ef23a8e8ef..2c71447078 100644
--- a/man7/ipv6.7
+++ b/man7/ipv6.7
@@ -62,7 +62,7 @@ or packet to a IPv6 socket its source address will be mapped
to v6 and it will be mapped to v6.
.SS "Address Format"
.sp
-.RS 4
+.in +4n
.nf
struct sockaddr_in6 {
u_int16_t sin6_family; /* AF_INET6 */
@@ -76,7 +76,7 @@ struct in6_addr {
unsigned char s6_addr[16]; /* IPv6 address */
};
.fi
-.RE
+.in
.sp
.I sin6_family
is always set to
diff --git a/man7/netdevice.7 b/man7/netdevice.7
index da63b55683..7cd87a72e0 100644
--- a/man7/netdevice.7
+++ b/man7/netdevice.7
@@ -27,7 +27,7 @@ They pass an
.I ifreq
structure:
-.RS 4
+.in +4n
.nf
struct ifreq {
char ifr_name[IFNAMSIZ]; /* Interface name */
@@ -56,7 +56,7 @@ struct ifconf {
};
};
.fi
-.RE
+.in
Normally, the user specifies which device to affect by setting
.I ifr_name
diff --git a/man7/x25.7 b/man7/x25.7
index 936cce005d..6a20b4b3a1 100644
--- a/man7/x25.7
+++ b/man7/x25.7
@@ -47,14 +47,14 @@ socket address family uses the
for representing network addresses as defined in ITU-T
recommendation X.121.
.PP
-.RS 4
+.in +4n
.nf
struct sockaddr_x25 {
sa_family_t sx25_family; /* must be AF_X25 */
x25_address sx25_addr; /* X.121 Address */
};
.fi
-.RE
+.in
.PP
.I sx25_addr
contains a char array