]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Replaced tabs with spaces
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 5 Apr 2007 13:29:41 +0000 (13:29 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 5 Apr 2007 13:29:41 +0000 (13:29 +0000)
31 files changed:
Changes
man2/intro.2
man2/msgop.2
man2/sigaction.2
man3/bsearch.3
man3/clearenv.3
man3/cmsg.3
man3/fgetpwent.3
man3/frexp.3
man3/ftime.3
man3/getmntent.3
man3/getnetent.3
man3/getprotoent.3
man3/getpw.3
man3/getservent.3
man3/hsearch.3
man3/mq_open.3
man3/printf.3
man3/sockatmark.3
man3/stdarg.3
man3/strftime.3
man3/termios.3
man4/initrd.4
man4/random.4
man5/hosts.5
man5/tzfile.5
man7/arp.7
man7/complex.7
man7/ddp.7
man7/glob.7
man7/x25.7

diff --git a/Changes b/Changes
index 2e1cd746ccde3523689ae156e97a39a74da8cdae..220903a195e0e111e7d7757e99d39efc660aae4f 100644 (file)
--- a/Changes
+++ b/Changes
@@ -33,6 +33,10 @@ bdflush.2
     mtk
         Add <sys/kdaemon.h> header file to SYNOPSIS.
 
+sched_rr_get_interval.2
+    mtk
+        Moved timespec definition from SYNOPSIS into description.
+
 select_tut.2
     mtk
         Make SYNOPSIS match select.2.
index 05538fa791144de5a9e971d9168c26c74c31f340..f207418d14c7dc847e496a49fa3e25e8beb3fcd0 100644 (file)
@@ -86,8 +86,8 @@ you call the system call by \fIname\fP.
 .nf
 #include <stdio.h>
 #include <errno.h>
-#include <linux/unistd.h>      /* for _syscallX macros/related stuff */
-#include <linux/kernel.h>      /* for struct sysinfo */
+#include <linux/unistd.h>       /* for _syscallX macros/related stuff */
+#include <linux/kernel.h>       /* for struct sysinfo */
 
 _syscall1(int, sysinfo, struct sysinfo *, info);
 
index 46e7d5ace0dbdf731f7be198101d9b1db96d4d54..9a5d41ad51ca8c0d586051db7eed3b7c2b473de9 100644 (file)
@@ -64,21 +64,16 @@ The
 .I msgp
 argument is a pointer to caller-defined structure 
 of the following general form:
-.sp
-.B
-       struct msgbuf {
-.br
-.B
-               long    mtype;  
-/* message type, must be > 0 */
-.br
-.B
-               char    mtext[1];       
-/* message data */
-.br
-.B
-       };
-.sp
+.in +0.5i
+.nf
+
+struct msgbuf {
+    long mtype;       /* message type, must be > 0 */
+    char mtext[1];    /* message data */
+};
+.fi
+.in -0.5i
+.PP
 The
 .I mtext
 field is an array (or other structure) whose size is specified by
index fe64e44838ad07ce0c652e7dd9793ec8cff867e4..f0d89d4b1efa384f15d0daceaf6aca0851629d07 100644 (file)
@@ -205,22 +205,21 @@ is a struct with the following elements
 .sp
 .RS
 .nf
-.ta 4 13 24
 siginfo_t {
-       int     si_signo;       /* Signal number */
-       int     si_errno;       /* An errno value */
-       int     si_code;        /* Signal code */
-       pid_t   si_pid; /* Sending process ID */
-       uid_t   si_uid; /* Real user ID of sending process */
-       int     si_status;      /* Exit value or signal */
-       clock_t si_utime;       /* User time consumed */
-       clock_t si_stime;       /* System time consumed */
-       sigval_t        si_value;       /* Signal value */
-       int     si_int; /* POSIX.1b signal */
-       void *  si_ptr; /* POSIX.1b signal */
-       void *  si_addr;        /* Memory location which caused fault */
-       int     si_band;        /* Band event */
-       int     si_fd;  /* File descriptor */
+    int      si_signo;    /* Signal number */
+    int      si_errno;    /* An errno value */
+    int      si_code;     /* Signal code */
+    pid_t    si_pid;      /* Sending process ID */
+    uid_t    si_uid;      /* Real user ID of sending process */
+    int      si_status;   /* Exit value or signal */
+    clock_t  si_utime;    /* User time consumed */
+    clock_t  si_stime;    /* System time consumed */
+    sigval_t si_value;    /* Signal value */
+    int      si_int;      /* POSIX.1b signal */
+    void    *si_ptr;      /* POSIX.1b signal */
+    void    *si_addr;     /* Memory location which caused fault */
+    int      si_band;     /* Band event */
+    int      si_fd;       /* File descriptor */
 }
 .fi
 .RE
index cd8e124214b4e9dca8043c8076d664839a984626..5bf559146703910807370b4af54130f29cbe08e9 100644 (file)
@@ -99,7 +99,7 @@ main(int argc, char **argv)
         if (res == NULL)
             printf("'%s': unknown month\en", argv[i]);
         else
-                   printf("%s: month #%d\en", res->name, res->nr);
+            printf("%s: month #%d\en", res->name, res->nr);
     }
     return 0;
 }
index c2a97eba5a289b2f7c928d32aaed50594ec03d8a..1167e2a1186ddcec249c3d3032311ac3c18c5b34 100644 (file)
@@ -55,7 +55,7 @@ Used in security-conscious applications. If it is unavailable
 the assignment
 .RS
 .nf
-       environ = NULL;
+    environ = NULL;
 .fi
 .RE
 will probably do.
index 65c6ad261548e0e3d31f39953833305a5c2aac6a..ad55be69aa1be2a7a5ac652837756a2d2ad1a6eb 100644 (file)
@@ -143,20 +143,20 @@ int received_ttl;
 
 /* Receive auxiliary data in msgh */ 
 for (cmsg = CMSG_FIRSTHDR(&msgh); 
-     cmsg != NULL; 
-     cmsg = CMSG_NXTHDR(&msgh,cmsg)) {
-       if (cmsg->cmsg_level == IPPROTO_IP 
-         && cmsg->cmsg_type == IP_TTL) { 
-               ttlptr = (int *) CMSG_DATA(cmsg);
-               received_ttl = *ttlptr; 
-               break;
-       }
+    cmsg != NULL; 
+    cmsg = CMSG_NXTHDR(&msgh,cmsg)) {
+        if (cmsg->cmsg_level == IPPROTO_IP 
+                && cmsg->cmsg_type == IP_TTL) { 
+            ttlptr = (int *) CMSG_DATA(cmsg);
+            received_ttl = *ttlptr; 
+            break;
+        }
 }
 if (cmsg == NULL) {
-       /*
-        * Error: IP_TTL not enabled or small buffer
-        * or I/O error.
-        */ 
+    /*
+     * Error: IP_TTL not enabled or small buffer
+     * or I/O error.
+     */ 
 } 
 .ta
 .fi
index 90e2c8e2a17afca464fa703c5cca0e51620b1493..ed3d60123131cd51b8e9f0b3644acc0be84d0c3c 100644 (file)
@@ -48,21 +48,19 @@ entries.  The file \fIstream\fP must have the same format as
 .PP
 The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
 .sp
-.RS
+.in +0.5i
 .nf
-.ta 8n 16n 32n
 struct passwd {
-        char    *pw_name;              /* user name */
-        char    *pw_passwd;            /* user password */
-        uid_t   pw_uid;                        /* user ID */
-        gid_t   pw_gid;                        /* group ID */
-        char    *pw_gecos;             /* real name */
-        char    *pw_dir;               /* home directory */
-        char    *pw_shell;             /* shell program */
+    char   *pw_name;       /* user name */
+    char   *pw_passwd;     /* user password */
+    uid_t   pw_uid;        /* user ID */
+    gid_t   pw_gid;        /* group ID */
+    char   *pw_gecos;      /* real name */
+    char   *pw_dir;        /* home directory */
+    char   *pw_shell;      /* shell program */
 };
-.ta
 .fi
-.RE
+.in -0.5i
 .SH "RETURN VALUE"
 The \fBfgetpwent\fP() function returns the passwd structure, or NULL if 
 there are no more entries or an error occurs.
index 7b318f2d75fa7cb1641c0d750d0a785256223b8c..72a2730db7676c6b12c3bc81c61465fbe2b70f68 100644 (file)
@@ -78,7 +78,7 @@ main(int argc, char *argv[])
     r = frexp(x, &exp);
 
     printf("frexp(%g, &e) = %g: %g * %d^%d = %g\\n",
-               x, r, r, FLT_RADIX, exp, x);
+           x, r, r, FLT_RADIX, exp, x);
     exit(EXIT_SUCCESS);
 } /* main */
 .fi
index b34df61971562bd075f1417c708db33bc1a0157a..cd6f3d5572686b139a9074c17323bd62422d4eb7 100644 (file)
@@ -42,10 +42,10 @@ which is declared as follows:
 .in +1i
 .nf
 struct timeb {
-       time_t   time;
-       unsigned short millitm;
-       short    timezone;
-       short    dstflag;
+    time_t   time;
+    unsigned short millitm;
+    short    timezone;
+    short    dstflag;
 };
 .fi
 .in -1i
index ed9647f2c42d743e5c78854eb4f5477ad7d59210..7f43c9ad994de6191235d1106eaae292e49ce786 100644 (file)
@@ -93,21 +93,18 @@ of size
 .PP
 The \fImntent\fP structure is defined in \fI<mntent.h>\fP as follows:
 .sp
-.RS
+.in +0.5i
 .nf
-.ne 8
-.ta 8n 16n 32n
 struct mntent {
-       char    *mnt_fsname;            /* name of mounted file system */
-       char    *mnt_dir;               /* file system path prefix */
-       char    *mnt_type;              /* mount type (see mntent.h) */
-       char    *mnt_opts;              /* mount options (see mntent.h) */
-       int     mnt_freq;               /* dump frequency in days */
-       int     mnt_passno;             /* pass number on parallel fsck */
+    char *mnt_fsname;   /* name of mounted file system */
+    char *mnt_dir;      /* file system path prefix */
+    char *mnt_type;     /* mount type (see mntent.h) */
+    char *mnt_opts;     /* mount options (see mntent.h) */
+    int   mnt_freq;     /* dump frequency in days */
+    int   mnt_passno;   /* pass number on parallel fsck */
 };
-.ta
 .fi
-.RE
+.in -0.5i
 
 Since fields in the mtab and fstab files are separated by whitespace,
 octal escapes are used to represent the four characters space (\e040),
index 053d84d5bb22d7e71f8c15d4c1b5ff9ae73430f5..15756fe02688ed269583556da009d4b6558b6193 100644 (file)
@@ -66,19 +66,16 @@ The \fBendnetent\fP() function closes \fI/etc/networks\fP.
 .PP
 The \fInetent\fP structure is defined in \fI<netdb.h>\fP as follows:
 .sp
-.RS
+.in +0.5i
 .nf
-.ne 6
-.ta 8n 16n 34n
 struct netent {
-       char    *n_name;                /* official network name */
-       char    **n_aliases;            /* alias list */
-       int     n_addrtype;             /* net address type */
-       unsigned long int n_net;        /* network number */
+    char          *n_name;     /* official network name */
+    char         **n_aliases;  /* alias list */
+    int            n_addrtype; /* net address type */
+    unsigned long  n_net;      /* network number */
 }
-.ta
 .fi
-.RE
+.in -0.5i
 .PP
 The members of the \fInetent\fP structure are:
 .TP
index f5d91abb40a7819bdfdb9284d3f86685feb85347..a6357764db46339733c83cd46870fd89c3aa056c 100644 (file)
@@ -65,18 +65,15 @@ The \fBendprotoent\fP() function closes \fI/etc/protocols\fP.
 .PP
 The \fIprotoent\fP structure is defined in \fI<netdb.h>\fP as follows:
 .sp
-.RS
+.in +0.5i
 .nf
-.ne 5
-.ta 8n 16n 32n
 struct protoent {
-       char    *p_name;                /* official protocol name */
-       char    **p_aliases;            /* alias list */
-       int     p_proto;                /* protocol number */
+    char  *p_name;       /* official protocol name */
+    char **p_aliases;    /* alias list */
+    int    p_proto;      /* protocol number */
 }
-.ta
 .fi
-.RE
+.in -0.5i
 .PP
 The members of the \fIprotoent\fP structure are:
 .TP
index cbb2329099078134556bf07c4da43973db1563c8..986ddc6f972e22500a8b3ba25e474cd1527ab7d7 100644 (file)
@@ -50,17 +50,15 @@ The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
 .sp
 .RS
 .nf
-.ta 8n 16n 32n
 struct passwd {
-        char    *pw_name;              /* user name */
-        char    *pw_passwd;            /* user password */
-        uid_t   pw_uid;                        /* user ID */
-        gid_t   pw_gid;                        /* group ID */
-        char    *pw_gecos;             /* real name */
-        char    *pw_dir;               /* home directory */
-        char    *pw_shell;             /* shell program */
+    char   *pw_name;       /* user name */
+    char   *pw_passwd;     /* user password */
+    uid_t   pw_uid;        /* user ID */
+    gid_t   pw_gid;        /* group ID */
+    char   *pw_gecos;      /* real name */
+    char   *pw_dir;        /* home directory */
+    char   *pw_shell;      /* shell program */
 };
-.ta
 .fi
 .RE
 .SH "RETURN VALUE"
index 1b5c7a62577b526d19931e6554b6021c4fad35ea..a2162a8ad01ffa3ef2dd8cb378ca8a98b56dc173 100644 (file)
@@ -74,15 +74,12 @@ The \fIservent\fP structure is defined in \fI<netdb.h>\fP as follows:
 .sp
 .RS
 .nf
-.ne 6
-.ta 8n 16n 32n
 struct servent {
-       char    *s_name;                /* official service name */
-       char    **s_aliases;            /* alias list */
-       int     s_port;                 /* port number */
-       char    *s_proto;               /* protocol to use */
+    char  *s_name;       /* official service name */
+    char **s_aliases;    /* alias list */
+    int    s_port;       /* port number */
+    char  *s_proto;      /* protocol to use */
 }
-.ta
 .fi
 .RE
 .PP
index 8668e75c1cf4a0789be576685d2acc34ab6b8ec9..15482878a601dd3c4b102694af52b723ecb5026d 100644 (file)
@@ -71,12 +71,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
 .sp
 .nf
-       typedef struct entry { 
-           char *\fIkey\fP;
-           void *\fIdata\fP; 
-       } ENTRY;
+typedef struct entry { 
+    char *\fIkey\fP;
+    void *\fIdata\fP; 
+} ENTRY;
+.RE
 .fi
 .sp
 The field \fIkey\fP points to the null-terminated string which is the
index d826c9ca1aaacb64bb84a9b484a2ee5555f46d3a..c6c66303c44bd490daa057c9ad2f11e6080f14c2 100644 (file)
@@ -96,7 +96,7 @@ then two additional arguments must be supplied.
 The
 .I mode
 argument specifies the permissions to be placed on the new queue, 
-        as for
+as for
 .BR open (2).
 The permissions settings are masked against the process umask.
 The 
index 256f3b20e6c3e93c77bceab05de4bc0c5a33b933..bcf152fd8ca7cee53bb287476f2e419dbdf2f68c 100644 (file)
@@ -155,13 +155,17 @@ the position in the argument list of the desired argument, indexed starting
 from 1. Thus,
 .RS
 .nf
-       printf("%*d", width, num);
+
+    printf("%*d", width, num);
+
 .fi
 .RE
 and
 .RS
 .nf
-       printf("%2$*1$d", width, num);
+
+    printf("%2$*1$d", width, num);
+
 .fi
 .RE
 are equivalent. The second style allows repeated references to the
@@ -181,7 +185,7 @@ uses `.' as radix character, and does not have a grouping character.
 Thus,
 .RS
 .nf
-       printf("%'.2f", 1234567.89);
+    printf("%'.2f", 1234567.89);
 .fi
 .RE
 results in `1234567.89' in the POSIX locale, in `1234567,89' in the
