diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:35:15 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:35:15 +0100 |
| commit | 6f6c027a90fba09f06ea0937b57cfd349661620e (patch) | |
| tree | 55d75d92fdeeb4e3919ddbc4e19ac1e2ee419994 /lib/libc/sys | |
| parent | 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 (diff) | |
Add sys/file.h header and flock implementation
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/Kbuild | 1 | ||||
| -rw-r--r-- | lib/libc/sys/flock.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/sys/Kbuild b/lib/libc/sys/Kbuild index 7e371981..caaf922a 100644 --- a/lib/libc/sys/Kbuild +++ b/lib/libc/sys/Kbuild @@ -11,3 +11,4 @@ obj-y += reboot.o obj-y += sysinfo.o obj-y += umount.o obj-y += umount2.o +obj-y += flock.o diff --git a/lib/libc/sys/flock.c b/lib/libc/sys/flock.c new file mode 100644 index 00000000..4a1ec923 --- /dev/null +++ b/lib/libc/sys/flock.c @@ -0,0 +1,6 @@ +#include <syscall.h> + +int flock(int fildes, int opcode) +{ + return syscall(flock, fildes, opcode); +} |
