From 000a7c045c98c30aac86db93f8c9c978e5ca8c59 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 14:25:31 -0500 Subject: update standards and safety checks --- src/stdio/rename.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/stdio/rename.c') diff --git a/src/stdio/rename.c b/src/stdio/rename.c index 3a736287..84d0df35 100644 --- a/src/stdio/rename.c +++ b/src/stdio/rename.c @@ -1,13 +1,13 @@ -#if 0 - #include #include +#include "_stdio.h" #include "_syscall.h" /** rename a file **/ int rename(const char *old, const char *new) { + SIGNAL_SAFE(0); SYSCALL(rename, int, -1, old, new, 0, 0, 0, 0); } @@ -20,6 +20,3 @@ ARGUMENT(new). IMPLEMENTATION(Behavior if ARGUMENT(new) exists prior to THIS() being called) STDC(1) */ - - -#endif -- cgit v1.2.1