mirror of
git://git.musl-libc.org/musl
synced 2024-11-27 03:53:58 +08:00
fix mismatched type in posix_getdents definition
commit 1b0d48517f
wrongly copied the
getdents return type of int rather than matching the ssize_t used by
posix_getdents. this was overlooked in testing on 32-bit archs but
obviously broke 64-bit archs.
This commit is contained in:
parent
cbf59dd662
commit
0079972992
@ -3,7 +3,7 @@
|
||||
#include <errno.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int posix_getdents(int fd, void *buf, size_t len, int flags)
|
||||
ssize_t posix_getdents(int fd, void *buf, size_t len, int flags)
|
||||
{
|
||||
if (flags) return __syscall_ret(-EOPNOTSUPP);
|
||||
if (len>INT_MAX) len = INT_MAX;
|
||||
|
Loading…
Reference in New Issue
Block a user