Re: [PATCH] man2/getdents.2: Correct linux_dirent definition in example code; it is "unsigned long" earlier up in the file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Chris,

On 5/10/18 11:03 PM, Chris Lamb wrote:
> FIXME: attach files in /tmp/tmp.3KZjK7Sbx2
> 
> Hi,
> 
> Attached is the following:
> 
>   commit b8400aa54a61b59a1df7413e039aec3184fca786
>   Author: Chris Lamb <lamby@xxxxxxxxxx>
>   Date:   Thu May 10 21:58:57 2018 +0100
>   
>       man2/getdents.2: Correct linux_dirent definition in example 
>           code; it is "unsigned long" earlier up in the file
>   
>    man2/getdents.2 | 2 +-
>    1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> You can also merge from the "getdents" branch of
> https://github.com/lamby/man-pages if that is more convenient.

Thanks. Patch applied.

Cheers,

Michael


======

diff --git a/man2/getdents.2 b/man2/getdents.2
index 30bbf9a74..024d147c9 100644
--- a/man2/getdents.2
+++ b/man2/getdents.2
@@ -254,7 +254,7 @@ inode#    file type  d_reclen  d_off   d_name
         do { perror(msg); exit(EXIT_FAILURE); } while (0)
 
 struct linux_dirent {
-    long           d_ino;
+    unsigned long  d_ino;
     off_t          d_off;
     unsigned short d_reclen;
     char           d_name[];


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux