Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 25 of 260) sorted by relevance

1234567891011

/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DReportAPI.java73 public void print(PrintWriter pw, boolean detail, boolean html) { in print() argument
74 pw.print(" "); in print()
75 removed.print(pw, detail, html); in print()
77 pw.println("</br>"); in print()
79 pw.println(); in print()
80 pw.print("--> "); in print()
82 added.print(pw, detail, html); in print()
274 PrintWriter pw = null; in writeReport() local
276 pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(os, "UTF-8"))); in writeReport()
290 pw.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); in writeReport()
[all …]
DCollectAPI.java42 PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fos, "UTF-8"))); in writeHTML() local
47 pw.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); in writeHTML()
48 pw.println("<html>"); in writeHTML()
49 pw.println("<head>"); in writeHTML()
50 pw.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"); in writeHTML()
51 pw.println("<title>" + title + "</title>"); in writeHTML()
52 pw.println("</head>"); in writeHTML()
53 pw.println("<body>"); in writeHTML()
55 pw.println("<h1>" + title + "</h1>"); in writeHTML()
79 pw.println("<h2>Status Version: " + ver + "</h2>"); in writeHTML()
[all …]
DSwatDeprecated.java37 private PrintWriter pw = new PrintWriter(System.out); field in SwatDeprecated
123 pw.println("replacing '" + srcTag + "'"); in SwatDeprecated()
124 pw.println(" with '" + trgTag + "'"); in SwatDeprecated()
125 pw.println(); in SwatDeprecated()
126 pw.println(" source: '" + srcPrefix + "'"); in SwatDeprecated()
127 pw.println("destination: '" + dstPrefix + "'"); in SwatDeprecated()
128 pw.println(" overwrite: " + overwrite); in SwatDeprecated()
129 pw.println(" verbosity: " + verbosity); in SwatDeprecated()
130 pw.flush(); in SwatDeprecated()
140 pw.println("changed " + cc + " file(s)"); in run()
[all …]
/external/openssh/
Duidswap.c70 temporarily_use_uid(struct passwd *pw) in temporarily_use_uid() argument
77 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid()
109 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in temporarily_use_uid()
110 fatal("initgroups: %s: %.100s", pw->pw_name, in temporarily_use_uid()
136 if (setegid(pw->pw_gid) < 0) in temporarily_use_uid()
137 fatal("setegid %u: %.100s", (u_int)pw->pw_gid, in temporarily_use_uid()
139 if (seteuid(pw->pw_uid) == -1) in temporarily_use_uid()
140 fatal("seteuid %u: %.100s", (u_int)pw->pw_uid, in temporarily_use_uid()
210 permanently_set_uid(struct passwd *pw) in permanently_set_uid() argument
221 if (pw == NULL) in permanently_set_uid()
[all …]
Dauth.c98 allowed_user(struct passwd * pw) in allowed_user() argument
108 if (!pw || !pw->pw_name) in allowed_user()
113 spw = getspnam(pw->pw_name); in allowed_user()
121 passwd = pw->pw_passwd; in allowed_user()
125 passwd = get_iaf_password(pw); in allowed_user()
153 pw->pw_name); in allowed_user()
164 char *shell = xstrdup((pw->pw_shell[0] == '\0') ? in allowed_user()
165 _PATH_BSHELL : pw->pw_shell); /* empty = /bin/sh */ in allowed_user()
169 "does not exist", pw->pw_name, shell); in allowed_user()
176 "is not executable", pw->pw_name, shell); in allowed_user()
[all …]
Dauth-rhosts.c190 auth_rhosts(struct passwd *pw, const char *client_user) in auth_rhosts() argument
196 return auth_rhosts2(pw, client_user, hostname, ipaddr); in auth_rhosts()
200 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2_raw() argument
212 temporarily_use_uid(pw); in auth_rhosts2_raw()
223 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2_raw()
245 if (pw->pw_uid == 0) in auth_rhosts2_raw()
249 client_user, pw->pw_name)) { in auth_rhosts2_raw()
255 client_user, pw->pw_name)) { in auth_rhosts2_raw()
266 if (stat(pw->pw_dir, &st) < 0) { in auth_rhosts2_raw()
268 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw()
[all …]
Dmd5crypt.c51 md5_crypt(const char *pw, const char *salt) in md5_crypt() argument
83 MD5_Update(&ctx, pw, strlen(pw)); in md5_crypt()
93 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
95 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
98 for(pl = strlen(pw); pl > 0; pl -= 16) in md5_crypt()
105 for (j = 0, i = strlen(pw); i != 0; i >>= 1) in md5_crypt()
109 MD5_Update(&ctx, pw + j, 1); in md5_crypt()
124 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
132 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
137 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
Dauth2-pubkey.c175 if (PRIVSEP(user_key_allowed(authctxt->pw, key, 1)) && in userauth_pubkey()
197 if (PRIVSEP(user_key_allowed(authctxt->pw, key, 0))) { in userauth_pubkey()
390 subprocess(const char *tag, struct passwd *pw, const char *command, in subprocess() argument
404 tag, command, pw->pw_name); in subprocess()
411 temporarily_use_uid(pw); in subprocess()
452 child_set_env(&child_env, &envsize, "USER", pw->pw_name); in subprocess()
453 child_set_env(&child_env, &envsize, "LOGNAME", pw->pw_name); in subprocess()
454 child_set_env(&child_env, &envsize, "HOME", pw->pw_dir); in subprocess()
475 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) != 0) { in subprocess()
476 error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid, in subprocess()
[all …]
Dsession.c171 auth_sock_cleanup_proc(struct passwd *pw) in auth_sock_cleanup_proc() argument
174 temporarily_use_uid(pw); in auth_sock_cleanup_proc()
183 auth_input_request_forwarding(struct passwd * pw) in auth_input_request_forwarding() argument
194 temporarily_use_uid(pw); in auth_input_request_forwarding()
256 setproctitle("%s", authctxt->pw->pw_name); in do_authenticated()
297 s->pw = authctxt->pw; in do_authenticated1()
365 success = auth_input_request_forwarding(s->pw); in do_authenticated1()
378 if (channel_input_port_forward_request(s->pw->pw_uid == 0, in do_authenticated1()
560 cray_init_job(s->pw); /* set up cray jid and tmpdir */ in do_exec_no_pty()
701 cray_init_job(s->pw); /* set up cray jid and tmpdir */ in do_exec_pty()
[all …]
Dauth-passwd.c84 struct passwd * pw = authctxt->pw; in auth_password() local
91 if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) in auth_password()
107 HANDLE hToken = cygwin_logon_user(pw, password); in auth_password()
170 struct passwd *pw = authctxt->pw; in sys_auth_passwd() local
174 as = auth_usercheck(pw->pw_name, authctxt->style, "auth-ssh", in sys_auth_passwd()
195 struct passwd *pw = authctxt->pw; in sys_auth_passwd() local
199 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; in sys_auth_passwd()
Dplatform.c102 platform_setusercontext(struct passwd *pw) in platform_setusercontext() argument
112 solaris_set_default_project(pw); in platform_setusercontext()
135 if (getluid() == -1 && setluid(pw->pw_uid) == -1) in platform_setusercontext()
146 platform_setusercontext_post_groups(struct passwd *pw) in platform_setusercontext_post_groups() argument
161 irix_setusercontext(pw); in platform_setusercontext_post_groups()
165 aix_usrinfo(pw); in platform_setusercontext_post_groups()
182 if (setpcred(pw->pw_name, creds) == -1) in platform_setusercontext_post_groups()
187 ssh_selinux_setup_exec_context(pw->pw_name); in platform_setusercontext_post_groups()
Dauth-rh-rsa.c45 auth_rhosts_rsa_key_allowed(struct passwd *pw, char *cuser, char *chost, in auth_rhosts_rsa_key_allowed() argument
54 if (!auth_rhosts(pw, cuser)) in auth_rhosts_rsa_key_allowed()
57 host_status = check_key_in_hostfiles(pw, client_host_key, in auth_rhosts_rsa_key_allowed()
72 struct passwd *pw = authctxt->pw; in auth_rhosts_rsa() local
84 if (!PRIVSEP(auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key))) { in auth_rhosts_rsa()
103 pw->pw_name, cuser, chost); in auth_rhosts_rsa()
Dauth-sia.c83 session_setup_sia(struct passwd *pw, char *tty) in session_setup_sia() argument
90 if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, in session_setup_sia()
94 if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { in session_setup_sia()
102 pw->pw_name, host); in session_setup_sia()
106 pw->pw_name, host); in session_setup_sia()
111 permanently_set_uid(pw); in session_setup_sia()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DDefaultErrorHandler.java56 public DefaultErrorHandler(PrintWriter pw) in DefaultErrorHandler() argument
58 m_pw = pw; in DefaultErrorHandler()
64 public DefaultErrorHandler(PrintStream pw) in DefaultErrorHandler() argument
66 m_pw = new PrintWriter(pw, true); in DefaultErrorHandler()
119 PrintWriter pw = getErrorWriter(); in warning() local
121 printLocation(pw, exception); in warning()
122 pw.println("Parser warning: " + exception.getMessage()); in warning()
200 PrintWriter pw = getErrorWriter(); in warning() local
202 printLocation(pw, exception); in warning()
203 pw.println(exception.getMessage()); in warning()
[all …]
/external/javasqlite/src/main/java/SQLite/
DShell.java29 PrintWriter pw; field in Shell
40 public Shell(PrintWriter pw, PrintWriter err) { in Shell() argument
41 this.pw = pw; in Shell()
46 pw = new PrintWriter(ps); in Shell()
51 Shell s = new Shell(this.pw, this.err); in clone()
183 pw.println(""); in newrow()
186 pw.println(cols[i] + " = " + in newrow()
202 pw.print(csep + cols[i]); in newrow()
207 pw.println(""); in newrow()
215 pw.print(csep + (args[i] == null ? "NULL" : args[i])); in newrow()
[all …]
/external/toybox/toys/pending/
Dipcs.c153 struct passwd *pw; in shm_array() local
211 if ((pw = getpwuid(buf.shm_perm.uid))) in shm_array()
212 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
221 if ((pw = getpwuid(buf.shm_perm.uid))) in shm_array()
222 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
227 if ((pw = getpwuid(buf.shm_perm.cuid))) printf(" %-10s", pw->pw_name); in shm_array()
231 if ((pw = getpwuid(buf.shm_perm.uid))) printf(" %-10s", pw->pw_name); in shm_array()
237 if ((pw = getpwuid(buf.shm_perm.uid))) in shm_array()
238 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
255 struct passwd *pw; in sem_array() local
[all …]
/external/jarjar/src/main/com/tonicsystems/jarjar/
DStringDumper.java28 public void run(String classPath, PrintWriter pw) throws IOException { in run() argument
29 StringReader stringReader = new DumpStringReader(pw); in run()
42 pw.flush(); in run()
53 private final PrintWriter pw; field in StringDumper.DumpStringReader
56 public DumpStringReader(PrintWriter pw) { in DumpStringReader() argument
57 this.pw = pw; in DumpStringReader()
64 pw.println(className.replace('/', '.')); in visitString()
66 pw.print("\t"); in visitString()
68 pw.print(line + ": "); in visitString()
69 pw.print(escapeStringLiteral(value)); in visitString()
[all …]
/external/toybox/toys/posix/
Did.c88 struct passwd *pw; in do_id() local
97 pw = xgetpwnam(username); in do_id()
98 uid = euid = pw->pw_uid; in do_id()
99 gid = egid = pw->pw_gid; in do_id()
100 if (TT.is_groups) printf("%s : ", pw->pw_name); in do_id()
104 pw = xgetpwuid(i ? uid : euid); in do_id()
105 if (toys.optflags&FLAG_u) s_or_u(pw->pw_name, pw->pw_uid, 1); in do_id()
111 showid("uid=", pw->pw_uid, pw->pw_name); in do_id()
116 pw = xgetpwuid(euid); in do_id()
117 showid(" euid=", pw->pw_uid, pw->pw_name); in do_id()
/external/selinux/policycoreutils/newrole/
Dnewrole.c422 struct passwd *pw; in extract_pw_data() local
433 pw = getpwuid(uid); in extract_pw_data()
435 if (!(pw && pw->pw_name && pw->pw_name[0] && pw->pw_shell in extract_pw_data()
436 && pw->pw_shell[0] && pw->pw_dir && pw->pw_dir[0])) { in extract_pw_data()
442 *pw_copy = *pw; in extract_pw_data()
443 pw = pw_copy; in extract_pw_data()
444 pw->pw_name = strdup(pw->pw_name); in extract_pw_data()
445 pw->pw_dir = strdup(pw->pw_dir); in extract_pw_data()
446 pw->pw_shell = strdup(pw->pw_shell); in extract_pw_data()
448 if (!(pw->pw_name && pw->pw_dir && pw->pw_shell)) { in extract_pw_data()
[all …]
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/
DTransliterationChart.java54 PrintWriter pw = openPrintWriter("transChart.html"); in main() local
55pw.println("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>"); in main()
56 pw.println("<title>Indic Transliteration Chart</title><style>"); in main()
57 pw.println("td { text-align: Center; font-size: 200% }"); in main()
58 pw.println("tt { font-size: 50% }"); in main()
59 pw.println("td.miss { background-color: #CCCCFF }"); in main()
60 pw.println("</style></head><body bgcolor='#FFFFFF'>"); in main()
105 pw.println("<table border='1' cellspacing='0'><tr>"); in main()
107 pw.print("<th width='10%'>" + names[i].substring(0,3) + "</th>"); in main()
109 pw.println("</tr>"); in main()
[all …]
/external/openssh/openbsd-compat/
Dport-irix.c47 irix_setusercontext(struct passwd *pw) in irix_setusercontext() argument
59 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); in irix_setusercontext()
72 if ((projid = getdfltprojuser(pw->pw_name)) == -1) { in irix_setusercontext()
78 (int)projid, pw->pw_name, strerror(errno)); in irix_setusercontext()
82 debug("Setting sat id to %d", (int) pw->pw_uid); in irix_setusercontext()
83 if (satsetid(pw->pw_uid)) in irix_setusercontext()
Dport-uw.c56 struct passwd *pw = authctxt->pw; in sys_auth_passwd() local
61 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; in sys_auth_passwd()
75 if (!nischeck(pw->pw_name)) { in sys_auth_passwd()
133 get_iaf_password(struct passwd *pw) in get_iaf_password() argument
138 if (!ia_openinfo(pw->pw_name,&uinfo)) { in get_iaf_password()
/external/curl/lib/
Dcurl_ntlm_core.c419 unsigned char pw[14]; in Curl_ntlm_core_mk_lm_hash() local
425 Curl_strntoupper((char *)pw, password, len); in Curl_ntlm_core_mk_lm_hash()
426 memset(&pw[len], 0, 14 - len); in Curl_ntlm_core_mk_lm_hash()
432 result = Curl_convert_to_network(data, (char *)pw, 14); in Curl_ntlm_core_mk_lm_hash()
442 setup_des_key(pw, DESKEY(ks)); in Curl_ntlm_core_mk_lm_hash()
446 setup_des_key(pw + 7, DESKEY(ks)); in Curl_ntlm_core_mk_lm_hash()
451 setup_des_key(pw, &des); in Curl_ntlm_core_mk_lm_hash()
453 setup_des_key(pw + 7, &des); in Curl_ntlm_core_mk_lm_hash()
459 setup_des_key(pw, &des); in Curl_ntlm_core_mk_lm_hash()
464 setup_des_key(pw + 7, &des); in Curl_ntlm_core_mk_lm_hash()
[all …]
/external/wpa_supplicant_8/src/utils/
Dext_password.c104 void ext_password_free(struct wpabuf *pw) in ext_password_free() argument
106 if (pw == NULL) in ext_password_free()
108 os_memset(wpabuf_mhead(pw), 0, wpabuf_len(pw)); in ext_password_free()
110 if (munlock(wpabuf_head(pw), wpabuf_len(pw)) < 0) { in ext_password_free()
115 wpabuf_free(pw); in ext_password_free()
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/index/
DIndexGenerator.java67 PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(outFile))); in main() local
69pw.println("# Generated by " + IndexGenerator.class.getName() + " on " + fmt.format(now)); in main()
70 pw.println("# from contents of " + inDir.getCanonicalPath()); in main()
71 pw.println(copyfmt.format(now)); in main()
74 pw.println(i.next()); in main()
77 pw.println("# Found " + count + " files"); in main()
78 pw.println("# End of file"); in main()
82 pw.close(); in main()

1234567891011