/third_party/libuv/test/ |
D | test-homedir.c | 29 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/ |
D | index.js | 5 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/ |
D | curl_path.c | 39 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()
|
D | curl_path.h | 45 char *homedir, 48 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir);
|
/third_party/node/deps/npm/node_modules/@sigstore/tuf/dist/ |
D | appdata.js | 25 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/ |
D | ftest02.c | 85 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()
|
D | ftest06.c | 91 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()
|
D | ftest05.c | 98 static char homedir[MAXPATHLEN]; /* where we started */ variable 133 getcwd(homedir, sizeof(homedir)); in setup() 212 chdir(homedir); in runtest()
|
D | ftest01.c | 94 static char homedir[MAXPATHLEN]; /* where we started */ variable 125 getcwd(homedir, sizeof(homedir)); in setup() 212 chdir(homedir); in runtest()
|
D | ftest07.c | 105 static char homedir[MAXPATHLEN]; /* where we started */ variable 144 if ((cwd = getcwd(homedir, sizeof(homedir))) == NULL) { in setup() 232 chdir(homedir); in runtest()
|
D | ftest03.c | 99 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/ |
D | test-os.js | 199 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());
|
D | test-os-checked-function.js | 18 assert.throws(os.homedir, {
|
D | test-repl-programmatic-history.js | 19 os.homedir = function() { function in os 161 os.homedir = function() {
|
D | test-repl-persistent-history.js | 21 os.homedir = function() { function in os 165 os.homedir = function() {
|
D | test-os-homedir-no-envvar.js | 15 const home = os.homedir();
|
/third_party/node/deps/npm/node_modules/clean-stack/ |
D | index.js | 6 const homeDir = typeof os.homedir === 'undefined' ? '' : os.homedir();
|
/third_party/node/deps/npm/node_modules/@npmcli/metavuln-calculator/lib/ |
D | index.js | 7 const { homedir } = require('os') 23 this[_cache] = this[_options].cache || (homedir() + '/.npm/_cacache')
|
/third_party/typescript/src/tsserver/ |
D | nodeServer.ts | 392 homedir?(): string; 823 (os.homedir && os.homedir()) || 848 const homePath = (os.homedir && os.homedir()) ||
|
/third_party/node/src/ |
D | node_os.cc | 309 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/ |
D | index.js | 30 const { homedir } = require('os') 76 cache: options.cache || `${homedir()}/.npm/_cacache`,
|
/third_party/node/deps/npm/node_modules/pacote/lib/util/ |
D | cache-dir.js | 7 const home = os.homedir() || resolve(temp, 'npm-' + uidOrPid)
|
/third_party/curl/lib/vssh/ |
D | libssh.c | 971 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/ |
D | os.d.ts | 18 homedir: string;
|
/third_party/libuv/src/win/ |
D | util.c | 1103 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()
|