Welcome to mirror list, hosted at ThFree Co, Russian Federation.

semihost-sys_unlink.c « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d2a6a0f9e3861ca8b054a53c39b4aeaf094fcc1 (plain)
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);
}