Home
last modified time | relevance | path

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

12345678910>>...13

/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DReportAPI.java78 public void print(PrintWriter pw, boolean detail, boolean html) { in print() argument
79 pw.print(" "); in print()
80 removed.print(pw, detail, html); in print()
82 pw.println("</br>"); in print()
84 pw.println(); in print()
85 pw.print("--> "); in print()
87 added.print(pw, detail, html); in print()
279 PrintWriter pw = null; in writeReport() local
281 pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(os, "UTF-8"))); in writeReport()
296 pw.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); in writeReport()
[all …]
DCollectAPI.java44 PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fos, "UTF-8"))); in writeHTML() local
49 pw.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); in writeHTML()
50 pw.println("<html>"); in writeHTML()
51 pw.println("<head>"); in writeHTML()
52 pw.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"); in writeHTML()
53 pw.println("<title>" + title + "</title>"); in writeHTML()
54 pw.println("</head>"); in writeHTML()
55 pw.println("<body>"); in writeHTML()
57 pw.println("<h1>" + title + "</h1>"); in writeHTML()
81 pw.println("<h2>Status Version: " + ver + "</h2>"); in writeHTML()
[all …]
DSwatDeprecated.java39 private PrintWriter pw = new PrintWriter(System.out); field in SwatDeprecated
125 pw.println("replacing '" + srcTag + "'"); in SwatDeprecated()
126 pw.println(" with '" + trgTag + "'"); in SwatDeprecated()
127 pw.println(); in SwatDeprecated()
128 pw.println(" source: '" + srcPrefix + "'"); in SwatDeprecated()
129 pw.println("destination: '" + dstPrefix + "'"); in SwatDeprecated()
130 pw.println(" overwrite: " + overwrite); in SwatDeprecated()
131 pw.println(" verbosity: " + verbosity); in SwatDeprecated()
132 pw.flush(); in SwatDeprecated()
142 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()
216 permanently_set_uid(struct passwd *pw) in permanently_set_uid() argument
227 if (pw == NULL) in permanently_set_uid()
[all …]
Dauth.c100 allowed_user(struct passwd * pw) in allowed_user() argument
112 if (!pw || !pw->pw_name) in allowed_user()
117 spw = getspnam(pw->pw_name); in allowed_user()
125 passwd = pw->pw_passwd; in allowed_user()
129 passwd = get_iaf_password(pw); in allowed_user()
157 pw->pw_name); in allowed_user()
168 char *shell = xstrdup((pw->pw_shell[0] == '\0') ? in allowed_user()
169 _PATH_BSHELL : pw->pw_shell); /* empty = /bin/sh */ in allowed_user()
173 "does not exist", pw->pw_name, shell); in allowed_user()
180 "is not executable", pw->pw_name, shell); in allowed_user()
[all …]
Dauth-rhosts.c190 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2() argument
202 temporarily_use_uid(pw); in auth_rhosts2()
213 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2()
235 if (pw->pw_uid == 0) in auth_rhosts2()
239 client_user, pw->pw_name)) { in auth_rhosts2()
245 client_user, pw->pw_name)) { in auth_rhosts2()
256 if (stat(pw->pw_dir, &st) < 0) { in auth_rhosts2()
258 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2()
260 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2()
264 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2()
[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.c178 if (PRIVSEP(user_key_allowed(authctxt->pw, key, 1)) && in userauth_pubkey()
201 if (PRIVSEP(user_key_allowed(authctxt->pw, key, 0))) { in userauth_pubkey()
395 subprocess(const char *tag, struct passwd *pw, const char *command, in subprocess() argument
409 tag, command, pw->pw_name); in subprocess()
416 temporarily_use_uid(pw); in subprocess()
457 child_set_env(&child_env, &envsize, "USER", pw->pw_name); in subprocess()
458 child_set_env(&child_env, &envsize, "LOGNAME", pw->pw_name); in subprocess()
459 child_set_env(&child_env, &envsize, "HOME", pw->pw_dir); in subprocess()
480 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) != 0) { in subprocess()
481 error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid, in subprocess()
[all …]
Dauth-passwd.c86 struct passwd * pw = authctxt->pw; in auth_password() local
96 if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) in auth_password()
112 HANDLE hToken = cygwin_logon_user(pw, password); in auth_password()
175 struct passwd *pw = authctxt->pw; in sys_auth_passwd() local
179 as = auth_usercheck(pw->pw_name, authctxt->style, "auth-ssh", in sys_auth_passwd()
200 struct passwd *pw = authctxt->pw; in sys_auth_passwd() local
204 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; in sys_auth_passwd()
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()
419 cray_init_job(s->pw); /* set up cray jid and tmpdir */ in do_exec_no_pty()
547 cray_init_job(s->pw); /* set up cray jid and tmpdir */ in do_exec_pty()
605 record_utmp_only(pid, s->tty, s->pw->pw_name, in do_pre_login()
660 s->pw->pw_name, in do_exec()
669 char *shell = s->pw->pw_shell; in do_exec()
[all …]
Dplatform.c98 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()
/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/selinux/policycoreutils/newrole/
Dnewrole.c418 struct passwd *pw; in extract_pw_data() local
429 pw = getpwuid(uid); in extract_pw_data()
431 if (!(pw && pw->pw_name && pw->pw_name[0] && pw->pw_shell in extract_pw_data()
432 && pw->pw_shell[0] && pw->pw_dir && pw->pw_dir[0])) { in extract_pw_data()
438 *pw_copy = *pw; in extract_pw_data()
439 pw = pw_copy; in extract_pw_data()
440 pw->pw_name = strdup(pw->pw_name); in extract_pw_data()
441 pw->pw_dir = strdup(pw->pw_dir); in extract_pw_data()
442 pw->pw_shell = strdup(pw->pw_shell); in extract_pw_data()
444 if (!(pw->pw_name && pw->pw_dir && pw->pw_shell)) { in extract_pw_data()
[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/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/
D9-1.c39 struct passwd *pw; in main() local
49 while ((pw = getpwent()) != NULL) in main()
50 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
53 if (pw == NULL) { in main()
58 if (seteuid(pw->pw_uid) != 0) { in main()
68 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
D8-1.c40 struct passwd *pw; in main() local
63 while ((pw = getpwent()) != NULL) in main()
64 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
67 if (pw == NULL) { in main()
72 if (seteuid(pw->pw_uid) != 0) { in main()
82 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/
DTransliterationChart.java56 PrintWriter pw = openPrintWriter("transChart.html"); in main() local
57pw.println("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>"); in main()
58 pw.println("<title>Indic Transliteration Chart</title><style>"); in main()
59 pw.println("td { text-align: Center; font-size: 200% }"); in main()
60 pw.println("tt { font-size: 50% }"); in main()
61 pw.println("td.miss { background-color: #CCCCFF }"); in main()
62 pw.println("</style></head><body bgcolor='#FFFFFF'>"); in main()
107 pw.println("<table border='1' cellspacing='0'><tr>"); in main()
109 pw.print("<th width='10%'>" + names[i].substring(0,3) + "</th>"); in main()
111 pw.println("</tr>"); in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
D6-1.c35 struct passwd *pw; in set_nonroot() local
38 while ((pw = getpwent()) != NULL) in set_nonroot()
39 if (pw->pw_uid != 0) in set_nonroot()
42 if (pw == NULL) { in set_nonroot()
47 if (setgid(pw->pw_gid) != 0) { in set_nonroot()
56 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
67 pw->pw_name, geteuid(), getuid()); in set_nonroot()
/external/openssh/openbsd-compat/
Dxcrypt.c75 struct passwd *pw; in pick_salt() local
84 while ((pw = getpwent()) != NULL) { in pick_salt()
85 passwd = shadow_pw(pw); in pick_salt()
135 shadow_pw(struct passwd *pw) in shadow_pw() argument
137 char *pw_password = pw->pw_passwd; in shadow_pw()
140 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw()
147 return(get_iaf_password(pw)); in shadow_pw()
152 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in shadow_pw()
155 struct pr_passwd *spw = getprpwnam(pw->pw_name); in shadow_pw()
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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D26-2.c43 struct passwd *pw; in main() local
73 while ((pw = getpwent()) != NULL) in main()
74 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
77 if (pw == NULL) { in main()
83 if (seteuid(pw->pw_uid) != 0) { in main()
94 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
D3-1.c34 struct passwd *pw; in set_nonroot() local
37 while ((pw = getpwent()) != NULL) in set_nonroot()
38 if (strcmp(pw->pw_name, "root")) in set_nonroot()
41 if (pw == NULL) { in set_nonroot()
46 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
57 pw->pw_name, (int)getuid(), (int)geteuid()); in set_nonroot()

12345678910>>...13