xref: /third_party/musl/src/unistd/symlink.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/unistd/
1570af302Sopenharmony_ci#include <unistd.h>
2570af302Sopenharmony_ci#include <fcntl.h>
3570af302Sopenharmony_ci#include "syscall.h"
4570af302Sopenharmony_ci
5570af302Sopenharmony_ciint symlink(const char *existing, const char *new)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci#ifdef SYS_symlink
8570af302Sopenharmony_ci	return syscall(SYS_symlink, existing, new);
9570af302Sopenharmony_ci#else
10570af302Sopenharmony_ci	return syscall(SYS_symlinkat, existing, AT_FDCWD, new);
11570af302Sopenharmony_ci#endif
12570af302Sopenharmony_ci}
13

Indexes created Thu Nov 07 10:32:03 CST 2024