bitwiseworks / libc

LIBC Next (kLIBC fork)
9 stars 4 forks source link

scandir() #52

Closed SilvanScherrer closed 2 years ago

SilvanScherrer commented 4 years ago

scandir() is defined in dirent.h, but we lack the real function. @komh did one in his os2-compart repo. See https://github.com/komh/os2compat/blob/master/io/scandir.c. I guess we should add this t libc

SilvanScherrer commented 4 years ago

Just got the 2nd port which needs it.

SilvanScherrer commented 3 years ago

3rd port

SilvanScherrer commented 3 years ago

See also https://github.com/bitwiseworks/libsolv-os2/commit/2d59da1c2c3f1a6e41747062360d006f2fc1c051

dmik commented 2 years ago

Note that I also aligned scandir and alphasort declarations to current FreeBSD (https://github.com/freebsd/freebsd-src/blob/de1aa3dab23c06fec962a14da3e7b4755c5880cf/include/dirent.h).