@@ -711,6 +715,7 @@ specification is `%%'.
 To print \*(Pi to five decimal places:
 .RS
 .nf
+
 #include <math.h>
 #include <stdio.h>
 fprintf(stdout, "pi = %.5f\en", 4 * atan(1.0));
@@ -725,9 +730,10 @@ and
 are pointers to strings:
 .RS
 .nf
+
 #include <stdio.h>
 fprintf(stdout, "%s, %s %d, %.2d:%.2d\en",
-       weekday, month, day, hour, min);
+        weekday, month, day, hour, min);
 .fi
 .RE
 .PP
@@ -736,9 +742,11 @@ Hence, an internationalized version must be able to print
 the arguments in an order specified by the format:
 .RS
 .nf
+
 #include <stdio.h>
 fprintf(stdout, format,
-       weekday, month, day, hour, min);
+        weekday, month, day, hour, min);
+
 .fi
 .RE
 where
@@ -755,40 +763,42 @@ To allocate a sufficiently large string and print into it
 (code correct for both glibc 2.0 and glibc 2.1):
 .RS
 .nf
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
 
 char *
-make_message(const char *fmt, ...) {
-   /* Guess we need no more than 100 bytes. */
-   int n, size = 100;
-   char *p, *np;
-   va_list ap;
+make_message(const char *fmt, ...) 
+{
+    /* Guess we need no more than 100 bytes. */
+    int n, size = 100;
+    char *p, *np;
+    va_list ap;
 
-   if ((p = malloc(size)) == NULL)
-      return NULL;
+    if ((p = malloc(size)) == NULL)
+        return NULL;
    
-   while (1) {
-      /* Try to print in the allocated space. */
-      va_start(ap, fmt);
-      n = vsnprintf(p, size, fmt, ap);
-      va_end(ap);
-      /* If that worked, return the string. */
-      if (n > \-1 && n < size)
-         return p;
-      /* Else try again with more space. */
-      if (n > \-1)    /* glibc 2.1 */
-         size = n+1; /* precisely what is needed */
-      else           /* glibc 2.0 */
-         size *= 2;  /* twice the old size */
-      if ((np = realloc (p, size)) == NULL) {
-         free(p);
-         return NULL;
-      } else {
-         p = np;
-      }
-   }
+    while (1) {
+        /* Try to print in the allocated space. */
+        va_start(ap, fmt);
+        n = vsnprintf(p, size, fmt, ap);
+        va_end(ap);
+        /* If that worked, return the string. */
+        if (n > \-1 && n < size)
+            return p;
+        /* Else try again with more space. */
+        if (n > \-1)    /* glibc 2.1 */
+            size = n+1; /* precisely what is needed */
+        else           /* glibc 2.0 */
+            size *= 2;  /* twice the old size */
+        if ((np = realloc (p, size)) == NULL) {
+            free(p);
+            return NULL;
+        } else {
+            p = np;
+        }
+    }
 }
 .fi
 .RE
index 0ec8646482882608f692a5a6eb874beecf13a046..2f95c3b73fd24cd91917b0c2ec727af0bd1dfff8 100644 (file)
@@ -93,7 +93,7 @@ and then read the byte of data at the mark:
             perror("sockatmark");
             break;
         } 
-       
+
         if (atmark)
             break;
         
index 9560b272e58b5ec76e0243531fb315211190c956..dd56df80a4b220ee24acdff48138139a3fe01ee7 100644 (file)
@@ -154,15 +154,15 @@ In such a setup (by far the most common) there seems
 nothing against an assignment
 .RS
 .nf
-       va_list aq = ap;
+    va_list aq = ap;
 .fi
 .RE
 Unfortunately, there are also systems that make it an
 array of pointers (of length 1), and there one needs
 .RS
 .nf
-       va_list aq;
-       *aq = *ap;
+    va_list aq;
+    *aq = *ap;
 .fi
 .RE
 Finally, on systems where parameters are passed in registers,
@@ -179,10 +179,10 @@ To accommodate this situation, C99 adds a macro
 so that the above assignment can be replaced by
 .RS
 .nf
-       va_list aq;
-       va_copy(aq, ap);
-       ...
-       va_end(aq);
+    va_list aq;
+    va_copy(aq, ap);
+    ...
+    va_end(aq);
 .fi
 .RE
 Each invocation of
@@ -205,30 +205,32 @@ with each format character based on the type.
 #include <stdio.h>
 #include <stdarg.h>
 
-void foo(char *fmt, ...) {
-       va_list ap;
-       int d;
-       char c, *s;
+void 
+foo(char *fmt, ...) 
+{
+    va_list ap;
+    int d;
+    char c, *s;
 
-       va_start(ap, fmt);
-       while (*fmt)
-               switch(*fmt++) {
-               case 's':                       /* string */
-                       s = va_arg(ap, char *);
-                       printf("string %s\en", s);
-                       break;
-               case 'd':                       /* int */
-                       d = va_arg(ap, int);
-                       printf("int %d\en", d);
-                       break;
-               case 'c':                       /* char */
-                       /* need a cast here since va_arg only
-                          takes fully promoted types */
-                       c = (char) va_arg(ap, int);
-                       printf("char %c\en", c);
-                       break;
-               }
-       va_end(ap);
+    va_start(ap, fmt);
+    while (*fmt)
+        switch(*fmt++) {
+        case 's':              /* string */
+            s = va_arg(ap, char *);
+            printf("string %s\en", s);
+            break;
+        case 'd':              /* int */
+            d = va_arg(ap, int);
+            printf("int %d\en", d);
+            break;
+        case 'c':              /* char */
+            /* need a cast here since va_arg only
+               takes fully promoted types */
+            c = (char) va_arg(ap, int);
+            printf("char %c\en", c);
+            break;
+        }
+    va_end(ap);
 }
 .fi
 .RE
@@ -254,16 +256,19 @@ The historic setup is:
 .nf
 #include <varargs.h>
 
-void foo(va_alist) va_dcl {
-       va_list ap;
+void 
+foo(va_alist) 
+    va_dcl 
+{
+    va_list ap;
 
-       va_start(ap);
-       while(...) {
-               ...
-               x = va_arg(ap, type);
-               ...
-       }
-       va_end(ap);
+    va_start(ap);
+    while(...) {
+        ...
+        x = va_arg(ap, type);
+        ...
+    }
+    va_end(ap);
 }
 .fi
 .RE
index c10445ddd03eccec46d83e386c8d309b69fd60d1..e3965e4b3a3200b09883b49161b045d501b78209 100644 (file)
@@ -310,14 +310,17 @@ Of course programmers are encouraged to use %c, it gives the preferred
 date and time representation. One meets all kinds of strange obfuscations
 to circumvent this gcc problem. A relatively clean one is to add an
 intermediate function
-.RS
-size_t my_strftime(char *s, size_t max, const char *fmt,
-const struct tm *tm) {
-.br
-       return strftime(s, max, fmt, tm);
-.br
+.in +0.5i
+.nf
+
+size_t 
+my_strftime(char *s, size_t max, const char *fmt, 
+            const struct tm *tm) 
+{
+    return strftime(s, max, fmt, tm);
 }
-.RE
+.fi
+.in -0.5i
 .SH EXAMPLE
 The program below can be used to experiment with 
 .BR strftime ().
index fe6546f6021bb9fe4fde3bcc633c4f1f252ed423..6a5204cc5f79efb29960a1bc7b1adba737c40811 100644 (file)
@@ -666,7 +666,7 @@ until \fBtcsetattr\fP() is successfully called.
 
 Setting the speed to \fBB0\fP instructs the modem to "hang up".
 The actual bit rate corresponding to \fBB38400\fP may be altered with
-\fBsetserial\fP(8).    
+\fBsetserial\fP(8).
 .LP
 The input and output baud rates are stored in the \fItermios\fP
 structure.
index f13492e2fc77fd3d8223850492b48cf395718cdb..91099368a0ea4e5d79753bb0c0103442237c2b44 100644 (file)
@@ -226,7 +226,9 @@ For example, the following shell command line would change
 the normal root device to 
 .IR /dev/hdb1 :
 .nf
-        echo 0x365 >/proc/sys/kernel/real-root-dev
+
+    echo 0x365 >/proc/sys/kernel/real-root-dev
+
 .fi
 For a NFS example, the following shell command lines would change the 
 normal root device to the NFS directory 
@@ -234,10 +236,11 @@ normal root device to the NFS directory
 on a local networked NFS server with IP number 193.8.232.7 for a system with 
 IP number 193.8.232.7 and named 'idefix':
 .nf
-       echo /var/nfsroot >/proc/sys/kernel/nfs-root-name
-       echo 193.8.232.2:193.8.232.7::255.255.255.0:idefix \\
-         >/proc/sys/kernel/nfs-root-addrs
-       echo 255 >/proc/sys/kernel/real-root-dev
+
+    echo /var/nfsroot >/proc/sys/kernel/nfs-root-name
+    echo 193.8.232.2:193.8.232.7::255.255.255.0:idefix \\
+        >/proc/sys/kernel/nfs-root-addrs
+    echo 255 >/proc/sys/kernel/real-root-dev
 .fi
 
 .BR Note :
index b02a56416159dce4a2843a5d6eeab58a05fdf451..b524c7118004acde7b3dfc4fe05b81611d237e4d 100644 (file)
@@ -49,9 +49,9 @@ If your system does not have
 can be created with the following commands:
 
 .nf
-        mknod \-m 644 /dev/random c 1 8
-        mknod \-m 644 /dev/urandom c 1 9
-        chown root:root /dev/random /dev/urandom
+    mknod \-m 644 /dev/random c 1 8
+    mknod \-m 644 /dev/urandom c 1 9
+    chown root:root /dev/random /dev/urandom
 .fi
  
 When a Linux system starts up without much operator interaction, 
@@ -63,34 +63,34 @@ To do this, add the following lines to an appropriate script
 which is run during the Linux system start-up sequence: 
 
 .nf
-       echo "Initializing random number generator..."
-       random_seed=/var/run/random-seed
-       # Carry a random seed from start-up to start-up
-       # Load and then save the whole entropy pool
-       if [ \-f $random_seed ]; then
-           cat $random_seed >/dev/urandom
-       else
-           touch $random_seed
-       fi
-       chmod 600 $random_seed
-       poolfile=/proc/sys/kernel/random/poolsize
-       [ \-r $poolfile ] && bytes=`cat $poolfile` || bytes=512
-       dd if=/dev/urandom of=$random_seed count=1 bs=$bytes
+    echo "Initializing random number generator..."
+    random_seed=/var/run/random-seed
+    # Carry a random seed from start-up to start-up
+    # Load and then save the whole entropy pool
+    if [ \-f $random_seed ]; then
+        cat $random_seed >/dev/urandom
+    else
+        touch $random_seed
+    fi
+    chmod 600 $random_seed
+    poolfile=/proc/sys/kernel/random/poolsize
+    [ \-r $poolfile ] && bytes=`cat $poolfile` || bytes=512
+    dd if=/dev/urandom of=$random_seed count=1 bs=$bytes
 .fi
 
 Also, add the following lines in an appropriate script which is 
 run during the Linux system shutdown:
  
 .nf
-       # Carry a random seed from shut-down to start-up
-       # Save the whole entropy pool
-       echo "Saving random seed..."
-       random_seed=/var/run/random-seed
-       touch $random_seed
-       chmod 600 $random_seed
-       poolfile=/proc/sys/kernel/random/poolsize
-       [ \-r $poolfile ] && bytes=`cat $poolfile` || bytes=512
-       dd if=/dev/urandom of=$random_seed count=1 bs=$bytes
+    # Carry a random seed from shut-down to start-up
+    # Save the whole entropy pool
+    echo "Saving random seed..."
+    random_seed=/var/run/random-seed
+    touch $random_seed
+    chmod 600 $random_seed
+    poolfile=/proc/sys/kernel/random/poolsize
+    [ \-r $poolfile ] && bytes=`cat $poolfile` || bytes=512
+    dd if=/dev/urandom of=$random_seed count=1 bs=$bytes
 .fi
 .SH "PROC INTERFACE"
 The files in the directory
index 5b7ba23d6fac2626353b82a83ae893149c14e724..62a7a52b6fe46f578c46507ce292f134498577aa 100644 (file)
@@ -76,11 +76,11 @@ network is not connected to the Internet, DNS offers little
 advantage. 
 .SH EXAMPLE
 .nf
- 127.0.0.1       localhost
- 192.168.1.10    foo.mydomain.org      foo
- 192.168.1.13    bar.mydomain.org      bar
- 146.82.138.7    master.debian.org      master
- 209.237.226.90  www.opensource.org
+127.0.0.1       localhost
+192.168.1.10    foo.mydomain.org       foo
+192.168.1.13    bar.mydomain.org       bar
+146.82.138.7    master.debian.org      master
+209.237.226.90  www.opensource.org
 .fi
 .SH "NOTE"
 Modifications to this file normally take effect immediately,
index 2f26efea584984fcbb7c67ab8831473959eb5d67..769d5fb1881fce3541f6dfcea1eff5538853051a 100644 (file)
@@ -63,11 +63,10 @@ these structures are defined as follows:
 .in +.5i
 .sp
 .nf
-.ta .5i +\w'unsigned int\0\0'u
 struct ttinfo {
-       long    tt_gmtoff;
-       int     tt_isdst;
-       unsigned int    tt_abbrind;
+    long         tt_gmtoff;
+    int          tt_isdst;
+    unsigned int tt_abbrind;
 };
 .in -.5i
 .fi
index 9988eb8dc89a53c2e519dc273123c695fca927a3..84146f23ef9615b823aa02f924c06daa5de18dff 100644 (file)
@@ -67,13 +67,12 @@ They take a pointer to a
 as their parameter.
 
 .nf
-.ta 4 20 33
 struct arpreq {
-       struct sockaddr arp_pa; /* protocol address */
-       struct sockaddr arp_ha; /* hardware address */
-       int     arp_flags;      /* flags */
-       struct sockaddr arp_netmask;    /* netmask of protocol address */
-       char    arp_dev[16];
+    struct sockaddr arp_pa;       /* protocol address */
+    struct sockaddr arp_ha;       /* hardware address */
+    int             arp_flags;    /* flags */
+    struct sockaddr arp_netmask;  /* netmask of protocol address */
+    char            arp_dev[16];
 };
 .fi
 
index 1978e7297aabb5da9e5c14e9c4d8fea914a6d9de..7fb5f9b8069a65fc52bbef48c0f6068736dfbb1f 100644 (file)
@@ -33,7 +33,7 @@ Link with \-lm. The imaginary unit is represented by I.
 .sp
 .nf
 /* check that exp(i * pi) == \-1 */
-#include <math.h>      /* for atan */
+#include <math.h>        /* for atan */
 #include <complex.h>
 
 int
index 0b516653332131e84d848bb03b9453b9e577e4f1..4d2e1342a421a92b3ba8f95c4a7e52ab5ba84aad 100644 (file)
@@ -58,16 +58,15 @@ a node number, and a port number.
 .PP
 .RS
 .nf
-.ta 4n 20n 32n
 struct at_addr {
-       u_short s_net;
-       u_char  s_node;
+    u_short        s_net;
+    u_char         s_node;
 };
 
 struct sockaddr_atalk {
-       sa_family_t     sat_family;     /* address family */
-       u_char  sat_port;       /* port */
-       struct at_addr  sat_addr;       /* net/node */
+    sa_family_t    sat_family;    /* address family */
+    u_char         sat_port;      /* port */
+    struct at_addr sat_addr;      /* net/node */
 };
 .ta
 .fi
index 0b0048472f3c99b2e79d5480d68f93363e78f2ca..c27eda94512c1c9c18a9fc3b0270da80702de4c8 100644 (file)
@@ -90,7 +90,7 @@ definition. It allowed one to have patterns that expand into
 an empty list, as in
 .br
 .nf
-       xv \-wait 0 *.gif *.jpg
+    xv \-wait 0 *.gif *.jpg
 .fi
 where perhaps no *.gif files are present (and this is not
 an error).
@@ -105,12 +105,12 @@ one can force the classical behaviour by setting
 (Similar problems occur elsewhere. E.g., where old scripts have
 .br
 .nf
-       rm `find . \-name "*~"`
+    rm `find . \-name "*~"`
 .fi
 new scripts require
 .br
 .nf
-       rm \-f nosuchfile `find . \-name "*~"`
+    rm \-f nosuchfile `find . \-name "*~"`
 .fi
 to avoid error messages from
 .I rm
index b03e32c13a19c5c22da421edc40d8b43b835dbd7..6bc4a8c337f687656c05f55a2ac7faf3f679f261 100644 (file)
@@ -44,12 +44,10 @@ recommendation X.121.
 .PP
 .RS
 .nf
-.ta 4n 18n 32n
 struct sockaddr_x25 {
-       sa_family_t     sx25_family;    /* must be AF_X25 */
-       x25_address     sx25_addr;      /* X.121 Address */
+    sa_family_t sx25_family;    /* must be AF_X25 */
+    x25_address sx25_addr;      /* X.121 Address */
 };
-.ta
 .fi
 .RE
 .PP