diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-19 05:44:21 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-19 05:44:21 -0800 |
commit | 59d87ccc99f431da06a0ffab0d3e702d9ef82f48 (patch) | |
tree | e13de4f7e86cc731add3b3d3bcf3b32ce22adefc /sys/linux/src/infofd.c | |
parent | 835dea0eb6333a9ef452881ea073bfe59d14096a (diff) |
chore: make dependence on static syscalls explicit
Diffstat (limited to 'sys/linux/src/infofd.c')
-rw-r--r-- | sys/linux/src/infofd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/linux/src/infofd.c b/sys/linux/src/infofd.c new file mode 100644 index 0000000..8b2973b --- /dev/null +++ b/sys/linux/src/infofd.c @@ -0,0 +1,10 @@ +#include "internal.h" +#include <linux/stat.h> + +int +sys·infofd(int fd, sys·Info *file) +{ + if(fd < 0) + return sys·ErrorBadFd; + return sys·infoat(fd, "", sys·AtEmptyPath, sys·InfoAll, file); +} |