getlogin.3
来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 3 代码 · 共 43 行
3
43 行
.TH GETLOGIN 3 .SH NAMEgetlogin \- get login name.SH SYNOPSIS.B char *getlogin();.SH DESCRIPTION.I Getloginreturns a pointer tothe login nameas found in.IR /etc/utmp .It may be usedin conjunctionwith.I getpwnamto locate the correctpassword file entrywhen the same useridis shared by severallogin names..PPIf.I getloginis called within a processthat is not attached to atypewriter, it returns NULL.The correct procedurefor determining the login nameis to first call.I getloginand if it fails,to call.IR getpwuid ..SH FILES/etc/utmp.SH "SEE ALSO"getpwent(3), getgrent(3), utmp(5).SH DIAGNOSTICSReturns NULL (0) if name not found..SH BUGSThe return values point to static datawhose content is overwritten by each call.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?