diff options
Diffstat (limited to 'man7/inode.7')
| -rw-r--r-- | man7/inode.7 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man7/inode.7 b/man7/inode.7 index 3ed33d28b0..35fdb1c4b2 100644 --- a/man7/inode.7 +++ b/man7/inode.7 @@ -255,14 +255,14 @@ S_IFIFO 0010000 FIFO .PP Thus, to test for a regular file (for example), one could write: .PP -.nf .in +4n +.nf stat(pathname, &sb); if ((sb.st_mode & S_IFMT) == S_IFREG) { /* Handle regular file */ } -.in .fi +.in .PP Because tests of the above form are common, additional macros are defined by POSIX to allow the test of the file type in @@ -294,14 +294,14 @@ socket? (Not in POSIX.1-1996.) .PP The preceding code snippet could thus be rewritten as: .PP -.nf .in +4n +.nf stat(pathname, &sb); if (S_ISREG(sb.st_mode)) { /* Handle regular file */ } -.in .fi +.in .PP The definitions of most of the above file type test macros are provided if any of the following feature test macros is defined: |
