aboutsummaryrefslogtreecommitdiff
path: root/libgloss/riscv/sys_unlink.c
blob: 1cf6bbe8b99089500dc2f5fd0c0ada9f7ad83a2a (plain)
1
2
3
4
5
6
7
8
9
#include <machine/syscall.h>
#include "internal_syscall.h"

/* Remove a file's directory entry.  */
int
_unlink(const char *name)
{
  return syscall_errno (SYS_unlink, 1, name, 0, 0, 0, 0, 0);
}