15 lines
348 B
C
15 lines
348 B
C
/*
|
|
* 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);
|
|
}
|