[haiku-bugs] Re: [Haiku] #10991: readdir (dirent.h) does not have d_type

  • From: "pdziepak" <trac@xxxxxxxxxxxx>
  • Date: Tue, 01 Jul 2014 13:56:10 -0000

#10991: readdir (dirent.h) does not have d_type
----------------------------+----------------------------
   Reporter:  waddlesplash  |      Owner:  nobody
       Type:  enhancement   |     Status:  closed
   Priority:  normal        |  Milestone:  R1
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:  invalid       |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by pdziepak):

 I don't see any problems here. If the filesystem supports d_type then
 everyone is happy and the application after one syscall gets types of
 multiple files. If d_type is not supported DT_UNKNOWN is returned and app
 has to call stat for all files it is interested in, exactly like it has to
 do now. What's wrong with that?

 The only real obstacle to adding this filed is, as Axel said, binary
 compatibility.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10991#comment:6>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: