Home
last modified time | relevance | path

Searched full:pwd (Results 1 – 25 of 2801) sorted by relevance

12345678910>>...113

/external/toybox/toys/posix/
Dpwd.c1 /* pwd.c - Print working directory.
5 * See http://opengroup.org/onlinepubs/9699919799/utilities/pwd.html
7 USE_PWD(NEWTOY(pwd, ">0LP[-LP]", TOYFLAG_BIN|TOYFLAG_MAYFORK))
9 config PWD
10 bool "pwd"
13 usage: pwd [-L|-P]
17 -L Use shell's path from $PWD (when applicable)
26 char *s, *pwd = getcwd(0, 0), *PWD; in pwd_main() local
28 // Only use $PWD if it's an absolute path alias for cwd with no "." or ".." in pwd_main()
29 if (!FLAG(P) && (s = PWD = getenv("PWD"))) { in pwd_main()
[all …]
/external/elfutils/tests/
Drun-debuginfod-tmp-home.sh25 DB=${PWD}/.debuginfod_tmp.sqlite
27 export DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache
61 echo "int main() { return 0; }" > ${PWD}/p+r%o\$g.c
65 gcc -Wl,--build-id -g -o p+r%o\$g ${PWD}/foobar///./../p+r%o\$g.c
66 testrun ${abs_top_builddir}/src/strip -g -f p+r%o\$g.debug ${PWD}/p+r%o\$g
84 testrun env HOME=$PWD/tmphome XDG_CACHE_HOME= DEBUGINFOD_CACHE_PATH= ${abs_top_builddir}/debuginfod…
85 if [ ! -f $PWD/tmphome/.cache/debuginfod_client/$BUILDID/debuginfo ]; then
86 echo "could not find cache in $PWD/tmphome/.cache"
91 testrun env HOME=$PWD/tmphome XDG_CACHE_HOME= DEBUGINFOD_CACHE_PATH= ${abs_top_builddir}/debuginfod…
92 if [ ! -f $PWD/tmphome/.cache/debuginfod_client/$BUILDID/executable ]; then
[all …]
Drun-prelink-addr-test.sh39 00111000-00112000 r-xp 00000000 fd:01 1 `pwd`/testfile52-32.so
40 00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile52-32.so
41 41000000-41001000 r-xp 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
42 41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
43 42000000-42001000 r-xp 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
44 42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
68 1000000000-1000001000 r-xp 00000000 fd:11 1 `pwd`/testfile52-64.so
69 1000001000-1000200000 ---p 00001000 fd:11 1 `pwd`/testfile52-64.so
70 1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile52-64.so
71 3000000000-3000001000 r-xp 00000000 fd:11 2 `pwd`/testfile52-64.prelink.so
[all …]
Drun-debuginfod-artifact-running.sh30 DB=${PWD}/.debuginfod_tmp.sqlite
32 export DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache
34 echo 'int main(int argc, char * argv){ return 0; }' > ${PWD}/prog.c
35 gcc -Wl,--build-id -g -o prog ${PWD}/prog.c
36 testrun ${abs_top_builddir}/src/strip -g -f prog.debug ${PWD}/prog
68 echo "int main() { return 0; }" > ${PWD}/prog2.c
70 gcc -Wl,--build-id -g -o prog2 ${PWD}/prog2.c
71 #testrun ${abs_top_builddir}/src/strip -g -f prog.debug ${PWD}/prog
95 filename=`testrun ${abs_top_builddir}/debuginfod/debuginfod-find source $BUILDID ${PWD}/foobar///./…
96 cmp $filename ${PWD}/prog.c
[all …]
Drun-debuginfod-percent-escape.sh27 DB=${PWD}/.debuginfod_tmp.sqlite
31 -F -R -d $DB -p $PORT1 -t0 -g0 -v R ${PWD}/F > vlog$PORT1 2>&1 &
41 echo "int main() { return 0; }" > ${PWD}/F/p++r\$\#o^^g.c
42 gcc -Wl,--build-id -g -o ${PWD}/F/p++r\$\#o^^g ${PWD}/F/p++r\$\#o^^g.c
44 -a ${PWD}/F/p++r\\$\#o^^g | grep 'Build ID' | cut -d ' ' -f 7`
45 tempfiles ${PWD}/F/p++r\$\#o^^g.c ${PWD}/F/p++r\$\#o^^g
53 env DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache DEBUGINFOD_URLS="http://127.0.0.1:$PORT1" \
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c2 * EAP peer method: EAP-pwd (RFC 5931)
66 return "PWD-ID-Req"; in eap_pwd_state_txt()
68 return "PWD-Commit-Req"; in eap_pwd_state_txt()
70 return "PWD-Confirm-Req"; in eap_pwd_state_txt()
78 return "PWD-UNK"; in eap_pwd_state_txt()
86 wpa_printf(MSG_DEBUG, "EAP-PWD: %s -> %s", in eap_pwd_state()
103 wpa_printf(MSG_INFO, "EAP-PWD: No password configured!"); in eap_pwd_init()
109 wpa_printf(MSG_INFO, "EAP-PWD: No identity configured!"); in eap_pwd_init()
114 wpa_printf(MSG_INFO, "EAP-PWD: memory allocation data fail"); in eap_pwd_init()
119 wpa_printf(MSG_INFO, "EAP-PWD: memory allocation id fail"); in eap_pwd_init()
[all …]
/external/python/cpython3/Lib/test/
Dtest_pwd.py5 pwd = import_helper.import_module('pwd') variable
7 @unittest.skipUnless(hasattr(pwd, 'getpwall'), 'Does not have getpwall()')
11 entries = pwd.getpwall()
32 # self.assertEqual(pwd.getpwuid(e.pw_uid), e)
37 entries = pwd.getpwall()
53 self.assertIn(pwd.getpwnam(e.pw_name), entriesbyname[e.pw_name])
54 self.assertIn(pwd.getpwuid(e.pw_uid), entriesbyuid[e.pw_uid])
57 self.assertRaises(TypeError, pwd.getpwuid)
58 self.assertRaises(TypeError, pwd.getpwuid, 3.14)
59 self.assertRaises(TypeError, pwd.getpwnam)
[all …]
/external/toybox/toys/pending/
Duseradd.c45 struct passwd pwd; local
64 pwd.pw_name = s;
65 pwd.pw_passwd = "x";
66 pwd.pw_gecos = TT.gecos ? TT.gecos : "Linux User,";
67 pwd.pw_dir = TT.dir ? TT.dir : xmprintf("/home/%s", *toys.optargs);
79 pwd.pw_shell = TT.shell;
90 pwd.pw_uid = TT.uid;
97 if (getgrnam(pwd.pw_name)) error_exit("group '%s' in use", pwd.pw_name);
101 pwd.pw_gid = TT.gid;
105 char *s = xmprintf("-g%ld", (long)pwd.pw_gid);
[all …]
Dcrontab.c266 static void do_edit(struct passwd *pwd) in do_edit() argument
278 snprintf(toybuf, sizeof(toybuf), "%s%s", TT.cdir, pwd->pw_name); in do_edit()
286 } else printf("No crontab for '%s'- using an empty one\n", pwd->pw_name); in do_edit()
293 char *prog = pwd->pw_shell; in do_edit()
295 xsetuser(pwd); in do_edit()
296 if (pwd->pw_uid) { in do_edit()
297 if (setenv("USER", pwd->pw_name, 1)) _exit(1); in do_edit()
298 if (setenv("LOGNAME", pwd->pw_name, 1)) _exit(1); in do_edit()
300 if (setenv("HOME", pwd->pw_dir, 1)) _exit(1); in do_edit()
332 update_crontab(tname, pwd->pw_name); in do_edit()
[all …]
/external/python/cpython2/Lib/test/
Dtest_pwd.py5 pwd = test_support.import_module('pwd') variable
10 entries = pwd.getpwall()
31 # self.assertEqual(pwd.getpwuid(e.pw_uid), e)
36 entries = pwd.getpwall()
52 self.assertIn(pwd.getpwnam(e.pw_name), entriesbyname[e.pw_name])
53 self.assertIn(pwd.getpwuid(e.pw_uid), entriesbyuid[e.pw_uid])
56 self.assertRaises(TypeError, pwd.getpwuid)
57 self.assertRaises(TypeError, pwd.getpwuid, 3.14)
58 self.assertRaises(TypeError, pwd.getpwnam)
59 self.assertRaises(TypeError, pwd.getpwnam, 42)
[all …]
/external/libwebsockets/test-apps/android/app/src/main/jni/
DNativeLibs.mk187 -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_X86)/bin/$(TOOLCHAIN_X86_PREFIX)-gcc \
188 -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_X86)/bin/$(TOOLCHAIN_X86_PREFIX)-ar \
189 -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_X86)/bin/$(TOOLCHAIN_X86_PREFIX)-ranlib \
202 -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_X86_64)/bin/$(TOOLCHAIN_X86_64_PREFIX)-gcc \
203 -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_X86_64)/bin/$(TOOLCHAIN_X86_64_PREFIX)-ar \
204 -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_X86_64)/bin/$(TOOLCHAIN_X86_64_PREFIX)-ranlib \
217 -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_ARM)/bin/$(TOOLCHAIN_ARM_PREFIX)-gcc \
218 -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_ARM)/bin/$(TOOLCHAIN_ARM_PREFIX)-ar \
219 -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_ARM)/bin/$(TOOLCHAIN_ARM_PREFIX)-ranlib \
232 -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_ARM_V7A)/bin/$(TOOLCHAIN_ARM_V7A_PREFIX)-gcc \
[all …]
/external/toybox/tests/
Dpwd.test9 testing "pwd" "[ $(stat -c %i "$(pwd)") = $(stat -c %i .) ] && echo yes" \
11 testing "-P" "[ $(stat -c %i "$(pwd -P)") = $(stat -c %i .) ] && echo yes" \
17 testing "pwd" "[ $(stat -c %i "$(pwd)") = $(stat -c %i "$PWD") ] && echo yes" \
19 testing "-P" "[ $(stat -c %i "$(pwd -P)") = $(stat -c %i "$PWD") ] || echo yes" \
24 export PWD=walrus
25 testing "(bad PWD)" "[ "$(pwd)" = "$(cd . ; pwd)" ] && echo yes" \
Drealpath.test8 export PWD
26 testcmd '--relative-to4' '"$PWD" --relative-to one' '..\n' '' ''
27 testcmd '--relative-to5' '--relative-to "$PWD" one' 'one\n' '' ''
38 testcmd '-m with relative-base2' '-sm --relative-base wurble .' "$PWD\n" '' ''
50 # The -s tests use $PWD instead of $TOP because symlinks in path _to_ here
51 # should not be resolved either. The shell exports $PWD: use it.
52 testcmd '-s' '-s uno/two' "$PWD/uno/two\n" '' ''
53 testcmd '-s link/..' '-es dos/three' "$PWD/dos/three\n" '' ''
54 testcmd '-s .. eats symlink' '-s dos/..' "$PWD\n" '' ''
56 toyonly testing '-s .. eats symlink in $PWD' \
[all …]
/external/oss-fuzz/projects/dlplibs/
Dbuild.sh22 export ZLIB_CFLAGS="-I$(pwd)"
23 export ZLIB_LIBS="-L$(pwd) -lz"
30 export LCMS2_CFLAGS="-I$(pwd)/include"
31 export LCMS2_LIBS="-L$(pwd)/src -llcms2"
38 export LIBPNG_CFLAGS="-I$(pwd)"
39 export LIBPNG_LIBS="-L$(pwd) -lpng16"
46 export LIBXML_CFLAGS="-I$(pwd)/include"
47 export LIBXML_LIBS="-L$(pwd) -lxml2"
61 export ICU_CFLAGS="-I$(pwd) -I$(pwd)/i18n -I$(pwd)/common"
62 export ICU_LIBS="-L$(pwd)/lib -licui18n -licuuc -licudata"
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c2 * hostapd / EAP-pwd (RFC 5931) server
62 return "PWD-ID-Req"; in eap_pwd_state_txt()
64 return "PWD-Commit-Req"; in eap_pwd_state_txt()
66 return "PWD-Confirm-Req"; in eap_pwd_state_txt()
72 return "PWD-Unk"; in eap_pwd_state_txt()
79 wpa_printf(MSG_DEBUG, "EAP-pwd: %s -> %s", in eap_pwd_state()
91 wpa_printf(MSG_INFO, "EAP-PWD (server): Password is not " in eap_pwd_init()
101 wpa_printf(MSG_DEBUG, "EAP-pwd: Selected group number %d", in eap_pwd_init()
111 wpa_printf(MSG_INFO, "EAP-PWD: Memory allocation password " in eap_pwd_init()
126 "EAP-pwd: Memory allocation of salt failed"); in eap_pwd_init()
[all …]
/external/toybox/toys/other/
Dlogin.c42 struct passwd *pwd = 0; in login_main() local
73 if ((pwd = getpwnam(username))) { in login_main()
75 if (TT.f || !*pwd->pw_passwd) break; in login_main()
78 if (*(pass = pwd->pw_passwd) == 'x') { in login_main()
106 pwd = 0; in login_main()
110 if (!pwd) error_exit("max retries (3)"); in login_main()
114 if (pwd->pw_uid && !access("/etc/nologin", R_OK)) { in login_main()
123 if (fchown(tty, pwd->pw_uid, pwd->pw_gid) || fchmod(tty, 0600)) in login_main()
125 xsetuser(pwd); in login_main()
126 reset_env(pwd, !FLAG(p)); in login_main()
[all …]
/external/ImageMagick/config/
Dlndir.sh29 # Do "pwd" command *after* "cd $DIRTO".
66 pwd=`pwd`
68 if [ `(cd $DIRFROM; pwd)` = $pwd ]
70 echo "$pwd: FROM and TO are identical!"
83 pwd=`pwd`
88 if [ `(cd $DIRFROM/$file; pwd)` = $pwd ]
90 echo "$pwd: FROM and TO are identical!"
/external/webrtc/p2p/base/
Dtransport_description_unittest.cc19 auto result = IceParameters::Parse("ufrag", "22+characters+long+pwd"); in TEST()
23 EXPECT_EQ("22+characters+long+pwd", parameters.pwd); in TEST()
27 auto result = IceParameters::Parse("3ch", "22+characters+long+pwd"); in TEST()
33 auto result = IceParameters::Parse(ufrag, "22+characters+long+pwd"); in TEST()
38 auto result = IceParameters::Parse("ufrag", "21+character+long+pwd"); in TEST()
43 std::string pwd(257, '+'); in TEST() local
44 auto result = IceParameters::Parse("ufrag", pwd); in TEST()
49 auto result = IceParameters::Parse("ufrag\r\n", "22+characters+long+pwd"); in TEST()
54 auto result = IceParameters::Parse("ufrag", "22+characters+long+pwd\r\n"); in TEST()
/external/python/cpython3/Modules/
Dpwdmodule.c7 #include <pwd.h>
11 module pwd
27 "pwd.struct_passwd: Results from getpw*() routines.\n\n\
33 "pwd.struct_passwd",
44 items from the password database (see `<pwd.h>'), in order:\n\
118 pwd.getpwuid
125 See `help(pwd)` for more on password database entries.
147 /* Note: 'pwd' will be used via pointer 'p' on getpwuid_r success. */ in pwd_getpwuid()
148 struct passwd pwd; in pwd_getpwuid() local
164 status = getpwuid_r(uid, &pwd, buf, bufsize, &p); in pwd_getpwuid()
[all …]
/external/cronet/third_party/protobuf/benchmarks/
DMakefile.am33 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_ou…
37 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_ou…
40 all_data = $$(find $$(cd $(srcdir) && pwd) -type f -name "dataset.*.pb" -not -path "$$(cd $(srcdir)…
93 oldpwd=`pwd`
249 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
250 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
251 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
252 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
253 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
254 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
[all …]
/external/protobuf/benchmarks/
DMakefile.am33 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_ou…
37 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_ou…
40 all_data = $$(find $$(cd $(srcdir) && pwd) -type f -name "dataset.*.pb" -not -path "$$(cd $(srcdir)…
93 oldpwd=`pwd`
249 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
250 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
251 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
252 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
253 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
254 …oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --go_out…
[all …]
/external/mbedtls/library/
Dpem.c87 const unsigned char *pwd, size_t pwdlen ) in pem_pbkdf1() argument
97 * key[ 0..15] = MD5(pwd || IV) in pem_pbkdf1()
101 if( ( ret = mbedtls_md5_update( &md5_ctx, pwd, pwdlen ) ) != 0 ) in pem_pbkdf1()
117 * key[16..23] = MD5(key[ 0..15] || pwd || IV]) in pem_pbkdf1()
123 if( ( ret = mbedtls_md5_update( &md5_ctx, pwd, pwdlen ) ) != 0 ) in pem_pbkdf1()
145 const unsigned char *pwd, size_t pwdlen ) in pem_pbkdf1() argument
156 if( ( status = psa_hash_update( &operation, pwd, pwdlen ) ) != PSA_SUCCESS ) in pem_pbkdf1()
173 * key[ 0..15] = MD5(pwd || IV) in pem_pbkdf1()
184 * key[16..23] = MD5(key[ 0..15] || pwd || IV]) in pem_pbkdf1()
192 if( ( status = psa_hash_update( &operation, pwd, pwdlen ) ) != PSA_SUCCESS ) in pem_pbkdf1()
[all …]
/external/ltp/testcases/kernel/device-drivers/usb/tusb/
DMakefile13 PWD := $(shell pwd) macro
16 $(MAKE) -C $(KDIR) M=$(PWD) modules
17 # $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
20 $(MAKE) -C $(KDIR) M=$(PWD) clean
24 $(MAKE) -C $(KDIR) M=$(PWD) help
27 $(MAKE) -C $(KDIR) M=$(PWD) modules_install
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c2 * EAP server/peer: EAP-pwd shared routines
94 wpa_printf(MSG_INFO, "EAP-pwd: unsuitable group %u", num); in get_eap_pwd_group()
102 wpa_printf(MSG_INFO, "EAP-pwd: unable to create EC group"); in get_eap_pwd_group()
108 wpa_printf(MSG_INFO, "EAP-pwd: provisioned group %d", num); in get_eap_pwd_group()
158 wpa_printf(MSG_INFO, "EAP-pwd: unable to malloc space for prf " in compute_password_element()
184 * pwd-seed = H(token | peer-id | server-id | password | in compute_password_element()
200 (u8 *) "EAP-pwd Hunting And Pecking", in compute_password_element()
201 os_strlen("EAP-pwd Hunting And Pecking"), in compute_password_element()
219 "EAP-pwd: unable to create x_candidate"); in compute_password_element()
223 wpa_hexdump_key(MSG_DEBUG, "EAP-pwd: x_candidate", in compute_password_element()
[all …]
/external/flac/test/
Dcommon.sh.in29 LD_LIBRARY_PATH="$(pwd)/../objs/$BUILD/lib:$LD_LIBRARY_PATH"
30 LD_LIBRARY_PATH="$(pwd)/../src/libFLAC/.libs:$LD_LIBRARY_PATH"
31 LD_LIBRARY_PATH="$(pwd)/../src/share/getopt/.libs:$LD_LIBRARY_PATH"
32 LD_LIBRARY_PATH="$(pwd)/../src/share/grabbag/.libs:$LD_LIBRARY_PATH"
33 LD_LIBRARY_PATH="$(pwd)/../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH"
34 LD_LIBRARY_PATH="$(pwd)/../src/share/replaygain_synthesis/.libs:$LD_LIBRARY_PATH"
35 LD_LIBRARY_PATH="$(pwd)/../src/share/utf8/.libs:$LD_LIBRARY_PATH"
46 PATH="$(pwd)/../objs/$CMAKE_CONFIG_TYPE:$PATH"
47 PATH="$(pwd)/../objs:$PATH"

12345678910>>...113