Home
last modified time | relevance | path

Searched refs:homedir (Results 1 – 25 of 72) 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/node/deps/npm/node_modules/os-homedir/
Dreadme.md1 # os-homedir [![Build Status](https://travis-ci.org/sindresorhus/os-homedir.svg?branch=master)](htt…
3 > Node.js 4 [`os.homedir()`](https://nodejs.org/api/os.html#os_os_homedir) [ponyfill](https://ponyf…
9 $ npm install --save os-homedir
16 const osHomedir = require('os-homedir');
Dindex.js4 function homedir() { function
24 module.exports = typeof os.homedir === 'function' ? os.homedir : homedir;
/third_party/curl/lib/
Dcurl_path.c37 char *homedir, /* when SFTP is used */ in Curl_getworkingpath() argument
67 if(Curl_dyn_add(&npath, homedir)) { in Curl_getworkingpath()
113 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir) in Curl_get_pathname() argument
130 fullPathLength = strlen(cp) + strlen(homedir) + 2; in Curl_get_pathname()
179 strcpy(*path, homedir); in Curl_get_pathname()
180 pathLength = strlen(homedir); in Curl_get_pathname()
Dcurl_path.h43 char *homedir,
46 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir);
/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()
Dftest03.c99 static char homedir[MAXPATHLEN]; /* where we started */ variable
141 if (getcwd(homedir, sizeof(homedir)) == NULL) { in setup()
230 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()
/third_party/node/test/parallel/
Dtest-os.js190 const home = os.homedir();
201 assert.ok(os.homedir().includes(path.sep));
206 assert.ok(os.homedir().includes(path.sep));
235 assert.ok(pwd.homedir.includes(path.sep));
237 assert.strictEqual(pwd.homedir, pwdBuf.homedir.toString('utf8'));
240 assert.strictEqual(`${os.homedir}`, os.homedir());
Dtest-os-checked-function.js18 assert.throws(os.homedir, {
Dtest-os-homedir-no-envvar.js15 const home = 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-macos-app-sandbox.js53 '-e', 'fs.readdirSync(process.argv[1])', os.homedir(),
/third_party/node/deps/npm/node_modules/global-dirs/
Dindex.js32 const homePrefix = readRc(path.join(os.homedir(), '.npmrc'));
67 const configPrefix = path.join(os.homedir(), '.config/yarn');
72 const homePrefix = path.join(os.homedir(), '.yarn-config');
/third_party/node/deps/npm/node_modules/libnpmconfig/
Dindex.js16 cache: { default: path.join(os.homedir(), '.npm') },
23 userconfig: { default: path.join(os.homedir(), '.npmrc') }
/third_party/curl/src/
Dtool_homedir.h26 char *homedir(const char *fname);
Dtool_homedir.c76 char *homedir(const char *fname) in homedir() function
/third_party/node/src/
Dnode_os.cc299 MaybeLocal<Value> homedir = StringBytes::Encode(env->isolate(), in GetUserInfo() local
300 pwd.homedir, in GetUserInfo()
310 if (username.IsEmpty() || homedir.IsEmpty() || shell.IsEmpty()) { in GetUserInfo()
325 homedir.ToLocalChecked()).Check(); in GetUserInfo()
/third_party/node/deps/npm/node_modules/xdg-basedir/
Dindex.js5 const home = os.homedir();
/third_party/curl/lib/vssh/
Dwolfssh.c514 sshc->homedir = malloc(name->fSz + 1); in wssh_statemach_act()
515 if(!sshc->homedir) { in wssh_statemach_act()
519 memcpy(sshc->homedir, name->fName, name->fSz); in wssh_statemach_act()
520 sshc->homedir[name->fSz] = 0; in wssh_statemach_act()
531 result = Curl_getworkingpath(data, sshc->homedir, &sftp_scp->path); in wssh_statemach_act()
888 Curl_safefree(sshc->homedir); in wssh_statemach_act()

123