Home
last modified time | relevance | path

Searched refs:homedir (Results 1 - 25 of 42) sorted by relevance

12

/third_party/libuv/test/
H A Dtest-homedir.c29 TEST_IMPL(homedir) { in TEST_IMPL()
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()
45 if (len == 3 && homedir[1] == ':') in TEST_IMPL()
46 ASSERT_EQ(homedir[ 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()
[all...]
/third_party/curl/lib/
H A Dcurl_path.c39 char *homedir, /* when SFTP is used */ in Curl_getworkingpath()
67 if(Curl_dyn_add(&npath, homedir)) { in Curl_getworkingpath()
75 /* Copy a separating '/' if homedir does not end with one */ in Curl_getworkingpath()
118 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir) in Curl_get_pathname() argument
127 DEBUGASSERT(homedir); in Curl_get_pathname()
128 if(!*cp || !homedir) { in Curl_get_pathname()
136 fullPathLength = strlen(cp) + strlen(homedir) + 2; in Curl_get_pathname()
181 strcpy(*path, homedir); in Curl_get_pathname()
182 pathLength = strlen(homedir); in Curl_get_pathname()
38 Curl_getworkingpath(struct Curl_easy *data, char *homedir, char **path) Curl_getworkingpath() argument
H A Dcurl_path.h45 char *homedir,
48 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir);
/third_party/node/deps/npm/node_modules/@sigstore/tuf/dist/
H A Dappdata.js25 const homedir = os_1.default.homedir();
29 const appSupport = path_1.default.join(homedir, 'Library', 'Application Support');
34 const localAppData = process.env.LOCALAPPDATA || path_1.default.join(homedir, 'AppData', 'Local');
39 const localData = process.env.XDG_DATA_HOME || path_1.default.join(homedir, '.local', 'share');
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest06.c91 static char homedir[MAXPATHLEN]; variable
142 snprintf(homedir, ARRAY_SIZE(homedir), in main()
146 mkdir(homedir, 0755); in main()
154 if (chdir(homedir) < 0) in main()
156 homedir); in main()
222 execl("/bin/rm", "rm", "-rf", homedir, NULL); in main()
230 homedir); in main()
380 val = chdir(homedir); in fussdir()
381 warn(val, "chdir", homedir); in fussdir()
[all...]
H A Dftest02.c85 static char homedir[MAXPATHLEN]; variable
129 strcat(homedir, cwd); in main()
131 strcat(homedir, tmpname); in main()
134 mkdir(homedir, 0755); in main()
141 if (chdir(homedir) < 0) { in main()
142 tst_resm(TBROK, "\tCan't chdir(%s), error %d.", homedir, errno); in main()
206 execl("/bin/rm", "rm", "-rf", homedir, NULL); in main()
214 homedir); in main()
362 val = chdir(homedir); in fussdir()
363 warn(val, "chdir", homedir); in fussdir()
[all...]
H A Dftest05.c98 static char homedir[MAXPATHLEN]; /* where we started */ variable
133 getcwd(homedir, sizeof(homedir)); in setup()
212 chdir(homedir); in runtest()
H A Dftest01.c94 static char homedir[MAXPATHLEN]; /* where we started */ variable
125 getcwd(homedir, sizeof(homedir)); in setup()
212 chdir(homedir); in runtest()
H A Dftest07.c105 static char homedir[MAXPATHLEN]; /* where we started */ variable
144 if ((cwd = getcwd(homedir, sizeof(homedir))) == NULL) { in setup()
232 chdir(homedir); in runtest()
H A Dftest03.c99 static char homedir[MAXPATHLEN]; /* where we started */ variable
141 if (getcwd(homedir, sizeof(homedir)) == NULL) { in setup()
230 chdir(homedir); in runtest()
/third_party/node/test/parallel/
H A Dtest-os.js199 const home = os.homedir();
210 assert.ok(os.homedir().includes(path.sep));
215 assert.ok(os.homedir().includes(path.sep));
244 assert.ok(pwd.homedir.includes(path.sep));
246 assert.strictEqual(pwd.homedir, pwdBuf.homedir.toString('utf8'));
249 assert.strictEqual(`${os.homedir}`, os.homedir());
H A Dtest-os-checked-function.js18 assert.throws(os.homedir, {
H A Dtest-repl-programmatic-history.js18 // Mock os.homedir()
19 os.homedir = function() {
158 { // Make sure this is always the last test, since we change os.homedir()
160 // Mock os.homedir() failure
161 os.homedir = function() {
162 throw new Error('os.homedir() failure');
157 }, global() function
H A Dtest-repl-persistent-history.js20 // Mock os.homedir()
21 os.homedir = function() {
162 { // Make sure this is always the last test, since we change os.homedir()
164 // Mock os.homedir() failure
165 os.homedir = function() {
166 throw new Error('os.homedir() failure');
161 }, global() function
/third_party/node/src/
H A Dnode_os.cc309 MaybeLocal<Value> homedir = StringBytes::Encode(env->isolate(), in GetUserInfo() local
310 pwd.homedir, in GetUserInfo()
320 if (username.IsEmpty() || homedir.IsEmpty() || shell.IsEmpty()) { in GetUserInfo()
335 homedir.ToLocalChecked()).Check(); in GetUserInfo()
/third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/arborist/
H A Dindex.js30 const { homedir } = require('os')
76 cache: options.cache || `${homedir()}/.npm/_cacache`,
/third_party/node/deps/uv/src/win/
H A Dutil.c1103 len = strlen(pwd.homedir); in uv_os_homedir()
1111 memcpy(buffer, pwd.homedir, len + 1); in uv_os_homedir()
1189 uv__free(pwd->homedir); in uv_os_free_passwd()
1191 pwd->homedir = NULL; in uv_os_free_passwd()
1341 pwd->homedir = NULL; in uv__getpwuid_r()
1342 r = uv__convert_utf16_to_utf8(path, -1, &pwd->homedir); in uv__getpwuid_r()
1352 uv__free(pwd->homedir); in uv__getpwuid_r()
/third_party/curl/lib/vssh/
H A Dlibssh.c971 sshc->homedir = sftp_canonicalize_path(sshc->sftp_session, "."); in myssh_statemach_act()
972 if(!sshc->homedir) { in myssh_statemach_act()
976 data->state.most_recent_ftp_entrypath = sshc->homedir; in myssh_statemach_act()
979 we get the homedir here, we get the "workingpath" in the DO action in myssh_statemach_act()
980 since the homedir will remain the same between request but the in myssh_statemach_act()
987 result = Curl_getworkingpath(data, sshc->homedir, &protop->path); in myssh_statemach_act()
1786 SSH_STRING_FREE_CHAR(sshc->homedir); in myssh_statemach_act()
1793 result = Curl_getworkingpath(data, sshc->homedir, &protop->path); in myssh_statemach_act()
1961 SSH_STRING_FREE_CHAR(sshc->homedir); in myssh_statemach_act()
2002 SSH_STRING_FREE_CHAR(sshc->homedir); in myssh_statemach_act()
[all...]
H A Dwolfssh.c516 sshc->homedir = Curl_memdup0(name->fName, name->fSz); in wssh_statemach_act()
517 if(!sshc->homedir) in wssh_statemach_act()
527 result = Curl_getworkingpath(data, sshc->homedir, &sftp_scp->path); in wssh_statemach_act()
886 Curl_safefree(sshc->homedir); in wssh_statemach_act()
H A Dssh.h148 char *homedir; /* when doing SFTP we figure out home dir in the member
/third_party/node/deps/npm/node_modules/nopt/lib/
H A Dtype-defs.js23 const home = os.homedir()
/third_party/node/deps/npm/test/fixtures/
H A Dsandbox.js3 const { homedir, tmpdir } = require('os')
147 .split(normalize(homedir())).join('{REALHOME}')
/third_party/node/deps/uv/src/unix/
H A Dcore.c1100 len = strlen(pwd.homedir); in uv_os_homedir()
1108 memcpy(buffer, pwd.homedir, len + 1); in uv_os_homedir()
1224 pwd->homedir = pwd->username + name_size; in uv__getpwuid_r()
1225 memcpy(pwd->homedir, pw.pw_dir, homedir_size); in uv__getpwuid_r()
1228 pwd->shell = pwd->homedir + homedir_size; in uv__getpwuid_r()
1246 The memory for name, shell, and homedir are allocated in a single in uv_os_free_passwd()
1253 pwd->homedir = NULL; in uv_os_free_passwd()
/third_party/node/lib/internal/repl/
H A Dhistory.js45 historyPath = path.join(os.homedir(), '.node_repl_history');

Completed in 16 milliseconds

12