mescc: unlink: Move to libc.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 11 Nov 2018 10:00:42 +0000 (11:00 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 11 Nov 2018 10:00:42 +0000 (11:00 +0100)
* lib/linux/libc.c (unlink): New function.
* lib/linux/tcc.c (unlink): Remove.

lib/linux/libc.c
lib/linux/tcc.c

index 0e093ec3ae5f993a92e4a423c80234eb17c08b8f..da7383e7456ea3a677c234ea224ea0fffcfdba20 100644 (file)
@@ -171,6 +171,12 @@ dup2 (int old, int new)
   return _sys_call2 (SYS_dup2, (int)old, (int)new);
 }
 
+int
+unlink (char const *file_name)
+{
+  return _sys_call1 (SYS_unlink, (long)file_name);
+}
+
 #include "linux/clock_gettime.c"
 #include "linux/gettimeofday.c"
 #include "linux/time.c"
index dcc182a19c50b799b2c3b69a1d234d431d23590c..7c49ba98ef2d1954482ead83658ddb98d3e28db4 100644 (file)
@@ -37,12 +37,6 @@ lseek (int filedes, off_t offset, int whence)
   return _sys_call3 (SYS_lseek, (int)filedes, (long)offset, (int)whence);
 }
 
-int
-unlink (char const *file_name)
-{
-  return _sys_call1 (SYS_unlink, (long)file_name);
-}
-
 int
 rmdir (char const *file_name)
 {