rework langinfo code for ABI compat and for use by time code
[musl] / src / stdio / remove.c
1 #include <stdio.h>
2 #include <errno.h>
3 #include "syscall.h"
4
5 int remove(const char *path)
6 {
7         int r = syscall(SYS_unlink, path);
8         return (r && errno == EISDIR) ? syscall(SYS_rmdir, path) : r;
9 }