mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibC: Implement putpwent()
It was previously impossible to (correctly) put an entry into the password file via libc. This patch implements the functionality to do so.
This commit is contained in:
parent
dfaa5ecf81
commit
5f78e2ff3a
Notes:
sideshowbarker
2024-07-19 09:42:21 +09:00
Author: https://github.com/Quaker762
Commit: 5f78e2ff3a
Pull-request: https://github.com/SerenityOS/serenity/pull/1059
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
2 changed files with 27 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <bits/FILE.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
@ -46,5 +47,6 @@ void setpwent();
|
|||
void endpwent();
|
||||
struct passwd* getpwnam(const char* name);
|
||||
struct passwd* getpwuid(uid_t);
|
||||
int putpwent(const struct passwd* p, FILE* stream);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue