/third_party/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/ |
D | CppMetadataGenerator.java | 112 PrintWriter pw = new PrintWriter(out); in outputHeaderFile() local 113 CopyrightNotice.writeTo(pw, type.getCopyrightYear()); in outputHeaderFile() 114 pw.println("#ifndef " + guardName); in outputHeaderFile() 115 pw.println("#define " + guardName); in outputHeaderFile() 116 pw.println(); in outputHeaderFile() 117 emitNamespaceStart(pw); in outputHeaderFile() 118 pw.println(); in outputHeaderFile() 119 pw.println("int " + type + "_size();"); in outputHeaderFile() 120 pw.println("const void* " + type + "_get();"); in outputHeaderFile() 121 pw.println(); in outputHeaderFile() [all …]
|
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
D | ReportAPI.java | 78 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 …]
|
D | CollectAPI.java | 44 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 …]
|
/third_party/icu/tools/multi/proj/icu4jscan/src/com/ibm/icu/dev/scan/ |
D | CapDocument.java | 21 public void write(PrintWriter pw, int i) { in write() argument 22 writeIndent(pw,i); in write() 23 pw.write(getName()+"\n"); in write() 31 public void write(PrintWriter pw, int indent) { in write() argument 32 writeIndent(pw,indent); in write() 33 pw.write("<!-- "+getName()+" -->\n"); in write() 47 public void write(PrintWriter pw, int indent) { in write() argument 49 writeIndent(pw,indent); in write() 50 pw.write("<"+getName()); in write() 54 pw.write(" "+o.getKey().toString()+"=\""+o.getValue()+"\""); in write() [all …]
|
/third_party/icu/tools/currency/src/com/ibm/icu/dev/tool/currency/ |
D | NumericCodeData.java | 83 PrintWriter pw = new PrintWriter(osw, true); in writeResource() local 86 pw.println("//---------------------------------------------------------"); in writeResource() 87 pw.println("// Copyright (C) 2016 and later: Unicode, Inc. and others."); in writeResource() 88 pw.println("// License & terms of use: http://www.unicode.org/copyright.html"); in writeResource() 89 pw.println("//---------------------------------------------------------"); in writeResource() 90 pw.println("// Copyright (C) 2013, International Business Machines"); in writeResource() 91 pw.println("// Corporation and others. All Rights Reserved."); in writeResource() 92 pw.println("//---------------------------------------------------------"); in writeResource() 93 pw.println("// Build tool: com.ibm.icu.dev.tool.currency.NumericCodeData"); in writeResource() 94 pw.println(String.format("// Build date: %1$tFT%1$tTZ", cal)); in writeResource() [all …]
|
/third_party/musl/src/passwd/ |
D | getpw_a.c | 20 int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct pass… in __getpw_a() argument 36 while (!(rv = __getpwent_a(f, pw, buf, size, res)) && *res) { in __getpw_a() 107 pw->pw_name = *buf; in __getpw_a() 108 pw->pw_passwd = pw->pw_name + passwdbuf[PWNAMELEN]; in __getpw_a() 109 pw->pw_gecos = pw->pw_passwd + passwdbuf[PWPASSWDLEN]; in __getpw_a() 110 pw->pw_dir = pw->pw_gecos + passwdbuf[PWGECOSLEN]; in __getpw_a() 111 pw->pw_shell = pw->pw_dir + passwdbuf[PWDIRLEN]; in __getpw_a() 112 pw->pw_uid = passwdbuf[PWUID]; in __getpw_a() 113 pw->pw_gid = passwdbuf[PWGID]; in __getpw_a() 119 if (pw->pw_passwd[-1] || pw->pw_gecos[-1] || pw->pw_dir[-1] in __getpw_a() [all …]
|
D | getpwent_a.c | 11 int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res) in __getpwent_a() argument 23 pw = 0; in __getpwent_a() 29 pw->pw_name = s++; in __getpwent_a() 32 *s++ = 0; pw->pw_passwd = s; in __getpwent_a() 35 *s++ = 0; pw->pw_uid = atou(&s); in __getpwent_a() 38 *s++ = 0; pw->pw_gid = atou(&s); in __getpwent_a() 41 *s++ = 0; pw->pw_gecos = s; in __getpwent_a() 44 *s++ = 0; pw->pw_dir = s; in __getpwent_a() 47 *s++ = 0; pw->pw_shell = s; in __getpwent_a() 51 *res = pw; in __getpwent_a()
|
D | putpwent.c | 5 int putpwent(const struct passwd *pw, FILE *f) in putpwent() argument 8 pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, in putpwent() 9 pw->pw_gecos, pw->pw_dir, pw->pw_shell)<0 ? -1 : 0; in putpwent()
|
D | getpw_r.c | 4 #define FIX(x) (pw->pw_##x = pw->pw_##x-line+buf) 6 static int getpw_r(const char *name, uid_t uid, struct passwd *pw, char *buf, size_t size, struct p… in getpw_r() argument 15 rv = __getpw_a(name, uid, pw, &line, &len, res); in getpw_r() 34 int getpwnam_r(const char *name, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwnam_r() argument 36 return getpw_r(name, 0, pw, buf, size, res); in getpwnam_r() 39 int getpwuid_r(uid_t uid, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwuid_r() argument 41 return getpw_r(0, uid, pw, buf, size, res); in getpwuid_r()
|
/third_party/toybox/toys/pending/ |
D | ipcs.c | 153 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 …]
|
/third_party/toybox/toys/posix/ |
D | id.c | 88 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()
|
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/ |
D | TransliterationChart.java | 56 PrintWriter pw = openPrintWriter("transChart.html"); in main() local 57 … pw.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 …]
|
/third_party/openGLES/extensions/SGIS/ |
D | SGIS_point_line_texgen.txt | 58 P is a point (px/pw, py/pw, pz/pw) 68 <params> pointing to an array containing px, py, pz, and pw, respectively. 74 P is a point (px'/pw', py'/pw', pz'/pw') where 78 (px', py', pz', pw') = M |pz| 79 |pw| 89 <params> pointing to an array containing px, py, pz, and pw, respectively. 99 P is a point (px/pw, py/pw, pz/pw) 116 pz, pw, dx, dy, and dz, respectively. 122 P is a point (px'/pw', py'/pw', pz'/pw') where 126 (px', py', pz', pw') = M |pz| [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/SGIS/ |
D | SGIS_point_line_texgen.txt | 58 P is a point (px/pw, py/pw, pz/pw) 68 <params> pointing to an array containing px, py, pz, and pw, respectively. 74 P is a point (px'/pw', py'/pw', pz'/pw') where 78 (px', py', pz', pw') = M |pz| 79 |pw| 89 <params> pointing to an array containing px, py, pz, and pw, respectively. 99 P is a point (px/pw, py/pw, pz/pw) 116 pz, pw, dx, dy, and dz, respectively. 122 P is a point (px'/pw', py'/pw', pz'/pw') where 126 (px', py', pz', pw') = M |pz| [all …]
|
/third_party/ffmpeg/tests/checkasm/ |
D | videodsp.c | 37 call_ref((type *) dst0, (const type *) (src0 + y * pw + x), \ 38 bw * sizeof(type), pw * sizeof(type), \ 39 bw, bh, x, y, pw, ph); \ 40 call_new((type *) dst1, (const type *) (src1 + y * pw + x), \ 41 bw * sizeof(type), pw * sizeof(type), \ 42 bw, bh, x, y, pw, ph); \ 45 bench_new((type *) dst1, (const type *) (src1 + y * pw + x),\ 46 bw * sizeof(type), pw * sizeof(type), \ 47 bw, bh, x, y, pw, ph); \ 55 int pw = src_w, ph = src_h; \ [all …]
|
/third_party/toybox/toys/lsb/ |
D | passwd.c | 58 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()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
D | 9-1.c | 38 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()
|
D | 8-1.c | 39 struct passwd *pw; in main() local 62 while ((pw = getpwent()) != NULL) in main() 63 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main() 66 if (pw == NULL) { in main() 71 if (seteuid(pw->pw_uid) != 0) { in main() 81 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
D | 6-1.c | 34 struct passwd *pw; in set_nonroot() local 37 while ((pw = getpwent()) != NULL) in set_nonroot() 38 if (pw->pw_uid != 0) in set_nonroot() 41 if (pw == NULL) { in set_nonroot() 46 if (setgid(pw->pw_gid) != 0) { in set_nonroot() 55 if (setuid(pw->pw_uid) != 0) { in set_nonroot() 66 pw->pw_name, geteuid(), getuid()); in set_nonroot()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 26-2.c | 42 struct passwd *pw; in main() local 72 while ((pw = getpwent()) != NULL) in main() 73 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main() 76 if (pw == NULL) { in main() 82 if (seteuid(pw->pw_uid) != 0) { in main() 93 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
|
/third_party/pulseaudio/src/tests/ |
D | usergroup-test.c | 35 static int load_reference_structs(struct group **gr, struct passwd **pw) { in load_reference_structs() argument 37 *pw = getpwent(); in load_reference_structs() 44 return (*gr && *pw) ? 0 : 1; in load_reference_structs() 122 struct passwd *pw; in START_TEST() local 139 pw = pa_getpwuid_malloc(reference_passwd->pw_uid); in START_TEST() 140 fail_if(compare_passwd(reference_passwd, pw)); in START_TEST() 141 pa_getpwuid_free(pw); in START_TEST() 144 pw = pa_getpwnam_malloc(reference_passwd->pw_name); in START_TEST() 145 fail_if(compare_passwd(reference_passwd, pw)); in START_TEST() 146 pa_getpwnam_free(pw); in START_TEST()
|
/third_party/cups-filters/backend/ |
D | cups-brf.c | 44 struct passwd *pw; in main() local 78 pw = getpwnam(user); in main() 79 if (pw == NULL) { in main() 83 if (setgid(pw->pw_gid)) { in main() 84 fprintf(stderr, "ERROR: turning gid into %u\n", pw->pw_gid); in main() 87 if (setuid(pw->pw_uid)) { in main() 88 fprintf(stderr, "ERROR: turning uid into %u\n", pw->pw_uid); in main() 96 if (asprintf(&dir, "%s/BRF", pw->pw_dir) < 0) { in main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | ap_config.c | 477 struct sae_password_entry *pw; in hostapd_setup_sae_pt() local 497 for (pw = conf->sae_passwords; pw; pw = pw->next) { in hostapd_setup_sae_pt() 498 sae_deinit_pt(pw->pt); in hostapd_setup_sae_pt() 499 pw->pt = sae_derive_pt(conf->sae_groups, ssid->ssid, in hostapd_setup_sae_pt() 501 (const u8 *) pw->password, in hostapd_setup_sae_pt() 502 os_strlen(pw->password), in hostapd_setup_sae_pt() 503 pw->identifier); in hostapd_setup_sae_pt() 504 if (!pw->pt) in hostapd_setup_sae_pt() 718 struct sae_password_entry *pw, *tmp; in hostapd_config_free_sae_passwords() local 720 pw = conf->sae_passwords; in hostapd_config_free_sae_passwords() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
D | 3-1.c | 33 struct passwd *pw; in set_nonroot() local 36 while ((pw = getpwent()) != NULL) in set_nonroot() 37 if (strcmp(pw->pw_name, "root")) in set_nonroot() 40 if (pw == NULL) { in set_nonroot() 45 if (setuid(pw->pw_uid) != 0) { in set_nonroot() 56 pw->pw_name, (int)getuid(), (int)geteuid()); in set_nonroot()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/ |
D | 7-1.c | 26 struct passwd *pw; in set_nonroot() local 29 while ((pw = getpwent()) != NULL) in set_nonroot() 30 if (strcmp(pw->pw_name, "root")) in set_nonroot() 33 if (pw == NULL) { in set_nonroot() 38 if (seteuid(pw->pw_uid) != 0) { in set_nonroot() 49 pw->pw_name, (int)geteuid()); in set_nonroot()
|