📄 getpwent.3
字号:
.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -