Home
last modified time | relevance | path

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

12345678910>>...24

/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 …]
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 …]
/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/libpcap/
Dpcap-npf.c194 struct pcap_win *pw = p->priv; in pcap_stats_npf() local
211 if (!PacketGetStats(pw->adapter, &bstats)) { in pcap_stats_npf()
257 struct pcap_win *pw = p->priv; in pcap_stats_ex_npf() local
270 if (!PacketGetStatsEx(pw->adapter, &bstats)) { in pcap_stats_ex_npf()
289 struct pcap_win *pw = p->priv; in pcap_setbuff_npf() local
291 if(PacketSetBuff(pw->adapter,dim)==FALSE) in pcap_setbuff_npf()
303 struct pcap_win *pw = p->priv; in pcap_setmode_npf() local
305 if(PacketSetMode(pw->adapter,mode)==FALSE) in pcap_setmode_npf()
318 struct pcap_win *pw = p->priv; in pcap_setmintocopy_npf() local
320 if(PacketSetMinToCopy(pw->adapter, size)==FALSE) in pcap_setmintocopy_npf()
[all …]
/external/puffin/src/
Dpuff_io_unittest.cc18 BufferPuffWriter pw(buf.data(), buf.size()); in TestLiteralLength() local
22 ASSERT_TRUE(pw.Insert(pd)); in TestLiteralLength()
36 ASSERT_TRUE(pw.Insert(pd)); in TestLiteralLength()
37 ASSERT_TRUE(pw.Flush()); in TestLiteralLength()
42 ASSERT_TRUE(pw.Insert(pd)); in TestLiteralLength()
65 BufferPuffWriter pw(buf.data(), buf.size()); in TEST() local
75 ASSERT_TRUE(pw.Insert(pd)); in TEST()
77 ASSERT_TRUE(pw.Flush()); in TEST()
93 ASSERT_TRUE(pw.Insert(pd)); in TEST()
96 ASSERT_TRUE(pw.Insert(pd)); in TEST()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateTempDateData.java28 …PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY + "datedata/", "DateData.jav… in main() local
29 pw.println("package com.ibm.icu.impl.data;"); in main()
30 pw.println("import java.util.ListResourceBundle;"); in main()
31 pw.println("class DateData { // extracted from CLDR 1.4"); in main()
41 gotOne = doHeader(pw, locale, gotOne); in main()
44pw.println(" {\"pattern/" + id + "\",\"" + com.ibm.icu.impl.Utility.escape(pattern) + "\"},"); in main()
46 gotOne = doHeader(pw, locale, gotOne); in main()
49pw.println(" {\"append/" + request + "\",\"" + com.ibm.icu.impl.Utility.escape(pattern) in main()
52 gotOne = doHeader(pw, locale, gotOne); in main()
55pw.println(" {\"field/" + type + "\",\"" + com.ibm.icu.impl.Utility.escape(pattern) + "\"},"); in main()
[all …]
DGenerateSubdivisions.java88 …try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/" + sourc… in main() argument
89 sdset1.print(pw); in main()
101 …try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/subdivisi… in main() argument
102 sdset.printXml(pw); in main()
104 …try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/subdivisi… in main() argument
105 sdset.printAliases(pw); in main()
107 …try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/en.xml"))… in main() argument
108 sdset.printEnglish(pw); in main()
110 …try (PrintWriter pw = FileUtilities.openUTF8Writer(CLDRPaths.GEN_DIRECTORY, "subdivision/categorie… in main() argument
111 sdset.printSamples(pw); in main()
[all …]
DGenerateTransformCharts.java593 PrintWriter pw = FileUtilities.openUTF8Writer(TRANSFORM_DIRECTORY, filename);
606 pw.println(headerAndFooter[0]);
619 pw.println(
624 pw.println("<div align='center'>");
625 pw.println("<table border='1' cellspacing='0' cellpadding='8'>");
626 pw.println("<tr>");
627 pw.println("<th>" + scriptChoice + "-Latin</th>");
630 pw.println("<th>Latin-" + scriptChoice + "</th>");
634 pw.println("</tr><tr><td class='main'>");
636 …doMainTable(parsedID, targetVariant, pw, nonLatinToLatinTagged, true, scriptChoice.getFirst(), tot…
[all …]
DShowData.java228 PrintWriter pw = FileUtilities.openUTF8Writer(targetDir, locale + ".html"); in main() local
242 pw.println(headerAndFooter[0]); in main()
243 showLinks(pw, locale); in main()
244 showChildren(pw, locale); in main()
246 pw.println("<p><b>Aliased/Inherited: </b><a href='" + locale in main()
250 pw.println("<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\">"); in main()
252 pw.println("<tr><th>No</th>" in main()
326 pw.println( in main()
340 showValue(pw, value, null, isExemplar); in main()
343 showValue(pw, x.getKey(), x.getValue(), isExemplar); in main()
[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/u-boot/cmd/
Dtpm-v2.c59 const char *pw = (argc < 3) ? NULL : argv[2]; in do_tpm2_clear() local
60 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm2_clear()
75 return report_return_code(tpm2_clear(handle, pw, pw_sz)); in do_tpm2_clear()
187 const char *pw = (argc < 2) ? NULL : argv[1]; in do_tpm_dam_reset() local
188 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_dam_reset()
196 return report_return_code(tpm2_dam_reset(pw, pw_sz)); in do_tpm_dam_reset()
202 const char *pw = (argc < 5) ? NULL : argv[4]; in do_tpm_dam_parameters() local
203 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_dam_parameters()
232 return report_return_code(tpm2_dam_parameters(pw, pw_sz, max_tries, in do_tpm_dam_parameters()
272 const char *pw = (argc < 4) ? NULL : argv[3]; in do_tpm_pcr_setauthpolicy() local
[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/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/shm_unlink/
D9-1.c38 struct passwd *pw; in main() local
48 while ((pw = getpwent()) != NULL) in main()
49 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main()
52 if (pw == NULL) { in main()
57 if (seteuid(pw->pw_uid) != 0) { in main()
67 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
/external/toybox/toys/lsb/
Dpasswd.c58 struct passwd *pw = 0; in passwd_main() local
65 if (*toys.optargs) pw = xgetpwnam(*toys.optargs); in passwd_main()
66 else pw = xgetpwuid(myuid); in passwd_main()
68 if (!pw || (myuid && (myuid != pw->pw_uid))) error_exit("Not root"); in passwd_main()
72 name = pw->pw_name; in passwd_main()
73 if (*(pass = pw->pw_passwd)=='x' && (sp = getspnam(name))) pass = sp->sp_pwdp; in passwd_main()
94 pass = crypt(toybuf+2048, pw->pw_passwd); in passwd_main()
95 if (!pass || strcmp(pass, pw->pw_passwd)) error_exit("No"); in passwd_main()
108 ret = update_password(*pw->pw_passwd=='x' ? "/etc/shadow" : "/etc/passwd", in passwd_main()

12345678910>>...24