1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* * Copyright (C) 2020 Embecosm Limited * SPDX-License-Identifier: BSD-2-Clause */ #include <machine/syscall.h> #include "semihost_syscall.h" #include <string.h> /* Remove a file's directory entry. */ int _unlink (const char *name) { long data_block[] = {(long) name, strlen (name)}; return syscall_errno (SEMIHOST_remove, data_block); }