math: raise flags in log2l.c on <= 0 arguments, and fix volatile
[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 }