[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]

 



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.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@xxxxxxxxxx / chris-lamb.co.uk
       `-
From b8400aa54a61b59a1df7413e039aec3184fca786 Mon Sep 17 00:00:00 2001
From: Chris Lamb <chris@xxxxxxxxxxxxxxxx>
Date: Thu, 10 May 2018 21:58:57 +0100
Subject: [PATCH] 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(-)

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[];
-- 
2.17.0


[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