This website requires JavaScript.
Explore
Help
Sign In
hasufell
/
hpath
Watch
1
Star
1
Fork
0
You've already forked hpath
Code
Issues
8
Pull Requests
Releases
Wiki
Activity
54bea3b9c2
hpath
/
hpath-posix
/
cbits
/
dirutils.c
8 lines
115 B
C
Raw
Normal View
History
Unescape
Escape
Add hpath-directory
2020-01-26 19:00:33 +00:00
#
include
"dirutils.h"
Fix humongous bug with fdopendir on mac https://opensource.apple.com/source/Libc/Libc-1244.1.7/include/dirent.h.auto.html ccall picks the wrong one, causes crashes and truncated d_name entries. Wrapping the function in a small C shim, as well as using the CAPI, fixes this.
2020-04-14 15:07:35 +00:00
Add hpath-directory
2020-01-26 19:00:33 +00:00
unsigned
int
__posixdir_d_type
(
struct
dirent
*
d
)
{
return
(
d
-
>
d_type
)
;
}
Reference in New Issue
Copy Permalink