diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-18 16:40:51 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-18 16:40:51 -0800 |
commit | 5bcc08d92ae9345d6863f555a3dd9ec960e0860f (patch) | |
tree | c0fc5dba61ee770d5757ffb9702d61d277d122a1 /sys/src/infofd.c | |
parent | 4bf477d5ed372fd44697d2f0df245b61b4f3f7b3 (diff) |
feat: filling out system layer's interface
Diffstat (limited to 'sys/src/infofd.c')
-rw-r--r-- | sys/src/infofd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/src/infofd.c b/sys/src/infofd.c new file mode 100644 index 0000000..8b2973b --- /dev/null +++ b/sys/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); +} |