Home
last modified time | relevance | path

Searched refs:homedir (Results 1 – 11 of 11) sorted by relevance

/libuv/test/
H A Dtest-homedir.c29 TEST_IMPL(homedir) { in TEST_IMPL() argument
30 char homedir[PATHMAX]; in TEST_IMPL() local
35 len = sizeof homedir; in TEST_IMPL()
36 homedir[0] = '\0'; in TEST_IMPL()
37 ASSERT_OK(strlen(homedir)); in TEST_IMPL()
38 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
40 ASSERT_EQ(strlen(homedir), len); in TEST_IMPL()
42 ASSERT_EQ(homedir[len], '\0'); in TEST_IMPL()
46 ASSERT_EQ(homedir[2], '\\'); in TEST_IMPL()
51 ASSERT_EQ(homedir[0], '/'); in TEST_IMPL()
[all …]
H A Dtest-get-passwd.c55 len = strlen(pwd.homedir); in TEST_IMPL()
59 if (len == 3 && pwd.homedir[1] == ':') in TEST_IMPL()
60 ASSERT_EQ(pwd.homedir[2], '\\'); in TEST_IMPL()
62 ASSERT_NE(pwd.homedir[len - 1], '\\'); in TEST_IMPL()
65 ASSERT_EQ(pwd.homedir[0], '/'); in TEST_IMPL()
67 ASSERT_NE(pwd.homedir[len - 1], '/'); in TEST_IMPL()
87 ASSERT_NULL(pwd.homedir); in TEST_IMPL()
94 ASSERT_NULL(pwd.homedir); in TEST_IMPL()
130 ASSERT_STR_EQ(pwd.homedir, pwd2.homedir); in TEST_IMPL()
144 len = strlen(pwd2.homedir); in TEST_IMPL()
H A Dtest-platform-output.c218 printf(" home directory: %s\n", pwd.homedir); in TEST_IMPL()
H A Dtest-list.h295 TEST_DECLARE (homedir)
946 TEST_ENTRY (homedir)
/libuv/src/win/
H A Dutil.c958 len = strlen(pwd.homedir); in uv_os_homedir()
966 memcpy(buffer, pwd.homedir, len + 1); in uv_os_homedir()
1139 pwd->homedir = NULL; in uv__getpwuid_r()
1140 r = uv__convert_utf16_to_utf8(path, -1, &pwd->homedir); in uv__getpwuid_r()
1150 uv__free(pwd->homedir); in uv__getpwuid_r()
/libuv/src/unix/
H A Dcore.c1146 len = strlen(pwd.homedir); in uv_os_homedir()
1154 memcpy(buffer, pwd.homedir, len + 1); in uv_os_homedir()
1267 pwd->homedir = pwd->username + name_size; in uv__getpwuid_r()
1268 memcpy(pwd->homedir, pw.pw_dir, homedir_size); in uv__getpwuid_r()
1271 pwd->shell = pwd->homedir + homedir_size; in uv__getpwuid_r()
/libuv/src/
H A Duv-common.c142 uv__free(pwd->homedir); in uv_os_free_passwd()
146 pwd->homedir = NULL; in uv_os_free_passwd()
/libuv/
H A DMakefile.am197 test/test-homedir.c \
H A DCMakeLists.txt571 test/test-homedir.c
/libuv/include/
H A Duv.h1218 char* homedir; member
/libuv/docs/src/
H A Dmisc.rst199 char* homedir;

Completed in 32 milliseconds