HomeSort by: relevance | last modified time | path
    Searched refs:pwd (Results 1 - 25 of 580) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/ibm-public/postfix/dist/src/util/
username.c 32 #include <pwd.h>
43 struct passwd *pwd; local
46 if ((pwd = getpwuid(uid)) == 0)
48 return (pwd->pw_name);
chroot_uid.c 34 #include <pwd.h>
47 struct passwd *pwd; local
56 if ((pwd = getpwnam(user_name)) == 0)
58 uid = pwd->pw_uid;
59 gid = pwd->pw_gid;
fullname.c 41 #include <pwd.h>
60 struct passwd *pwd; local
75 if ((pwd = getpwuid(uid)) == 0)
85 for (cp = pwd->pw_gecos; (ch = *(unsigned char *) cp) != 0; cp++) {
89 if (pwd->pw_name[0]) {
90 VSTRING_ADDCH(result, TOUPPER(pwd->pw_name[0]));
91 vstring_strcat(result, pwd->pw_name + 1);
  /src/external/mit/libuv/dist/test/
test-get-passwd.c 36 uv_passwd_t pwd; local
41 r = uv_os_get_passwd(&pwd);
43 len = strlen(pwd.username);
47 ASSERT_NULL(pwd.shell);
49 len = strlen(pwd.shell);
55 len = strlen(pwd.homedir);
59 if (len == 3 && pwd.homedir[1] == ':')
60 ASSERT_EQ(pwd.homedir[2], '\\');
62 ASSERT_NE(pwd.homedir[len - 1], '\\');
65 ASSERT_EQ(pwd.homedir[0], '/')
110 uv_passwd_t pwd; local
176 uv_passwd_t pwd; local
    [all...]
  /src/tools/compat/
setpassent.c 6 #include <pwd.h>
  /src/crypto/external/bsd/heimdal/dist/lib/roken/
get_default_username.c 66 struct passwd *pwd; local
69 pwd = k_getpwnam (user);
70 if (pwd != NULL && pwd->pw_uid == uid)
73 pwd = k_getpwuid (uid);
74 if (pwd != NULL)
75 return pwd->pw_name;
getxxyyy.c 52 copypw(struct passwd *pwd, char *buffer, size_t bufsize, const struct passwd *p)
63 memset(pwd, 0, sizeof(*pwd));
70 pwd->el = buffer; \
78 pwd->pw_uid = p->pw_uid;
79 pwd->pw_gid = p->pw_gid;
91 rk_getpwnam_r(const char *name, struct passwd *pwd, char *buffer,
103 copypw(pwd, buffer, bufsize, p);
105 *result = pwd;
117 rk_getpwnam_r(const char *name, struct passwd *pwd, char *buffer
158 struct passwd pwd, *result; local
    [all...]
  /src/tests/lib/librumphijack/
h_cwd.c 43 static char pwd[1024]; variable
84 if (getcwd(pwd, sizeof(pwd)) == NULL)
86 if (strcmp(pwd, prefix) != 0)
92 if (getcwd(pwd, sizeof(pwd)) == NULL)
94 if (strcmp(pwd, makepath("dir")) != 0)
100 if (getcwd(pwd, sizeof(pwd)) == NULL)
102 if (strcmp(pwd, makepath("dir/dir")) != 0
    [all...]
  /src/usr.bin/newgrp/
newgrp.c 43 #include <pwd.h>
66 struct passwd *pwd; local
76 pwd = getpwuid(uid);
77 if (pwd == NULL)
81 if ((lc = login_getclass(pwd->pw_class)) == NULL)
82 errx(EXIT_FAILURE, "%s: unknown login class", pwd->pw_class);
106 pwd->pw_gid = newgrp(*argv, pwd);
107 addgrp(pwd->pw_gid);
108 if (setgid(pwd->pw_gid) < 0
    [all...]
  /src/crypto/external/bsd/heimdal/dist/lib/otp/
otp_md.h 38 int otp_md4_init (OtpKey key, const char *pwd, const char *seed);
42 int otp_md5_init (OtpKey key, const char *pwd, const char *seed);
46 int otp_sha_init (OtpKey key, const char *pwd, const char *seed);
  /src/external/bsd/openpam/dist/lib/libpam/
openpam_borrow_cred.c 49 #include <pwd.h>
66 const struct passwd *pwd)
72 ENTERN(pwd->pw_uid);
79 if (geteuid() != 0 && geteuid() != pwd->pw_uid) {
100 if (geteuid() == pwd->pw_uid)
102 if (initgroups(pwd->pw_name, pwd->pw_gid) < 0 ||
103 setegid(pwd->pw_gid) < 0 || seteuid(pwd->pw_uid) < 0) {
121 * switches to those of the user specified by its =pwd argument
    [all...]
  /src/bin/pwd/
pwd.c 1 /* $NetBSD: pwd.c,v 1.23 2021/11/16 16:57:15 kre Exp $ */
40 static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94";
42 __RCSID("$NetBSD: pwd.c,v 1.23 2021/11/16 16:57:15 kre Exp $");
66 * (Some scripts run /bin/pwd in order to get 'pwd -P'.)
121 char *pwd; local
124 /* Check $PWD -- if it's right, it's fast. */
125 pwd = getenv("PWD");
126 if (pwd == NULL
    [all...]
  /src/distrib/utils/libhack/
getpwent.c 66 #include <pwd.h>
98 struct passwd **pwd)
106 *pwd = NULL;
108 *pwd = pwres;
115 struct passwd *pwd; local
117 &pwd) == 0 ? pwd : NULL;
122 struct passwd **pwd)
132 *pwd = NULL;
134 *pwd = pwres
141 struct passwd *pwd; local
    [all...]
  /src/usr.bin/su/
su.c 53 #include <pwd.h>
105 struct passwd *pwd; local
186 if (username == NULL || (pwd = getpwnam(username)) == NULL ||
187 pwd->pw_uid != ruid)
188 pwd = getpwuid(ruid);
189 if (pwd == NULL)
191 username = estrdup(pwd->pw_name);
193 userpass = estrdup(pwd->pw_passwd);
197 if (pwd->pw_shell && *pwd->pw_shell)
    [all...]
  /src/lib/libpam/modules/pam_unix/
pam_unix.c 52 #include <pwd.h>
88 struct passwd *pwd, pwres; local
93 pwd = NULL;
96 &pwd); local
102 (void) getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd);
105 if (pwd != NULL) {
107 realpw = pwd->pw_passwd;
118 lc = login_getpwclass(pwd);
148 struct passwd *pwd, pwres; local
161 getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd) != 0 |
407 struct passwd *pwd, new_pwd, old_pwd; local
    [all...]
  /src/external/gpl3/binutils/dist/libiberty/
getpwd.c 62 /* Get the working directory. Use the PWD environment variable if it's
70 static char *pwd; local
73 char *p = pwd;
79 if (! ((p = getenv ("PWD")) != 0
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
  /src/external/gpl3/binutils.old/dist/libiberty/
getpwd.c 62 /* Get the working directory. Use the PWD environment variable if it's
70 static char *pwd; local
73 char *p = pwd;
79 if (! ((p = getenv ("PWD")) != 0
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
  /src/external/gpl3/gcc/dist/libiberty/
getpwd.c 62 /* Get the working directory. Use the PWD environment variable if it's
70 static char *pwd; local
73 char *p = pwd;
79 if (! ((p = getenv ("PWD")) != 0
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
  /src/external/gpl3/gcc.old/dist/libiberty/
getpwd.c 62 /* Get the working directory. Use the PWD environment variable if it's
70 static char *pwd; local
73 char *p = pwd;
79 if (! ((p = getenv ("PWD")) != 0
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
  /src/external/gpl3/gdb/dist/libiberty/
getpwd.c 62 /* Get the working directory. Use the PWD environment variable if it's
70 static char *pwd; local
73 char *p = pwd;
79 if (! ((p = getenv ("PWD")) != 0
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
  /src/external/gpl3/gdb.old/dist/libiberty/
getpwd.c 62 /* Get the working directory. Use the PWD environment variable if it's
70 static char *pwd; local
73 char *p = pwd;
79 if (! ((p = getenv ("PWD")) != 0
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
  /src/lib/libpam/modules/pam_chroot/
pam_chroot.c 46 #include <pwd.h>
63 struct passwd *pwd, pwres; local
69 getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd) != 0 ||
70 pwd == NULL)
72 if (pwd->pw_uid == 0 && !openpam_get_option(pamh, "also_root"))
74 if (pwd->pw_dir == NULL)
76 if ((end = strstr(pwd->pw_dir, "/./")) != NULL) {
78 (int)(end - pwd->pw_dir), pwd->pw_dir) > (int)sizeof(buf)) {
  /src/external/bsd/openldap/dist/servers/slapd/
user.c 32 #include <pwd.h>
56 struct passwd *pwd; local
69 pwd = getpwuid( uid );
75 pwd = getpwnam( user );
77 if ( pwd == NULL ) {
84 user = (pwd != NULL ? pwd->pw_name : NULL);
87 uid = pwd->pw_uid;
90 gid = pwd->pw_gid;
  /src/external/bsd/openldap/dist/contrib/ldapc++/src/
LDAPRebindAuth.cpp 14 LDAPRebindAuth::LDAPRebindAuth(const string& dn, const string& pwd){
17 << " pwd:" << pwd << endl);
19 m_password=pwd;
  /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/sys/openbsd/
pwd.d 2 * D header file for OpenBSD pwd.h.
8 module core.sys.openbsd.pwd;
15 public import core.sys.posix.pwd;

Completed in 69 milliseconds

1 2 3 4 5 6 7 8 91011>>