1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

A bunch of LibC boilerplate stuff added while trying to get figlet to build.

This commit is contained in:
Andreas Kling 2018-10-31 02:09:11 +01:00
parent 511ed4c4de
commit bb90c8ecab
23 changed files with 117 additions and 45 deletions

View file

@ -1,8 +1,9 @@
#pragma once
#include "types.h"
#include <sys/cdefs.h>
#include <sys/types.h>
extern "C" {
__BEGIN_DECLS
uid_t getuid();
gid_t getgid();
@ -14,7 +15,7 @@ int close(int fd);
pid_t waitpid(pid_t, int* wstatus, int options);
int chdir(const char* path);
char* getcwd(char* buffer, size_t size);
int lstat(const char* path, stat* statbuf);
int lstat(const char* path, struct stat* statbuf);
int sleep(unsigned seconds);
int gethostname(char*, size_t);
ssize_t readlink(const char* path, char* buffer, size_t);
@ -62,4 +63,5 @@ int ttyname_r(int fd, char* buffer, size_t);
#define O_DIRECTORY 00200000
#define O_NOFOLLOW 00400000
}
__END_DECLS