Home
last modified time | relevance | path

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

123

/third_party/libuv/test/
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(strlen(homedir) == 0); in TEST_IMPL()
38 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
40 ASSERT(strlen(homedir) == len); in TEST_IMPL()
42 ASSERT(homedir[len] == '\0'); in TEST_IMPL()
45 if (len == 3 && homedir[1] == ':') in TEST_IMPL()
46 ASSERT(homedir[2] == '\\'); in TEST_IMPL()
[all …]
/third_party/node/deps/npm/node_modules/env-paths/
Dindex.js5 const homedir = os.homedir(); constant
10 const library = path.join(homedir, 'Library');
22 const appData = env.APPDATA || path.join(homedir, 'AppData', 'Roaming');
23 const localAppData = env.LOCALAPPDATA || path.join(homedir, 'AppData', 'Local');
37 const username = path.basename(homedir);
40 data: path.join(env.XDG_DATA_HOME || path.join(homedir, '.local', 'share'), name),
41 config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, '.config'), name),
42 cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, '.cache'), name),
44 log: path.join(env.XDG_STATE_HOME || path.join(homedir, '.local', 'state'), name),
/third_party/curl/lib/
Dcurl_path.c39 char *homedir, /* when SFTP is used */ in Curl_getworkingpath() argument
67 if(Curl_dyn_add(&npath, homedir)) { 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()
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/
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/
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()
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()
Dftest05.c98 static char homedir[MAXPATHLEN]; /* where we started */ variable
133 getcwd(homedir, sizeof(homedir)); in setup()
212 chdir(homedir); in runtest()
Dftest01.c94 static char homedir[MAXPATHLEN]; /* where we started */ variable
125 getcwd(homedir, sizeof(homedir)); in setup()
212 chdir(homedir); in runtest()
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()
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/
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());
Dtest-os-checked-function.js18 assert.throws(os.homedir, {
Dtest-repl-programmatic-history.js19 os.homedir = function() { function in os
161 os.homedir = function() {
Dtest-repl-persistent-history.js21 os.homedir = function() { function in os
165 os.homedir = function() {
Dtest-os-homedir-no-envvar.js15 const home = os.homedir();
/third_party/node/deps/npm/node_modules/clean-stack/
Dindex.js6 const homeDir = typeof os.homedir === 'undefined' ? '' : os.homedir();
/third_party/node/deps/npm/node_modules/@npmcli/metavuln-calculator/lib/
Dindex.js7 const { homedir } = require('os')
23 this[_cache] = this[_options].cache || (homedir() + '/.npm/_cacache')
/third_party/typescript/src/tsserver/
DnodeServer.ts392 homedir?(): string;
823 (os.homedir && os.homedir()) ||
848 const homePath = (os.homedir && os.homedir()) ||
/third_party/node/src/
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/
Dindex.js30 const { homedir } = require('os')
76 cache: options.cache || `${homedir()}/.npm/_cacache`,
/third_party/node/deps/npm/node_modules/pacote/lib/util/
Dcache-dir.js7 const home = os.homedir() || resolve(temp, 'npm-' + uidOrPid)
/third_party/curl/lib/vssh/
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()
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()
2703 result = Curl_get_pathname(&cp, &sshc->quote_path1, sshc->homedir); in sftp_quote()
2730 result = Curl_get_pathname(&cp, &sshc->quote_path2, sshc->homedir); in sftp_quote()
[all …]
/third_party/node/typings/internalBinding/
Dos.d.ts18 homedir: string;
/third_party/libuv/src/win/
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()

123