tag 508968 fixed-upstream
thanks

On Sat, Dec 20, 2008 at 4:46 AM, Bastien ROUCARIES
<roucaries.bast...@gmail.com> wrote:
> On Fri, Dec 19, 2008 at 3:40 PM, Michael Kerrisk
> <mtk.manpa...@googlemail.com> wrote:
>> Hi Bastien,
>>
>> On Tue, Dec 16, 2008 at 8:23 PM, Bastien ROUCARIES
>> <roucaries.bast...@gmail.com> wrote:
>>> Package: manpages-dev
>>> Version: 3.05-1
>>> Severity: wishlist
>>>
>>> Please clarify that before 2.6.4 d-type is DT_UNKNOW.
>>
>> I don't really see what the problem is here.  The man page already
>> says that the d_type field is only available since 2.6.4.  Why do you
>> not think that is sufficient?
>
> Even if the d_field is available since 2.6.4, we could retrieve
> safelly it. Because kernel pad with \0 and therefore it will give
> DT_UNKNOW. Therefore before 2.6.4 this field is available but alway
> initialized to DT_UNKNOW.

Okay, for man-pages-3.17, I've applied the patch below.  Look okay to you?

Cheers,

Michael

--- a/man2/getdents.2
+++ b/man2/getdents.2
@@ -115,6 +115,16 @@ This is a Unix domain socket.
 .B DT_UNKNOWN
 The file type is unknown.
 .PP
+The
+.I d_type
+field is implemented since Linux 2.6.4.
+It occupies a space that was previously a zero-filled padding byte in the
+.IR linux_dirent
+structure.
+Thus, on kernels before 2.6.3,
+attempting to access this field always provides the value 0
+.RB ( DT_UNKNOWN ).
+.PP
 Currently,
 .\" kernel 2.6.27
 .\" The same sentence is in readdir.2



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to