1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibC: Add truncate().

Implemented in user space for now.
This commit is contained in:
Nico Weber 2020-06-15 11:28:42 -04:00 committed by Andreas Kling
parent 246e0e47ec
commit 9825f7792b
2 changed files with 14 additions and 0 deletions

View file

@ -127,6 +127,7 @@ char* getlogin();
int chown(const char* pathname, uid_t, gid_t);
int fchown(int fd, uid_t, gid_t);
int ftruncate(int fd, off_t length);
int truncate(const char* path, off_t length);
int halt();
int reboot();
int mount(int source_fd, const char* target, const char* fs_type, int flags);