projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
passwd
/
putpwent.c
1
#include <pwd.h>
2
#include <stdio.h>
3
4
int putpwent(const struct passwd *pw, FILE *f)
5
{
6
return fprintf(f, "%s:%s:%d:%d:%s:%s:%s\n",
7
pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid,
8
pw->pw_gecos, pw->pw_dir, pw->pw_shell)<0 ? -1 : 0;
9
}