mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:57:35 +00:00
Add getpwent() family of functions to LibC.
Also add a little /etc/passwd database. There's just me in there.
This commit is contained in:
parent
819ce91395
commit
9886b27d9c
17 changed files with 175 additions and 25 deletions
|
@ -42,7 +42,7 @@ char* fgets(char* buffer, int size, FILE* stream)
|
|||
int fgetc(FILE* stream)
|
||||
{
|
||||
char ch;
|
||||
read(stream->fd, &ch, 1);
|
||||
fread(&ch, sizeof(char), 1, stream);
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue