getpwent.3
来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 3 代码 · 共 72 行
3
72 行
.TH GETPWENT 3 .SH NAMEgetpwent, getpwuid, getpwnam, setpwent, endpwent\- get password file entry.SH SYNOPSIS.B #include <pwd.h>.PP.B struct passwd *getpwent();.PP.B struct passwd *getpwuid(uid) int uid;.PP.B struct passwd *getpwnam(name) char *name;.PP.B int setpwent();.PP.B int endpwent();.SH DESCRIPTION.I Getpwent,.I getpwuidand.I getpwnameach return a pointer to an object with thefollowing structurecontaining the broken-outfields of a line in the password file..RS.PP.nf.so /usr/include/pwd.h.ft R.ad.fi.RE.PPThe fields.I pw_quotaand.I pw_commentare unused; the others have meanings described in.IR passwd (5)..PP.I Getpwentreads the nextline (opening the file if necessary);.I setpwentrewinds the file;.I endpwentcloses it..PP.I Getpwuidand.I getpwnamsearch from the beginning until a matching.I uidor.I nameis found(or until EOF is encountered)..SH FILES/etc/passwd.SH "SEE ALSO"getlogin(3), getgrent(3), passwd(5).SH DIAGNOSTICSNull pointer(0) returned on EOF or error..SH BUGSAll informationis contained in a static areaso it must be copied if it isto be saved..br
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?