execve.2, get_robust_list.2, getunwind.2, pipe.2, quotactl.2, clock_getcpuclockid.3, endian.3, fmemopen.3, getgrouplist.3, getservent_r.3, mq_notify.3, qsort.3, rtime.3, mailaddr.7: ffix: replace tabs with white space in code examples

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-01-18 20:45:45 +13:00
parent 1c7b245826
commit 5a6194a405
14 changed files with 27 additions and 27 deletions

View File

@ -589,8 +589,8 @@ main(int argc, char *argv[])
char *newenviron[] = { NULL };
if (argc != 2) {
fprintf(stderr, "Usage: %s <file\-to\-exec>\\n", argv[0]);
exit(EXIT_FAILURE);
fprintf(stderr, "Usage: %s <file\-to\-exec>\\n", argv[0]);
exit(EXIT_FAILURE);
}
newargv[0] = argv[1];

View File

@ -35,7 +35,7 @@ get_robust_list, set_robust_list \- get/set list of robust futexes
.B #include <syscall.h>
.sp
.BI "long get_robust_list(int " pid ", struct robust_list_head **" head_ptr ,
.BI " size_t *" len_ptr );
.BI " size_t *" len_ptr );
.BI "long set_robust_list(struct robust_list_head *" head ", size_t " len );
.fi

View File

@ -67,9 +67,9 @@ The rest contains the associated unwind information, in no particular order.
The unwind table contains entries of the following form:
.nf
u64 start; (64-bit address of start of function)
u64 end; (64-bit address of end of function)
u64 info; (BUF-relative offset to unwind info)
u64 start; (64-bit address of start of function)
u64 end; (64-bit address of end of function)
u64 info; (BUF-relative offset to unwind info)
.fi
An entry whose

View File

@ -154,8 +154,8 @@ main(int argc, char *argv[])
char buf;
if (argc != 2) {
fprintf(stderr, "Usage: %s <string>\\n", argv[0]);
exit(EXIT_FAILURE);
fprintf(stderr, "Usage: %s <string>\\n", argv[0]);
exit(EXIT_FAILURE);
}
if (pipe(pipefd) == \-1) {

View File

@ -257,7 +257,7 @@ struct dqinfo { /* Defined since kernel 2.4.22 */
# define IIF_BGRACE 1
# define IIF_IGRACE 2
# define IIF_FLAGS 4
# define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
# define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
.fi
.in

View File

@ -133,21 +133,21 @@ main(int argc, char *argv[])
if (argc != 2) {
fprintf(stderr, "%s <process\-ID>\\n", argv[0]);
exit(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
if (clock_getcpuclockid(atoi(argv[1]), &clockid) != 0) {
perror("clock_getcpuclockid");
exit(EXIT_FAILURE);
perror("clock_getcpuclockid");
exit(EXIT_FAILURE);
}
if (clock_gettime(clockid, &ts) == \-1) {
perror("clock_gettime");
exit(EXIT_FAILURE);
perror("clock_gettime");
exit(EXIT_FAILURE);
}
printf("CPU-time clock for PID %s is %ld.%09ld seconds\\n",
argv[1], (long) ts.tv_sec, (long) ts.tv_nsec);
argv[1], (long) ts.tv_sec, (long) ts.tv_nsec);
exit(EXIT_SUCCESS);
}
.fi

View File

@ -132,8 +132,8 @@ int
main(int argc, char *argv[])
{
union {
uint32_t u32;
uint8_t arr[4];
uint32_t u32;
uint8_t arr[4];
} x;
x.arr[0] = 0x11; /* Lowest-address byte */

View File

@ -310,8 +310,8 @@ main(int argc, char *argv[])
char *ptr;
if (argc != 2) {
fprintf(stderr, "Usage: %s <file>\\n", argv[0]);
exit(EXIT_FAILURE);
fprintf(stderr, "Usage: %s <file>\\n", argv[0]);
exit(EXIT_FAILURE);
}
in = fmemopen(argv[1], strlen(argv[1]), "r");

View File

@ -169,7 +169,7 @@ main(int argc, char *argv[])
if (getgrouplist(argv[1], pw\->pw_gid, groups, &ngroups) == \-1) {
fprintf(stderr, "getgrouplist() returned \-1; ngroups = %d\\n",
ngroups);
exit(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
/* Display list of retrieved groups, along with group names */

View File

@ -187,7 +187,7 @@ main(int argc, char *argv[])
port = htons(atoi(argv[1]));
protop = (strcmp(argv[2], "null") == 0 ||
strcmp(argv[2], "NULL") == 0) ? NULL : argv[2];
strcmp(argv[2], "NULL") == 0) ? NULL : argv[2];
buflen = 1024;
if (argc > 3)

View File

@ -222,8 +222,8 @@ main(int argc, char *argv[])
struct sigevent sev;
if (argc != 2) {
fprintf(stderr, "Usage: %s <mq\-name>\\n", argv[0]);
exit(EXIT_FAILURE);
fprintf(stderr, "Usage: %s <mq\-name>\\n", argv[0]);
exit(EXIT_FAILURE);
}
mqdes = mq_open(argv[1], O_RDONLY);

View File

@ -141,8 +141,8 @@ main(int argc, char *argv[])
int j;
if (argc < 2) {
fprintf(stderr, "Usage: %s <string>...\\n", argv[0]);
exit(EXIT_FAILURE);
fprintf(stderr, "Usage: %s <string>...\\n", argv[0]);
exit(EXIT_FAILURE);
}
qsort(&argv[1], argc \- 1, sizeof(char *), cmpstringp);

View File

@ -118,7 +118,7 @@ main(void)
if (ret < 0)
perror("rtime error");
else {
time_t t = time1.tv_sec;
time_t t = time1.tv_sec;
printf("%s\\n", ctime(&t));
}

View File

@ -43,7 +43,7 @@ These examples are valid forms of the same address:
.br
Eric Allman <eric@monet.berkeley.edu>
.br
eric@monet.berkeley.edu (Eric Allman)
eric@monet.berkeley.edu (Eric Allman)
.PP
The domain part ("monet.berkeley.edu") is a mail-accepting domain.
It can be a host and in the past it usually was, but it doesn't have to be.