getpwnam.h

来自「wu-ftpd类unix下的ftp服务器,可用于嵌入式系统」· C头文件 代码 · 共 24 行

H
24
字号
/* * Replacement for getpwnam - we need it to handle files other than * /etc/passwd so we can permit different passwd files for each different * host * (c) 1998-2000 by Bernhard Rosenkr鋘zer <bero@redhat.com> * 19980930	Initial version * 20000211	Various fixes */#include <pwd.h>#include <sys/types.h>#include <stdio.h>#ifdef SHADOW_PASSWORD# ifdef HAVE_SHADOW_H#  include <shadow.h># endif#endifstruct passwd *bero_getpwnam(const char * name, const char * file);struct passwd *bero_getpwuid(uid_t uid, const char * file);#ifdef SHADOW_PASSWORDstruct spwd *bero_getspnam(const char * name, const char * file);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?