Home
last modified time | relevance | path

Searched refs:pw_dir (Results 1 - 25 of 60) sorted by relevance

123

/kernel/liteos_a/testsuites/unittest/libc/sys/full/
H A Dsys_test_019.cpp63 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/root", -1, ERROUT); in TestCase()
71 ICUNIT_GOTO_STRING_EQUAL(pwd.pw_dir, "/root", -1, ERROUT); in TestCase()
81 ICUNIT_GOTO_STRING_EQUAL(user2->pw_dir, "/usr/sbin", -1, ERROUT); in TestCase()
91 ICUNIT_GOTO_STRING_EQUAL(user3->pw_dir, "/bin", -1, ERROUT); in TestCase()
H A Dsys_test_021.cpp63 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/root", -1, ERROUT); in TestCase()
71 ICUNIT_GOTO_STRING_EQUAL(pwd.pw_dir, "/root", -1, ERROUT); in TestCase()
82 ICUNIT_GOTO_STRING_EQUAL(user2->pw_dir, "/usr/sbin", -1, ERROUT); in TestCase()
93 ICUNIT_GOTO_STRING_EQUAL(user3->pw_dir, "/bin", -1, ERROUT); in TestCase()
H A Dsys_test_018.cpp58 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/root", -1, ERROUT); in TestCase()
68 ICUNIT_GOTO_STRING_EQUAL(user2->pw_dir, "/usr/sbin", -1, ERROUT); in TestCase()
79 ICUNIT_GOTO_STRING_EQUAL(user3->pw_dir, "/bin", -1, ERROUT); in TestCase()
H A Dsys_test_020.cpp58 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/root", -1, ERROUT); in TestCase()
68 ICUNIT_GOTO_STRING_EQUAL(user2->pw_dir, "/usr/sbin", -1, ERROUT); in TestCase()
78 ICUNIT_GOTO_STRING_EQUAL(user3->pw_dir, "/bin", -1, ERROUT); in TestCase()
H A Dsys_test_022.cpp56 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/root", -1, ERROUT); in TestCase()
66 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/usr/sbin", -1, ERROUT); in TestCase()
76 ICUNIT_GOTO_STRING_EQUAL(user1->pw_dir, "/bin", -1, ERROUT); in TestCase()
/third_party/pulseaudio/src/tests/
H A Dusergroup-test.c107 if (!pa_streq(a->pw_dir, b->pw_dir)) { in compare_passwd()
108 fprintf(stderr, "pw_dir mismatch: [%s] [%s]\n", a->pw_dir, b->pw_dir); in compare_passwd()
/third_party/musl/src/passwd/
H A Dgetpw_a.c110 pw->pw_dir = pw->pw_gecos + passwdbuf[PWGECOSLEN]; in __getpw_a()
111 pw->pw_shell = pw->pw_dir + passwdbuf[PWDIRLEN]; in __getpw_a()
119 if (pw->pw_passwd[-1] || pw->pw_gecos[-1] || pw->pw_dir[-1] in __getpw_a()
H A Dputpwent.c9 pw->pw_gecos, pw->pw_dir, pw->pw_shell)<0 ? -1 : 0; in putpwent()
H A Dgetpwent_a.c44 *s++ = 0; pw->pw_dir = s; in __getpwent_a()
/third_party/toybox/lib/
H A Denv.c100 if (chdir(p->pw_dir)) { in reset_env()
101 perror_msg("chdir %s", p->pw_dir); in reset_env()
116 setenv("HOME", p->pw_dir, 1); in reset_env()
/third_party/toybox/openharmony/
H A Dsu.c63 if (chdir(p->pw_dir)) in reset_env()
65 printf("chdir %s failed, err = %d\n", p->pw_dir, errno); in reset_env()
71 setenv("HOME", p->pw_dir, 1); in reset_env()
/third_party/toybox/toys/pending/
H A Duseradd.c67 pwd.pw_dir = TT.dir ? TT.dir : xmprintf("/home/%s", *toys.optargs); in useradd_main()
120 (long)pwd.pw_uid, (long)pwd.pw_gid, pwd.pw_gecos, pwd.pw_dir, in useradd_main()
135 char *skel = "/etc/skel", *p = pwd.pw_dir; in useradd_main()
H A Dcrond.c444 if (setenv("HOME", pwd->pw_dir, 1)) in do_fork()
448 if (chdir(pwd->pw_dir)) loginfo(LOG_LEVEL9, "chdir(%s)", pwd->pw_dir); in do_fork()
/third_party/python/Lib/test/
H A Dtest_pwd.py25 self.assertEqual(e[5], e.pw_dir)
26 self.assertIsInstance(e.pw_dir, str)
/third_party/curl/lib/
H A Dsetup-vms.h163 unix_path = vms_translate_path(my_passwd->pw_dir); in vms_getpwuid()
171 if(unix_path == my_passwd->pw_dir) { in vms_getpwuid()
176 /* Since curl is only using pw_dir, no need to fix up */ in vms_getpwuid()
181 vms_passwd_cache.pw_dir = unix_path; in vms_getpwuid()
H A Dnetrc.c299 home = pw.pw_dir; in Curl_parsenetrc()
307 home = pw->pw_dir; in Curl_parsenetrc()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/
H A Dpwd.h26 char *pw_dir; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dpwd.h26 char *pw_dir; member
/third_party/musl/porting/liteos_m/kernel/include/
H A Dpwd.h26 char *pw_dir; member
/third_party/musl/porting/uniproton/kernel/include/
H A Dpwd.h26 char *pw_dir; member
/third_party/musl/include/
H A Dpwd.h26 char *pw_dir; member
/third_party/musl/libc-test/src/api/
H A Dpwd.c14 F(char*,pw_dir) in f()
/third_party/alsa-lib/src/
H A Duserfile.c103 home = err ? "" : pwent.pw_dir; in snd_user_file()
/third_party/curl/src/
H A Dtool_findfile.c150 char *home = pw->pw_dir; in findfile()
/third_party/cups-filters/backend/
H A Dcups-brf.c96 if (asprintf(&dir, "%s/BRF", pw->pw_dir) < 0) { in main()

Completed in 7 milliseconds

123