From 861d36ba31d9146248482e537a23757ab18aee32 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 24 Sep 2020 09:32:31 +0200 Subject: [PATCH] pldd.1, bpf.2, clone.2, dup.2, ioctl_fat.2, nfsservctl.2, open_by_handle_at.2, perf_event_open.2, pivot_root.2, request_key.2, sched_setaffinity.2, seccomp.2, select.2, statx.2, dl_iterate_phdr.3, dlinfo.3, dlopen.3, insque.3, newlocale.3, printf.3, pthread_setname_np.3, rpc.3, stdarg.3, strfmon.3, veth.4, proc.5, slabinfo.5, cgroup_namespaces.7, cgroups.7, cpuset.7, fanotify.7, inotify.7, mount_namespaces.7, sock_diag.7, user_namespaces.7, ld.so.8: Use \(aq instead of ' inside monospace fonts Use \(aq to get an unslanted single quote inside monospace code blocks. Using a simple ' results in a slanted quote inside PDFs. Signed-off-by: Michael Kerrisk --- man1/pldd.1 | 2 +- man2/bpf.2 | 8 ++++---- man2/clone.2 | 4 ++-- man2/dup.2 | 8 ++++---- man2/ioctl_fat.2 | 12 ++++++------ man2/nfsservctl.2 | 2 +- man2/open_by_handle_at.2 | 4 ++-- man2/perf_event_open.2 | 12 ++++++------ man2/pivot_root.2 | 2 +- man2/request_key.2 | 2 +- man2/sched_setaffinity.2 | 2 +- man2/seccomp.2 | 16 ++++++++-------- man2/select.2 | 4 ++-- man2/statx.2 | 2 +- man3/dl_iterate_phdr.3 | 4 ++-- man3/dlinfo.3 | 4 ++-- man3/dlopen.3 | 6 +++--- man3/insque.3 | 2 +- man3/newlocale.3 | 6 +++--- man3/printf.3 | 2 +- man3/pthread_setname_np.3 | 2 +- man3/rpc.3 | 2 +- man3/stdarg.3 | 2 +- man3/strfmon.3 | 2 +- man4/veth.4 | 2 +- man5/proc.5 | 6 +++--- man5/slabinfo.5 | 2 +- man7/cgroup_namespaces.7 | 2 +- man7/cgroups.7 | 2 +- man7/cpuset.7 | 2 +- man7/fanotify.7 | 4 ++-- man7/inotify.7 | 6 +++--- man7/mount_namespaces.7 | 2 +- man7/sock_diag.7 | 4 ++-- man7/user_namespaces.7 | 6 +++--- man8/ld.so.8 | 2 +- 36 files changed, 76 insertions(+), 76 deletions(-) diff --git a/man1/pldd.1 b/man1/pldd.1 index a01059e8b..935332e32 100644 --- a/man1/pldd.1 +++ b/man1/pldd.1 @@ -93,7 +93,7 @@ using a command such as the following .in +4n .EX $ \fBgdb \-ex "set confirm off" \-ex "set height 0" \-ex "info shared" \e\fP - \fB\-ex "quit" \-p $pid | grep '\(ha0x.*0x'\fP + \fB\-ex "quit" \-p $pid | grep \(aq\(ha0x.*0x\(aq\fP .EE .in .SH BUGS diff --git a/man2/bpf.2 b/man2/bpf.2 index b45acde76..e67619f73 100644 --- a/man2/bpf.2 +++ b/man2/bpf.2 @@ -209,11 +209,11 @@ union bpf_attr { struct { /* Used by BPF_PROG_LOAD */ __u32 prog_type; __u32 insn_cnt; - __aligned_u64 insns; /* 'const struct bpf_insn *' */ - __aligned_u64 license; /* 'const char *' */ + __aligned_u64 insns; /* \(aqconst struct bpf_insn *\(aq */ + __aligned_u64 license; /* \(aqconst char *\(aq */ __u32 log_level; /* verbosity level of verifier */ __u32 log_size; /* size of user buffer */ - __aligned_u64 log_buf; /* user supplied 'char *' + __aligned_u64 log_buf; /* user supplied \(aqchar *\(aq buffer */ __u32 kern_version; /* checked when prog_type=kprobe @@ -990,7 +990,7 @@ main(int argc, char **argv) map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), 256); if (map_fd < 0) { - printf("failed to create map '%s'\en", strerror(errno)); + printf("failed to create map \(aq%s\(aq\en", strerror(errno)); /* likely not run as root */ return 1; } diff --git a/man2/clone.2 b/man2/clone.2 index 5f6992012..fa5dc7394 100644 --- a/man2/clone.2 +++ b/man2/clone.2 @@ -185,9 +185,9 @@ struct clone_args { u64 pidfd; /* Where to store PID file descriptor (\fIpid_t *\fP) */ u64 child_tid; /* Where to store child TID, - in child's memory (\fIpid_t *\fP) */ + in child\(aqs memory (\fIpid_t *\fP) */ u64 parent_tid; /* Where to store child TID, - in parent's memory (\fIint *\fP) */ + in parent\(aqs memory (\fIint *\fP) */ u64 exit_signal; /* Signal to deliver to parent on child termination */ u64 stack; /* Pointer to lowest byte of stack */ diff --git a/man2/dup.2 b/man2/dup.2 index d004ab3e9..991182854 100644 --- a/man2/dup.2 +++ b/man2/dup.2 @@ -249,23 +249,23 @@ Instead, code something like the following could be used: .PP .in +4n .EX -/* Obtain a duplicate of 'newfd' that can subsequently +/* Obtain a duplicate of \(aqnewfd\(aq that can subsequently be used to check for close() errors; an EBADF error - means that 'newfd' was not open. */ + means that \(aqnewfd\(aq was not open. */ tmpfd = dup(newfd); if (tmpfd == \-1 && errno != EBADF) { /* Handle unexpected dup() error */ } -/* Atomically duplicate 'oldfd' on 'newfd' */ +/* Atomically duplicate \(aqoldfd\(aq on \(aqnewfd\(aq */ if (dup2(oldfd, newfd) == \-1) { /* Handle dup2() error */ } /* Now check for close() errors on the file originally - referred to by 'newfd' */ + referred to by \(aqnewfd\(aq */ if (tmpfd != \-1) { if (close(tmpfd) == \-1) { diff --git a/man2/ioctl_fat.2 b/man2/ioctl_fat.2 index c6b0d49e2..6154d88e3 100644 --- a/man2/ioctl_fat.2 +++ b/man2/ioctl_fat.2 @@ -422,11 +422,11 @@ The following was recorded when applying the program to the directory .in +4n .EX $ \fB./fat_dir /mnt/user\fP -\[char46] -> '' -\[char46]. -> '' -ALONGF\(ti1.TXT -> 'a long filename.txt' -UPPER.TXT -> '' -LOWER.TXT -> 'lower.txt' +\[char46] -> \(aq\(aq +\[char46]. -> \(aq\(aq +ALONGF\(ti1.TXT -> \(aqa long filename.txt\(aq +UPPER.TXT -> \(aq\(aq +LOWER.TXT -> \(aqlower.txt\(aq .EE .in .\" @@ -481,7 +481,7 @@ main(int argc, char *argv[]) /* * Write both the short name and the long name. */ - printf("%s \-> '%s'\en", entry[0].d_name, entry[1].d_name); + printf("%s \-> \(aq%s\(aq\en", entry[0].d_name, entry[1].d_name); } if (ret == \-1) { diff --git a/man2/nfsservctl.2 b/man2/nfsservctl.2 index 628b8f7e0..12bcfe15d 100644 --- a/man2/nfsservctl.2 +++ b/man2/nfsservctl.2 @@ -30,7 +30,7 @@ filesystem; see #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */ #define NFSCTL_EXPORT 3 /* Export a filesystem. */ #define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */ -#define NFSCTL_UGIDUPDATE 5 /* Update a client's UID/GID map +#define NFSCTL_UGIDUPDATE 5 /* Update a client\(aqs UID/GID map (only in Linux 2.4.x and earlier). */ #define NFSCTL_GETFH 6 /* Get a file handle (used by mountd) (only in Linux 2.4.x and earlier). */ diff --git a/man2/open_by_handle_at.2 b/man2/open_by_handle_at.2 index 53c8c7968..011b90b5f 100644 --- a/man2/open_by_handle_at.2 +++ b/man2/open_by_handle_at.2 @@ -504,7 +504,7 @@ The following shell session demonstrates the use of these two programs: .PP .in +4n .EX -$ \fBecho 'Can you please think about it?' > cecilia.txt\fP +$ \fBecho \(aqCan you please think about it?\(aq > cecilia.txt\fP $ \fB./t_name_to_handle_at cecilia.txt > fh\fP $ \fB./t_open_by_handle_at < fh\fP open_by_handle_at: Operation not permitted @@ -528,7 +528,7 @@ no longer exists. $ \fBstat \-\-printf="%i\en" cecilia.txt\fP # Display inode number 4072121 $ \fBrm cecilia.txt\fP -$ \fBecho 'Can you please think about it?' > cecilia.txt\fP +$ \fBecho \(aqCan you please think about it?\(aq > cecilia.txt\fP $ \fBstat \-\-printf="%i\en" cecilia.txt\fP # Check inode number 4072121 $ \fBsudo ./t_open_by_handle_at < fh\fP diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 index aea825706..8aa1b1041 100644 --- a/man2/perf_event_open.2 +++ b/man2/perf_event_open.2 @@ -218,10 +218,10 @@ struct perf_event_attr { inherit : 1, /* children inherit it */ pinned : 1, /* must always be on PMU */ exclusive : 1, /* only group on PMU */ - exclude_user : 1, /* don't count user */ - exclude_kernel : 1, /* don't count kernel */ - exclude_hv : 1, /* don't count hypervisor */ - exclude_idle : 1, /* don't count when idle */ + exclude_user : 1, /* don\(aqt count user */ + exclude_kernel : 1, /* don\(aqt count kernel */ + exclude_hv : 1, /* don\(aqt count hypervisor */ + exclude_idle : 1, /* don\(aqt count when idle */ mmap : 1, /* include mmap data */ comm : 1, /* include comm data */ freq : 1, /* use freq, not period */ @@ -232,8 +232,8 @@ struct perf_event_attr { precise_ip : 2, /* skid constraint */ mmap_data : 1, /* non-exec mmap data */ sample_id_all : 1, /* sample_type all events */ - exclude_host : 1, /* don't count in host */ - exclude_guest : 1, /* don't count in guest */ + exclude_host : 1, /* don\(aqt count in host */ + exclude_guest : 1, /* don\(aqt count in guest */ exclude_callchain_kernel : 1, /* exclude kernel callchains */ exclude_callchain_user : 1, diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 587f42de9..9540d7e20 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -294,7 +294,7 @@ $ \fBmkdir /tmp/rootfs\fP $ \fBls \-id /tmp/rootfs\fP # Show inode number of new root directory 319459 /tmp/rootfs $ \fBcp $(which busybox) /tmp/rootfs\fP -$ \fBPS1='bbsh$ ' sudo ./pivot_root_demo /tmp/rootfs /busybox sh\fP +$ \fBPS1=\(aqbbsh$ \(aq sudo ./pivot_root_demo /tmp/rootfs /busybox sh\fP bbsh$ \fBPATH=/\fP bbsh$ \fBbusybox ln busybox ln\fP bbsh$ \fBln busybox echo\fP diff --git a/man2/request_key.2 b/man2/request_key.2 index ac38617ce..b4f952fe5 100644 --- a/man2/request_key.2 +++ b/man2/request_key.2 @@ -463,7 +463,7 @@ we first create a suitable entry in the file .in +4n .EX $ sudo sh -# \fBecho 'create user mtk:* * /bin/keyctl instantiate %k %c %S' \e\fP +# \fBecho \(aqcreate user mtk:* * /bin/keyctl instantiate %k %c %S\(aq \e\fP \fB> /etc/request\-key.conf\fP # \fBexit\fP .EE diff --git a/man2/sched_setaffinity.2 b/man2/sched_setaffinity.2 index 4f16268f8..77aea5a0e 100644 --- a/man2/sched_setaffinity.2 +++ b/man2/sched_setaffinity.2 @@ -324,7 +324,7 @@ system has two cores, each with two CPUs: .PP .in +4n .EX -$ \fBlscpu | egrep \-i 'core.*:|socket'\fP +$ \fBlscpu | egrep \-i \(aqcore.*:|socket\(aq\fP Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 diff --git a/man2/seccomp.2 b/man2/seccomp.2 index d91dfe9e4..58033da1c 100644 --- a/man2/seccomp.2 +++ b/man2/seccomp.2 @@ -975,7 +975,7 @@ $ \fBuname \-m\fP x86_64 $ \fBsyscall_nr() { cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \e - awk '$2 != "x32" && $3 == "'$1'" { print $1 }' + awk \(aq$2 != "x32" && $3 == "\(aq$1\(aq" { print $1 }\(aq }\fP .EE .in @@ -1059,21 +1059,21 @@ install_filter(int syscall_nr, int t_arch, int f_errno) /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI (in the x32 ABI, all system calls have bit 30 set in the - 'nr' field, meaning the numbers are >= X32_SYSCALL_BIT) */ + \(aqnr\(aq field, meaning the numbers are >= X32_SYSCALL_BIT) */ if (t_arch == AUDIT_ARCH_X86_64) upper_nr_limit = X32_SYSCALL_BIT - 1; struct sock_filter filter[] = { - /* [0] Load architecture from 'seccomp_data' buffer into + /* [0] Load architecture from \(aqseccomp_data\(aq buffer into accumulator */ BPF_STMT(BPF_LD | BPF_W | BPF_ABS, (offsetof(struct seccomp_data, arch))), /* [1] Jump forward 5 instructions if architecture does not - match 't_arch' */ + match \(aqt_arch\(aq */ BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5), - /* [2] Load system call number from 'seccomp_data' buffer into + /* [2] Load system call number from \(aqseccomp_data\(aq buffer into accumulator */ BPF_STMT(BPF_LD | BPF_W | BPF_ABS, (offsetof(struct seccomp_data, nr))), @@ -1084,11 +1084,11 @@ install_filter(int syscall_nr, int t_arch, int f_errno) BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0), /* [4] Jump forward 1 instruction if system call number - does not match 'syscall_nr' */ + does not match \(aqsyscall_nr\(aq */ BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1), - /* [5] Matching architecture and system call: don't execute - the system call, and return 'f_errno' in 'errno' */ + /* [5] Matching architecture and system call: don\(aqt execute + the system call, and return \(aqf_errno\(aq in \(aqerrno\(aq */ BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)), diff --git a/man2/select.2 b/man2/select.2 index 930fd3933..e27c41cee 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -604,7 +604,7 @@ pointer, but is instead a structure of the form: struct { const kernel_sigset_t *ss; /* Pointer to signal set */ size_t ss_len; /* Size (in bytes) of object - pointed to by 'ss' */ + pointed to by \(aqss\(aq */ }; .EE .in @@ -730,7 +730,7 @@ main(void) tv.tv_usec = 0; retval = select(1, &rfds, NULL, NULL, &tv); - /* Don't rely on the value of tv now! */ + /* Don\(aqt rely on the value of tv now! */ if (retval == \-1) perror("select()"); diff --git a/man2/statx.2 b/man2/statx.2 index 1c34a6fe4..09096bee3 100644 --- a/man2/statx.2 +++ b/man2/statx.2 @@ -61,7 +61,7 @@ struct statx { __u64 stx_size; /* Total size in bytes */ __u64 stx_blocks; /* Number of 512B blocks allocated */ __u64 stx_attributes_mask; - /* Mask to show what's supported + /* Mask to show what\(aqs supported in stx_attributes */ /* The following fields are file timestamps */ diff --git a/man3/dl_iterate_phdr.3 b/man3/dl_iterate_phdr.3 index a8a85d8e6..87eb8e563 100644 --- a/man3/dl_iterate_phdr.3 +++ b/man3/dl_iterate_phdr.3 @@ -99,8 +99,8 @@ struct dl_phdr_info { /* If there is a PT_TLS segment, its module ID as used in TLS relocations, else zero */ void *dlpi_tls_data; - /* The address of the calling thread's instance - of this module's PT_TLS segment, if it has + /* The address of the calling thread\(aqs instance + of this module\(aqs PT_TLS segment, if it has one and it has been allocated in the calling thread, otherwise a null pointer */ }; diff --git a/man3/dlinfo.3 b/man3/dlinfo.3 index cdf63b3f3..10e0b3346 100644 --- a/man3/dlinfo.3 +++ b/man3/dlinfo.3 @@ -159,9 +159,9 @@ typedef struct { size_t dls_size; /* Size in bytes of the whole buffer */ unsigned int dls_cnt; /* Number of elements - in 'dls_serpath' */ + in \(aqdls_serpath\(aq */ Dl_serpath dls_serpath[1]; /* Actually longer, - 'dls_cnt' elements */ + \(aqdls_cnt\(aq elements */ } Dl_serinfo; .EE .in diff --git a/man3/dlopen.3 b/man3/dlopen.3 index a66945ac4..3f90fb948 100644 --- a/man3/dlopen.3 +++ b/man3/dlopen.3 @@ -587,7 +587,7 @@ main(void) cosine = (double (*)(double)) dlsym(handle, "cos"); /* According to the ISO C standard, casting between function - pointers and 'void *', as done above, produces undefined results. + pointers and \(aqvoid *\(aq, as done above, produces undefined results. POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and proposed the following workaround: @@ -598,8 +598,8 @@ main(void) The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters by requiring that conforming implementations support casting - 'void *' to a function pointer. Nevertheless, some compilers - (e.g., gcc with the '\-pedantic' option) may complain about the + \(aqvoid *\(aq to a function pointer. Nevertheless, some compilers + (e.g., gcc with the \(aq\-pedantic\(aq option) may complain about the cast used in this program. */ .\" http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 .\" http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 diff --git a/man3/insque.3 b/man3/insque.3 index b49040c1b..28dbfa3fa 100644 --- a/man3/insque.3 +++ b/man3/insque.3 @@ -202,7 +202,7 @@ main(int argc, char *argv[]) circular = 0; while ((opt = getopt(argc, argv, "c")) != \-1) { switch (opt) { - case 'c': + case \(aqc\(aq: circular = 1; break; default: diff --git a/man3/newlocale.3 b/man3/newlocale.3 index 86b961fc6..bcc3b2366 100644 --- a/man3/newlocale.3 +++ b/man3/newlocale.3 @@ -332,8 +332,8 @@ main(int argc, char *argv[]) /* If a second command\-line argument was specified, modify the locale object to take the LC_TIME settings from the locale specified in argv[2]. We assign the result of this newlocale() - call to 'nloc' rather than 'loc', since in some cases, we might - want to preserve 'loc' if this call fails. */ + call to \(aqnloc\(aq rather than \(aqloc\(aq, since in some cases, we might + want to preserve \(aqloc\(aq if this call fails. */ if (argc > 2) { nloc = newlocale(LC_TIME_MASK, argv[2], loc); @@ -365,7 +365,7 @@ main(int argc, char *argv[]) /* Free the locale object */ - uselocale(LC_GLOBAL_HANDLE); /* So 'loc' is no longer in use */ + uselocale(LC_GLOBAL_HANDLE); /* So \(aqloc\(aq is no longer in use */ freelocale(loc); exit(EXIT_SUCCESS); diff --git a/man3/printf.3 b/man3/printf.3 index ce17eaf8e..8254c9939 100644 --- a/man3/printf.3 +++ b/man3/printf.3 @@ -1148,7 +1148,7 @@ make_message(const char *fmt, ...) if (n < 0) return NULL; - /* One extra byte for '\e0' */ + /* One extra byte for \(aq\e0\(aq */ size = (size_t) n + 1; p = malloc(size); diff --git a/man3/pthread_setname_np.3 b/man3/pthread_setname_np.3 index cb86d135b..dcbf17155 100644 --- a/man3/pthread_setname_np.3 +++ b/man3/pthread_setname_np.3 @@ -141,7 +141,7 @@ Created a thread. Default name is: a.out The thread name after setting it is THREADFOO. \fB\(haZ\fP # Suspend the program [1]+ Stopped ./a.out -.RB "$ " "ps H \-C a.out \-o 'pid tid cmd comm'" +.RB "$ " "ps H \-C a.out \-o \(aqpid tid cmd comm\(aq" PID TID CMD COMMAND 5990 5990 ./a.out a.out 5990 5991 ./a.out THREADFOO diff --git a/man3/rpc.3 b/man3/rpc.3 index f931c3d64..9bbc0e998 100644 --- a/man3/rpc.3 +++ b/man3/rpc.3 @@ -264,7 +264,7 @@ will be ignored in all future calls. .IP .in +4n .EX -\fBCLGET_SERVER_ADDR\fP \fIstruct sockaddr_in \fP // get server's address +\fBCLGET_SERVER_ADDR\fP \fIstruct sockaddr_in \fP // get server\(aqs address .EE .in .IP diff --git a/man3/stdarg.3 b/man3/stdarg.3 index 662de73c0..d1391b30e 100644 --- a/man3/stdarg.3 +++ b/man3/stdarg.3 @@ -280,7 +280,7 @@ with each format character based on the type. #include void -foo(char *fmt, ...) /* '...' is C syntax for a variadic function */ +foo(char *fmt, ...) /* \(aq...\(aq is C syntax for a variadic function */ { va_list ap; diff --git a/man3/strfmon.3 b/man3/strfmon.3 index 6af4d0db0..0a24e633e 100644 --- a/man3/strfmon.3 +++ b/man3/strfmon.3 @@ -206,7 +206,7 @@ locales yield .in +4n .EX [ **1234,57 €] [ **1.234,57 EUR] -[ Fr. **1234.57] [ CHF **1'234.57] +[ Fr. **1234.57] [ CHF **1\(aq234.57] [ $**1234.57] [ AUD**1,234.57] [ £**1234.57] [ GBP**1,234.57] .EE diff --git a/man4/veth.4 b/man4/veth.4 index 0f77de53a..2b7680f0f 100644 --- a/man4/veth.4 +++ b/man4/veth.4 @@ -94,7 +94,7 @@ network interface, using commands something like: # \fBethtool \-S ve_A\fP # Discover interface index of peer NIC statistics: peer_ifindex: 16 -# \fBip link | grep '\(ha16:'\fP # Look up interface +# \fBip link | grep \(aq\(ha16:\(aq\fP # Look up interface 16: ve_B@ve_A: mtu 1500 qdisc ... .EE .in diff --git a/man5/proc.5 b/man5/proc.5 index 5e52b038c..649caa539 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -1829,7 +1829,7 @@ and in that shell we create some new mount points: .IP .in +4n .EX -$ \fBPS1='sh1# ' unshare \-Urnm\fP +$ \fBPS1=\(aqsh1# \(aq unshare \-Urnm\fP sh1# \fBmount \-t tmpfs tmpfs /etc\fP # Mount empty tmpfs at /etc sh1# \fBmount \-\-bind /usr /dev\fP # Mount /usr at /dev sh1# \fBecho $$\fP @@ -1843,7 +1843,7 @@ the initial and new namespaces: .IP .in +4n .EX -$ \fBPS1='sh2# ' sudo sh\fP +$ \fBPS1=\(aqsh2# \(aq sudo sh\fP sh2# \fBls /etc | wc \-l\fP # In initial NS 309 sh2# \fBls /proc/27123/root/etc | wc \-l\fP # /etc in other NS @@ -3182,7 +3182,7 @@ driver driver version geometry physical and logical geometry identify in hexadecimal media media type -model manufacturer's model number +model manufacturer\(aqs model number settings drive settings smart_thresholds IDE disk management thresholds (in hex) smart_values IDE disk management values (in hex) diff --git a/man5/slabinfo.5 b/man5/slabinfo.5 index b41e401e8..692db6cce 100644 --- a/man5/slabinfo.5 +++ b/man5/slabinfo.5 @@ -97,7 +97,7 @@ lines of the following form to .PP .in +4n .EX -# \fBecho 'name limit batchcount sharedfactor' > /proc/slabinfo\fP +# \fBecho \(aqname limit batchcount sharedfactor\(aq > /proc/slabinfo\fP .EE .in .PP diff --git a/man7/cgroup_namespaces.7 b/man7/cgroup_namespaces.7 index 1acb82feb..73dea3167 100644 --- a/man7/cgroup_namespaces.7 +++ b/man7/cgroup_namespaces.7 @@ -171,7 +171,7 @@ new cgroup namespace), after which we see the expected results: .PP .in +4n .EX -sh2# \fBmount \-\-make\-rslave /\fP # Don't propagate mount events +sh2# \fBmount \-\-make\-rslave /\fP # Don\(aqt propagate mount events # to other namespaces sh2# \fBumount /sys/fs/cgroup/freezer\fP sh2# \fBmount \-t cgroup \-o freezer freezer /sys/fs/cgroup/freezer\fP diff --git a/man7/cgroups.7 b/man7/cgroups.7 index f189c7a87..31be771dc 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -791,7 +791,7 @@ or '\-' (to disable a controller), as in the following example: .IP .in +4n .EX -echo '+pids \-memory' > x/y/cgroup.subtree_control +echo \(aq+pids \-memory\(aq > x/y/cgroup.subtree_control .EE .in .IP diff --git a/man7/cpuset.7 b/man7/cpuset.7 index 98027e038..cbc6cf76d 100644 --- a/man7/cpuset.7 +++ b/man7/cpuset.7 @@ -1398,7 +1398,7 @@ and then attach the current shell to that cpuset. .RB "$" " /bin/echo 1 > cpuset.mems" .RB "$" " /bin/echo $$ > tasks" # The current shell is now running in cpuset Charlie -# The next line should display '/Charlie' +# The next line should display \(aq/Charlie\(aq .RB "$" " cat /proc/self/cpuset" .EE .in diff --git a/man7/fanotify.7 b/man7/fanotify.7 index 0f63d906a..70477dc41 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -1017,7 +1017,7 @@ been processed. Listening for events. FAN_CREATE (file created): Directory /home/user has been modified. - Entry 'testfile.txt' is not a subdirectory. + Entry \(aqtestfile.txt\(aq is not a subdirectory. All events processed successfully. Program exiting. $ \fBtouch /home/user/testfile.txt\fP # In another terminal @@ -1040,7 +1040,7 @@ flag set and with the created directory name. Listening for events. FAN_CREATE | FAN_ONDIR (subdirectory created): Directory /home/user has been modified. - Entry 'testdir' is a subdirectory. + Entry \(aqtestdir\(aq is a subdirectory. All events processed successfully. Program exiting. $ \fBmkdir \-p /home/user/testdir\fP # In another terminal diff --git a/man7/inotify.7 b/man7/inotify.7 index 241440945..f1578ad7f 100644 --- a/man7/inotify.7 +++ b/man7/inotify.7 @@ -924,7 +924,7 @@ Listening for events stopped. #include #include -/* Read all available inotify events from the file descriptor 'fd'. +/* Read all available inotify events from the file descriptor \(aqfd\(aq. wd is the table of watch descriptors for the directories in argv. argc is the length of wd and argv. argv is the list of watched directories. @@ -1043,7 +1043,7 @@ main(int argc, char* argv[]) wd[i] = inotify_add_watch(fd, argv[i], IN_OPEN | IN_CLOSE); if (wd[i] == \-1) { - fprintf(stderr, "Cannot watch '%s': %s\en", + fprintf(stderr, "Cannot watch \(aq%s\(aq: %s\en", argv[i], strerror(errno)); exit(EXIT_FAILURE); } @@ -1081,7 +1081,7 @@ main(int argc, char* argv[]) /* Console input is available. Empty stdin and quit */ - while (read(STDIN_FILENO, &buf, 1) > 0 && buf != '\en') + while (read(STDIN_FILENO, &buf, 1) > 0 && buf != \(aq\en\(aq) continue; break; } diff --git a/man7/mount_namespaces.7 b/man7/mount_namespaces.7 index 12a3be38e..bdc4c27c6 100644 --- a/man7/mount_namespaces.7 +++ b/man7/mount_namespaces.7 @@ -524,7 +524,7 @@ in the first shell: .EX sh1# \fBmkdir /mntY/c\fP sh1# \fBmount /dev/sda1 /mntY/c\fP -sh1# \fBcat /proc/self/mountinfo | grep '/mnt' | sed 's/ \- .*//'\fP +sh1# \fBcat /proc/self/mountinfo | grep \(aq/mnt\(aq | sed \(aqs/ \- .*//\(aq\fP 132 83 8:23 / /mntX rw,relatime shared:1 133 83 8:22 / /mntY rw,relatime shared:2 174 132 8:3 / /mntX/a rw,relatime shared:3 diff --git a/man7/sock_diag.7 b/man7/sock_diag.7 index a1a2fe7b4..b887647c7 100644 --- a/man7/sock_diag.7 +++ b/man7/sock_diag.7 @@ -725,7 +725,7 @@ print_diag(const struct unix_diag_msg *diag, unsigned int len) if (path_len > sizeof(path) \- 1) path_len = sizeof(path) \- 1; memcpy(path, RTA_DATA(attr), path_len); - path[path_len] = '\e0'; + path[path_len] = \(aq\e0\(aq; } break; @@ -745,7 +745,7 @@ print_diag(const struct unix_diag_msg *diag, unsigned int len) printf(", name=%s%s", *path ? "" : "@", *path ? path : path + 1); - putchar('\en'); + putchar(\(aq\en\(aq); return 0; } diff --git a/man7/user_namespaces.7 b/man7/user_namespaces.7 index 4edfe4602..dfe53db49 100644 --- a/man7/user_namespaces.7 +++ b/man7/user_namespaces.7 @@ -1018,7 +1018,7 @@ and group ID .PP .in +4n .EX -$ \fB./userns_child_exec \-p \-m \-U \-M '0 1000 1' \-G '0 1000 1' bash\fP +$ \fB./userns_child_exec \-p \-m \-U \-M \(aq0 1000 1\(aq \-G \(aq0 1000 1\(aq bash\fP .EE .in .PP @@ -1053,10 +1053,10 @@ and a full set of permitted and effective capabilities: .PP .in +4n .EX -bash$ \fBcat /proc/$$/status | egrep '\(ha[UG]id'\fP +bash$ \fBcat /proc/$$/status | egrep \(aq\(ha[UG]id\(aq\fP Uid: 0 0 0 0 Gid: 0 0 0 0 -bash$ \fBcat /proc/$$/status | egrep '\(haCap(Prm|Inh|Eff)'\fP +bash$ \fBcat /proc/$$/status | egrep \(aq\(haCap(Prm|Inh|Eff)\(aq\fP CapInh: 0000000000000000 CapPrm: 0000001fffffffff CapEff: 0000001fffffffff diff --git a/man8/ld.so.8 b/man8/ld.so.8 index afb694897..e2d3bbd5a 100644 --- a/man8/ld.so.8 +++ b/man8/ld.so.8 @@ -375,7 +375,7 @@ subdirectory below the directory containing the program to be executed: .IP .in +4n .EX -$ \fBLD_LIBRARY_PATH='$ORIGIN/$LIB' prog\fP +$ \fBLD_LIBRARY_PATH=\(aq$ORIGIN/$LIB\(aq prog\fP .EE .in .IP