/external/one-true-awk/testdir/ |
D | T.redir | 5 $awk '{ print >"foo" }' /etc/passwd 6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")' 9 $awk '{ print >>"foo" }' /etc/passwd 10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")' 14 NR%2 == 0 { print >"foo" }' /etc/passwd 15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")' 18 $awk '{ print | "cat >foo" }' /etc/passwd 19 diff foo /etc/passwd || echo 'BAD: T.redir (print | "cat >foo")' 31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2 32 diff foo2 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stderr")' [all …]
|
D | T.getline | 27 while (getline <"/etc/passwd") 32 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <file)' 34 cat /etc/passwd | $awk ' 41 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <"-")' 49 ' /etc/passwd >foo 50 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <arg)' 58 ' /etc/passwd >foo 59 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline x <arg)' 67 ' /etc/passwd >foo 68 cmp -s /etc/passwd foo || echo 'BAD: T.getline (cat arg | getline)' [all …]
|
D | T.-f-f | 14 echo '/a/' | $awk -f - /etc/passwd >foo1 15 $awk '/a/' /etc/passwd >foo2 19 cp /etc/passwd foo1 23 $awk -f foo2 -f foo3 -f foo4 /etc/passwd >foo5 34 $awk -f foo2 -f foo3 -f foo4 /etc/passwd >foo5 2>foo6
|
D | T.close | 6 $awk '{ print >>"foo"; close("foo") }' /etc/passwd 7 diff /etc/passwd foo || echo 'BAD: T.close (1)' 16 BEGIN { getline <"/etc/passwd"; print close("/etc/passwd"); }
|
/external/trusty/musl/include/ |
D | pwd.h | 20 struct passwd { struct 33 struct passwd *getpwent (void); argument 36 struct passwd *getpwuid (uid_t); 37 struct passwd *getpwnam (const char *); 38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **); 39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **); 42 struct passwd *fgetpwent(FILE *); 43 int putpwent(const struct passwd *, FILE *);
|
/external/musl/include/ |
D | pwd.h | 20 struct passwd { struct 33 struct passwd *getpwent (void); argument 36 struct passwd *getpwuid (uid_t); 37 struct passwd *getpwnam (const char *); 38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **); 39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **); 42 struct passwd *fgetpwent(FILE *); 43 int putpwent(const struct passwd *, FILE *);
|
/external/linux-kselftest/tools/testing/selftests/openat2/ |
D | resolve_test.c | 31 * | `-- passwd 34 * |-- relsym -> etc/passwd 36 * |-- abssym -> /etc/passwd 42 * |-- passwd -> ../cheeky/../cheeky/../etc/../etc/passwd 43 * |-- abspasswd -> /../cheeky/../cheeky/../etc/../etc/passwd 44 * |-- dotdotlink -> ../../../../../../../../../../../../../../etc/passwd 45 * `-- garbagelink -> /../../../../../../../../../../../../../../etc/passwd 83 E_touchat(dfd, "etc/passwd"); in setup_testdir() 87 E_symlinkat("etc/passwd", dfd, "relsym"); in setup_testdir() 89 E_symlinkat("/etc/passwd", dfd, "abssym"); in setup_testdir() [all …]
|
/external/toybox/tests/ |
D | useradd.test | 25 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] && 31 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] && 37 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] && 43 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] && 50 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] && 56 grep '^$user:.*dir' /etc/passwd $arg && [ -d $PWD/dir ] && 63 grep '^$user:.*$gecos' /etc/passwd $arg && [ -d /home/$user ] && 69 grep '^$user:.*$shl$' /etc/passwd $arg && [ -d /home/$user ] && 76 grep '^$user:.*:.*:$g_id:.*' /etc/passwd $arg && [ -d /home/$user ] && 81 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ ! -e /home/$user ] && [all …]
|
/external/scrypt/patches/ |
D | use_openssl_pbkdf2.patch | 17 @@ -256,7 +260,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen, 22 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B… 24 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); 29 @@ -265,7 +273,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen, 34 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, B, p * 128 * r, 1, EVP_sha256(), buflen, buf); 36 PBKDF2_SHA256(passwd, passwdlen, B, p * 128 * r, 1, buf, buflen); 57 @@ -332,7 +336,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen, 62 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B… 64 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); 69 @@ -341,7 +349,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen, [all …]
|
/external/ltp/ |
D | IDcheck.sh | 41 passwd="$DESTDIR/etc/passwd" 72 for i in "$passwd" "$group"; do 79 fe root "$passwd"; NO_ROOT_ID=$? 80 fe bin "$passwd"; NO_BIN_ID=$? 81 fe daemon "$passwd"; NO_DAEMON_ID=$? 82 fe nobody "$passwd"; NO_NOBODY_ID=$? 97 echo "Password file: $passwd" 115 if ! touch "$group" "$passwd" 2>/dev/null; then 116 echo "Failed to touch $group or $passwd" 131 if ! fe "$name" "$passwd" && [ $no_id -ne 0 ] ; then [all …]
|
/external/trusty/musl/src/passwd/ |
D | getpwent.c | 5 static struct passwd pw; 16 struct passwd *getpwent() in getpwent() 18 struct passwd *res; in getpwent() 19 if (!f) f = fopen("/etc/passwd", "rbe"); in getpwent() 25 struct passwd *getpwuid(uid_t uid) in getpwuid() 27 struct passwd *res; in getpwuid() 32 struct passwd *getpwnam(const char *name) in getpwnam() 34 struct passwd *res; in getpwnam()
|
D | getpw_r.c | 6 …tic int getpw_r(const char *name, uid_t uid, struct passwd *pw, char *buf, size_t size, struct pas… in getpw_r() 23 FIX(passwd); in getpw_r() 34 int getpwnam_r(const char *name, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwnam_r() 39 int getpwuid_r(uid_t uid, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwuid_r()
|
D | pwf.h | 11 hidden int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res); 12 … int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct pa…
|
/external/musl/src/passwd/ |
D | getpwent.c | 5 static struct passwd pw; 16 struct passwd *getpwent() in getpwent() 18 struct passwd *res; in getpwent() 19 if (!f) f = fopen("/etc/passwd", "rbe"); in getpwent() 25 struct passwd *getpwuid(uid_t uid) in getpwuid() 27 struct passwd *res; in getpwuid() 32 struct passwd *getpwnam(const char *name) in getpwnam() 34 struct passwd *res; in getpwnam()
|
D | getpw_r.c | 6 …tic int getpw_r(const char *name, uid_t uid, struct passwd *pw, char *buf, size_t size, struct pas… in getpw_r() 23 FIX(passwd); in getpw_r() 34 int getpwnam_r(const char *name, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwnam_r() 39 int getpwuid_r(uid_t uid, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwuid_r()
|
D | pwf.h | 11 hidden int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res); 12 … int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct pa…
|
/external/toybox/toys/pending/ |
D | useradd.c | 46 struct passwd pwd; 63 // add_user(), add a new entry in /etc/passwd, /etc/shadow files 74 struct passwd *pw = getpwuid(getuid()); 114 * 1. add an entry to /etc/passwd and /etcshadow file 116 * 3. update the user passwd by running 'passwd' utility 119 // 1. add an entry to /etc/passwd and /etc/shadow file 123 update_password("/etc/passwd", pwd.pw_name, entry, 0); 128 (unsigned)(time(NULL))/(24*60*60)); //passwd is not set initially 130 (unsigned)(time(0))/(24*60*60)); //passwd is not set initially 150 //3. update the user passwd by running 'passwd' utility [all …]
|
/external/toybox/toys/lsb/ |
D | passwd.c | 1 /* passwd.c - update user password. 6 * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/passwd.html 8 USE_PASSWD(NEWTOY(passwd, ">1a:dlu", TOYFLAG_STAYROOT|TOYFLAG_USR|TOYFLAG_BIN)) 10 config PASSWD 11 bool "passwd" 14 usage: passwd [-a ALGO] [-dlu] [USER] 26 depends on PASSWD 57 struct passwd *pw = 0; in passwd_main() 68 // Get password from /etc/passwd or /etc/shadow in passwd_main() 106 // Update the passwd in passwd_main() [all …]
|
/external/selinux/policycoreutils/run_init/ |
D | run_init.c | 27 * If you choose not to use PAM, make sure you have a shadow passwd file 28 * in /etc/shadow. You can use a simlink if your shadow passwd file 35 * setuid root, so that it can read the shadow passwd file. 92 * the passwd file. 105 static int authenticate_via_pam(const struct passwd *p_passwd_line) in authenticate_via_pam() 152 * All shadow passwd code goes in this section. 157 #include <shadow.h> /* for shadow passwd functions */ 173 * the passwd file. 178 * shadow passwd file. 181 * This function uses the shadow passwd file to authenticate the user running [all …]
|
/external/mtools/ |
D | mzip.c | 421 const char *passwd; in mzip() local 434 passwd = "APlaceForYourStuff"; in mzip() 435 if ((s = strchr(passwd, '\n'))) *s = '\0'; /* chomp */ in mzip() 437 passwd, extra_data); in mzip() 444 passwd = getpass("Password: "); in mzip() 445 if ((s = strchr(passwd, '\n'))) *s = '\0'; /* chomp */ in mzip() 447 unlockMode, passwd, in mzip() 449 if (ret == -1) perror("passwd: "); in mzip() 464 passwd = getpass("Enter new password:"); in mzip() 465 strncpy(first_try, passwd,_PASSWORD_LEN); in mzip() [all …]
|
/external/cronet/tot/third_party/apache-portable-runtime/src/user/unix/ |
D | userinfo.c | 36 struct passwd *pw, in getpwnam_safe() 39 struct passwd *pwptr; in getpwnam_safe() 73 struct passwd pw; in apr_uid_homepath_get() 107 struct passwd pw; in apr_uid_get() 123 struct passwd *pw; in apr_uid_name_get() 125 struct passwd pwd; in apr_uid_name_get()
|
/external/cronet/stable/third_party/apache-portable-runtime/src/user/unix/ |
D | userinfo.c | 36 struct passwd *pw, in getpwnam_safe() 39 struct passwd *pwptr; in getpwnam_safe() 73 struct passwd pw; in apr_uid_homepath_get() 107 struct passwd pw; in apr_uid_get() 123 struct passwd *pw; in apr_uid_name_get() 125 struct passwd pwd; in apr_uid_name_get()
|
/external/python/cpython3/Lib/urllib/ |
D | request.py | 56 passwd='geheim$parole') 808 self.passwd = {} 810 def add_password(self, realm, uri, user, passwd): argument 814 if realm not in self.passwd: 815 self.passwd[realm] = {} 819 self.passwd[realm][reduced_uri] = (user, passwd) 822 domains = self.passwd.get(realm, {}) 885 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument 889 super().add_password(None, uri, user, passwd) 890 super().add_password(realm, uri, user, passwd) [all …]
|
/external/zlib/contrib/minizip/ |
D | crypt.h | 64 static void init_keys(const char* passwd, unsigned long* pkeys, const z_crc_t* pcrc_32_tab) { in init_keys() argument 68 while (*passwd != '\0') { in init_keys() 69 update_keys(pkeys,pcrc_32_tab,(int)*passwd); in init_keys() 70 passwd++; in init_keys() 88 static unsigned crypthead(const char* passwd, /* password string */ in crypthead() argument 111 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead() 118 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
|
/external/python/cpython3/Lib/ |
D | getpass.py | 43 passwd = None 61 passwd = fallback_getpass(prompt, stream) 76 passwd = _raw_input(prompt, stream, input=input) 81 if passwd is not None: 90 passwd = fallback_getpass(prompt, stream) 93 return passwd
|