From 620d37f41747e943648544d1fd1567d386c91e04 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 17 Apr 2024 17:06:16 +0200 Subject: Kernel/LibC: Add fstat() and remove stat() syscall --- userland/libc/include/syscall.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'userland/libc/include') diff --git a/userland/libc/include/syscall.h b/userland/libc/include/syscall.h index 1e8c86c..245b482 100644 --- a/userland/libc/include/syscall.h +++ b/userland/libc/include/syscall.h @@ -28,7 +28,7 @@ #define SYS_SOCKET 20 #define SYS_SHM_OPEN 21 #define SYS_FTRUNCATE 22 -#define SYS_STAT 23 +#define SYS_FSTAT 23 #define SYS_MSLEEP 24 #define SYS_UPTIME 25 #define SYS_MKDIR 26 @@ -167,9 +167,4 @@ typedef struct SYS_FTRUNCATE_PARAMS { int fildes; size_t length; } __attribute__((packed)) SYS_FTRUNCATE_PARAMS; - -typedef struct SYS_STAT_PARAMS { - const char *pathname; - struct stat *statbuf; -} __attribute__((packed)) SYS_STAT_PARAMS; #endif -- cgit v1.2.3