⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getlogin.3

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 3
字号:
.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -