1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 09:27:34 +00:00

LibC: Implemented getc_unlocked, stubbed flockfile

Implemented getc_unlocked and stubbed out flockfile() and funlockfile().
This commit is contained in:
Brandon Scott 2019-11-16 04:39:36 -06:00 committed by Andreas Kling
parent bda36853c9
commit 3069988a75
2 changed files with 24 additions and 4 deletions

View file

@ -140,6 +140,11 @@ int getc(FILE* stream)
return fgetc(stream);
}
int getc_unlocked(FILE* stream)
{
return fgetc(stream);
}
int getchar()
{
return getc(stdin);
@ -616,6 +621,18 @@ int vfscanf(FILE* stream, const char* fmt, va_list ap)
return vsscanf(buffer, fmt, ap);
}
void flockfile(FILE* filehandle)
{
(void)filehandle;
dbgprintf("FIXME: Implement flockfile()\n");
}
void funlockfile(FILE* filehandle)
{
(void)filehandle;
dbgprintf("FIXME: Implement funlockfile()\n");
}
FILE* tmpfile()
{
dbgprintf("FIXME: Implement tmpfile()\n");

View file

@ -56,6 +56,7 @@ int fputc(int ch, FILE*);
int fileno(FILE*);
int fgetc(FILE*);
int getc(FILE*);
int getc_unlocked(FILE* stream);
int getchar();
ssize_t getdelim(char**, size_t*, int, FILE*);
ssize_t getline(char**, size_t*, FILE*);
@ -64,6 +65,8 @@ int remove(const char* pathname);
FILE* fdopen(int fd, const char* mode);
FILE* fopen(const char* pathname, const char* mode);
FILE* freopen(const char* pathname, const char* mode, FILE*);
void flockfile(FILE* filehandle);
void funlockfile(FILE* filehandle);
int fclose(FILE*);
void rewind(FILE*);
void clearerr(FILE*);