/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/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 | 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 | 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()
|
/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/boost/boost/smart_ptr/detail/ |
D | sp_counted_base_gcc_ppc.hpp | 46 inline void atomic_increment( int * pw ) in atomic_increment() argument 60 "=m"( *pw ), "=&b"( tmp ): in atomic_increment() 61 "r"( pw ), "m"( *pw ): in atomic_increment() 66 inline int atomic_decrement( int * pw ) in atomic_decrement() argument 82 "=m"( *pw ), "=&b"( rv ): in atomic_decrement() 83 "r"( pw ), "m"( *pw ): in atomic_decrement() 90 inline int atomic_conditional_increment( int * pw ) in atomic_conditional_increment() argument 108 "=m"( *pw ), "=&b"( rv ): in atomic_conditional_increment() 109 "r"( pw ), "m"( *pw ): in atomic_conditional_increment()
|
D | sp_counted_base_spin.hpp | 38 inline int atomic_exchange_and_add( int * pw, int dv ) in atomic_exchange_and_add() argument 40 spinlock_pool<1>::scoped_lock lock( pw ); in atomic_exchange_and_add() 42 int r = *pw; in atomic_exchange_and_add() 43 *pw += dv; in atomic_exchange_and_add() 47 inline void atomic_increment( int * pw ) in atomic_increment() argument 49 spinlock_pool<1>::scoped_lock lock( pw ); in atomic_increment() 50 ++*pw; in atomic_increment() 53 inline int atomic_conditional_increment( int * pw ) in atomic_conditional_increment() argument 55 spinlock_pool<1>::scoped_lock lock( pw ); in atomic_conditional_increment() 57 int rv = *pw; in atomic_conditional_increment() [all …]
|
D | sp_counted_base_snc_ps3.hpp | 47 inline uint32_t atomic_fetch_and_add( uint32_t * pw, uint32_t dv ) in atomic_fetch_and_add() argument 55 uint32_t r = *pw; in atomic_fetch_and_add() 57 if( __builtin_expect((compare_and_swap(pw, r, r + dv) == r), 1) ) in atomic_fetch_and_add() 64 inline void atomic_increment( uint32_t * pw ) in atomic_increment() argument 66 (void) __builtin_cellAtomicIncr32( pw ); in atomic_increment() 69 inline uint32_t atomic_decrement( uint32_t * pw ) in atomic_decrement() argument 71 return __builtin_cellAtomicDecr32( pw ); in atomic_decrement() 74 inline uint32_t atomic_conditional_increment( uint32_t * pw ) in atomic_conditional_increment() argument 82 uint32_t r = *pw; in atomic_conditional_increment() 89 if( __builtin_expect( ( compare_and_swap( pw, r, r + 1 ) == r ), 1 ) ) in atomic_conditional_increment()
|
D | sp_counted_base_gcc_ia64.hpp | 38 inline void atomic_increment( int * pw ) in atomic_increment() argument 48 "=r"(tmp), "=m"(*pw) : in atomic_increment() 49 "m"( *pw )); in atomic_increment() 52 inline int atomic_decrement( int * pw ) in atomic_decrement() argument 61 "=&r"(rv), "=m"(*pw) : in atomic_decrement() 62 "m"( *pw ) : in atomic_decrement() 68 inline int atomic_conditional_increment( int * pw ) in atomic_conditional_increment() argument 85 "=&r"(rv), "=&r"(tmp), "=&r"(tmp2), "=m"(*pw) : in atomic_conditional_increment() 86 "m"( *pw ) : in atomic_conditional_increment()
|
D | sp_counted_base_gcc_x86.hpp | 46 inline int atomic_exchange_and_add( int * pw, int dv ) in atomic_exchange_and_add() argument 58 "=m"( *pw ), "=r"( r ): // outputs (%0, %1) in atomic_exchange_and_add() 59 "m"( *pw ), "1"( dv ): // inputs (%2, %3 == %1) in atomic_exchange_and_add() 66 inline void atomic_increment( int * pw ) in atomic_increment() argument 74 "=m"( *pw ): // output (%0) in atomic_increment() 75 "m"( *pw ): // input (%1) in atomic_increment() 80 inline int atomic_conditional_increment( int * pw ) in atomic_conditional_increment() argument 100 "=m"( *pw ), "=&a"( rv ), "=&r"( tmp ): // outputs (%0, %1, %2) in atomic_conditional_increment() 101 "m"( *pw ): // input (%3) in atomic_conditional_increment()
|
D | sp_counted_base_gcc_sparc.hpp | 52 inline int32_t atomic_fetch_and_add( int32_t * pw, int32_t dv ) in atomic_fetch_and_add() argument 60 int32_t r = *pw; in atomic_fetch_and_add() 62 if( __builtin_expect((compare_and_swap(pw, r, r + dv) == r), 1) ) in atomic_fetch_and_add() 69 inline void atomic_increment( int32_t * pw ) in atomic_increment() argument 71 atomic_fetch_and_add( pw, 1 ); in atomic_increment() 74 inline int32_t atomic_decrement( int32_t * pw ) in atomic_decrement() argument 76 return atomic_fetch_and_add( pw, -1 ); in atomic_decrement() 79 inline int32_t atomic_conditional_increment( int32_t * pw ) in atomic_conditional_increment() argument 87 int32_t r = *pw; in atomic_conditional_increment() 94 if( __builtin_expect( ( compare_and_swap( pw, r, r + 1 ) == r ), 1 ) ) in atomic_conditional_increment()
|
D | sp_counted_base_gcc_mips.hpp | 42 inline void atomic_increment( int * pw ) in atomic_increment() argument 60 "=&r"( tmp ), "=m"( *pw ): in atomic_increment() 61 "m"( *pw ) in atomic_increment() 65 inline int atomic_decrement( int * pw ) in atomic_decrement() argument 84 "=&r"( rv ), "=&r"( tmp ), "=m"( *pw ): in atomic_decrement() 85 "m"( *pw ): in atomic_decrement() 92 inline int atomic_conditional_increment( int * pw ) in atomic_conditional_increment() argument 114 "=&r"( rv ), "=&r"( tmp ), "=m"( *pw ): in atomic_conditional_increment() 115 "m"( *pw ): in atomic_conditional_increment()
|
D | sp_counted_base_gcc_atomic.hpp | 33 inline void atomic_increment( boost::uint_least32_t * pw ) in atomic_increment() argument 35 __atomic_fetch_add( pw, 1, __ATOMIC_RELAXED ); in atomic_increment() 38 inline boost::uint_least32_t atomic_decrement( boost::uint_least32_t * pw ) in atomic_decrement() argument 40 return __atomic_fetch_sub( pw, 1, __ATOMIC_ACQ_REL ); in atomic_decrement() 43 inline boost::uint_least32_t atomic_conditional_increment( boost::uint_least32_t * pw ) in atomic_conditional_increment() argument 49 boost::uint_least32_t r = __atomic_load_n( pw, __ATOMIC_RELAXED ); in atomic_conditional_increment() 58 if( __atomic_compare_exchange_n( pw, &r, r + 1, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED ) ) in atomic_conditional_increment() 65 inline boost::uint_least32_t atomic_load( boost::uint_least32_t const * pw ) in atomic_load() argument 67 return __atomic_load_n( pw, __ATOMIC_ACQUIRE ); in atomic_load()
|
D | sp_counted_base_cw_ppc.hpp | 46 inline void atomic_increment( register long * pw ) in atomic_increment() argument 54 lwarx a, 0, pw in atomic_increment() 56 stwcx. a, 0, pw in atomic_increment() 61 inline long atomic_decrement( register long * pw ) in atomic_decrement() argument 71 lwarx a, 0, pw in atomic_decrement() 73 stwcx. a, 0, pw in atomic_decrement() 82 inline long atomic_conditional_increment( register long * pw ) in atomic_conditional_increment() argument 90 lwarx a, 0, pw in atomic_conditional_increment() 98 stwcx. a, 0, pw in atomic_conditional_increment()
|
/third_party/boost/boost/chrono/io/utility/ |
D | ios_base_state_ptr.hpp | 102 void* &pw = ios_.pword(index()); in get() local 103 if (pw == 0) in get() 107 return static_cast<const T*> (pw); in get() 118 void* &pw = ios_.pword(index()); in get() local 119 if (pw == 0) in get() 123 return static_cast<T*> (pw); in get() 167 void*& pw = ios_.pword(index()); in release() local 168 T* ptr = static_cast<T*> (pw); in release() 169 pw = 0; in release() 181 void*& pw = ios_.pword(index()); in reset() local [all …]
|
/third_party/gettext/gettext-tools/misc/ |
D | cvsuser.c | 45 static struct passwd pw; in getpwnam() local 48 pw.pw_name = strcpy (namebuf, name); in getpwnam() 49 pw.pw_passwd = "*"; in getpwnam() 50 pw.pw_uid = 100; in getpwnam() 51 pw.pw_gid = 100; in getpwnam() 52 pw.pw_gecos = ""; in getpwnam() 53 pw.pw_dir = "/"; in getpwnam() 54 pw.pw_shell = "/bin/sh"; in getpwnam() 56 return &pw; in getpwnam()
|
/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/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()
|
/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/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 …]
|