/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | scr_ll_dump.c | 55 if (fwrite((char *) &magic, sizeof (short), 1, filep) != 1) in scr_ll_dump() 64 if (fwrite((char *) &(statbuf.st_mtime), sizeof (time_t), in scr_ll_dump() 77 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump() 83 if ((fwrite((char *) &labmax, in scr_ll_dump() 85 (fwrite((char *) &lablen, sizeof (short), in scr_ll_dump() 90 if ((fwrite(slk->_ldis[i], sizeof (char), lablen, in scr_ll_dump() 91 filep) != lablen) || (fwrite(slk->_lval[i], in scr_ll_dump() 106 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump() 110 if ((fwrite((char *) &COLORS, sizeof (int), 1, filep) != 1) || in scr_ll_dump() 111 (fwrite((char *) &COLOR_PAIRS, sizeof (int), 1, filep) != in scr_ll_dump() [all …]
|
H A D | putwin.c | 63 if (fwrite((char *) &(win->_cury), 1, nelt, filep) != nelt) in putwin() 70 if (fwrite((char *) *wcp++, sizeof (chtype), in putwin()
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | inv6.c | 71 fwrite(&nhash, sizeof (nhash), 1, fa); in whash() 72 fwrite(&iflong, sizeof (iflong), 1, fa); in whash() 73 fwrite(hpt, sizeof (*hpt), nhash, fa); in whash() 74 fwrite(hfreq, sizeof (*hfreq), nhash, fa); in whash()
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | assemble.c | 950 (void) fwrite(itm_header, sizeof (itm_hdr_t), 1, fp); in output() 957 (void) fwrite((void *)(ref->referencee), 1, ref->size, fp); in output() 965 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 973 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 981 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 989 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 997 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 1006 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 1015 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() 1019 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output() [all …]
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_msgs.c | 166 (void) fwrite(&header, sizeof (struct gnu_msg_info), in output_all_gnu_mo_files() 170 (void) fwrite(id_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files() 173 (void) fwrite(str_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files() 176 (void) fwrite(hash_tbl, sizeof (unsigned int), in output_all_gnu_mo_files() 179 (void) fwrite(ids, id_len, 1, out); in output_all_gnu_mo_files() 181 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
|
H A D | gnu_msgs_rev.c | 171 (void) fwrite(&header, sizeof (struct gnu_msg_info), in output_all_gnu_mo_files() 175 (void) fwrite(id_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files() 178 (void) fwrite(str_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files() 181 (void) fwrite(hash_tbl, sizeof (unsigned int), in output_all_gnu_mo_files() 184 (void) fwrite(ids, id_len, 1, out); in output_all_gnu_mo_files() 186 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
|
H A D | msgfmt.c | 955 (void) fwrite(&i, sizeof (int), 1, fp); in output_one_mo_file() 956 (void) fwrite(&message_count, sizeof (int), 1, fp); in output_one_mo_file() 957 (void) fwrite(&string_count_msgid, sizeof (int), 1, fp); in output_one_mo_file() 958 (void) fwrite(&string_count_msg, sizeof (int), 1, fp); in output_one_mo_file() 960 (void) fwrite(&i, sizeof (int), 1, fp); in output_one_mo_file() 966 (void) fwrite(&less[i], sizeof (int), 1, fp); in output_one_mo_file() 967 (void) fwrite(&more[i], sizeof (int), 1, fp); in output_one_mo_file() 968 (void) fwrite(&p->msgid_offset, sizeof (int), 1, fp); in output_one_mo_file() 969 (void) fwrite(&p->msgstr_offset, sizeof (int), 1, fp); in output_one_mo_file() 977 (void) fwrite(p->msgid, strlen(p->msgid)+1, 1, fp); in output_one_mo_file() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | copylet.c | 137 if (fwrite(buf,1,n,f) != n) { in xxxcopylet() 147 if (fwrite(buf,1,n-1,f) != n-1) { in xxxcopylet() 152 if (fwrite(&lastc,1,1,f) != 1) { in xxxcopylet() 262 if (fwrite(buf,1,n,f) != n) { in xxxcopylet() 339 if (fwrite(buf,1,n,f) != n) { in xxxcopylet() 383 if (fwrite(buf,1,n,f) != n) { in xxxcopylet() 392 if (fwrite("\n",1,1,f) != 1) { in xxxcopylet()
|
H A D | printhdr.c | 49 if (fwrite(buf, 1, n, fp) != n) { in printhdr() 60 if (fwrite(buf, 1, n, fp) != n) { in printhdr()
|
H A D | copymt.c | 85 if (fwrite(line,1,(int)clen,f2) != clen) { 111 if (fwrite(line,1,n,f2) != n) { 182 if (fwrite(line,1,n,f2) != n) {
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftwrite.c | 86 (void) fwrite(s, strlen(s) + 1, 1, fp); in ident_printer() 95 (void) fwrite(s, strlen(s) + 1, 1, fp); in dict_printer() 162 (void) fwrite(&hdr, sizeof (hdr), 1, fp); in eftwrite() 177 if (cc != fwrite(buf, 1, cc, fp) || ferror(fp)) in eftwrite()
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_parse.c | 719 if (fwrite(&header, sizeof (header), 1, fp) != 1 || in write_object() 720 fwrite(namelist, sizeof (char), namelen, fp) != namelen || in write_object() 721 fwrite(cBooleans, sizeof (char), BoolCount, fp) != BoolCount) in write_object() 725 fwrite(&zero, sizeof (char), 1, fp) != 1) in write_object() 735 if (fwrite((char *)Numbers, sizeof (short), NumCount, fp) != NumCount || in write_object() 736 fwrite((char *)Strings, sizeof (short), StrCount, fp) in write_object() 738 fwrite(string_table, sizeof (char), l_next_free, fp) in write_object()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uuencode.c | 213 (void) fwrite(out_buf, 1, (size_t)(optr - out_buf), in encode() 252 (void) fwrite(out_buf, 1, in encode() 295 (void) fwrite(out_buf, 1, in encode()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | dba_write.c | 101 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp)) in dba_skip() 125 if (fwrite(&i, sizeof(i), 1, ofp) != 1) in dba_int_write()
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | gprof.c | 282 if (fwrite(&prof_cgraph, sizeof (ProfCallGraph), 1, fp) != 1) { in dump_callgraph() 334 if (fwrite(&prof_func, sizeof (ProfFunction), in dump_callgraph() 381 if (fwrite(p, nelem * sizeof (Address), 1, fp) != 1) { in dump_hits() 388 if (fwrite(p, ntowrite * sizeof (Address), 1, fp) != 1) { in dump_hits() 411 if (fwrite(&prof_buffer, sizeof (ProfBuffer), 1, fp) != 1) { in dump_pcsamples() 465 if (fwrite(&prof_modlist, sizeof (ProfModuleList), 1, fp) != 1) { in dump_modules() 488 if (fwrite(&prof_mod, sizeof (ProfModule), 1, fp) != 1) { in dump_modules() 508 if (fwrite(pbuf, pbuf_sz, 1, fp) != 1) { in dump_modules() 589 if (fwrite(&prof_hdr, sizeof (prof_hdr), 1, fp) != 1) { in dump_gprofhdr() 616 if (fwrite(&h, sizeof (h), 1, sfile) != 1) { in dumpsum_ostyle() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | invlib.c | 252 if (fwrite((char *)&logicalblk, BLOCKSIZE, 1, outfile) == 0) { in invmake() 257 if (fwrite((char *)&logicalblk, BLOCKSIZE, 1, outfile) == 0) { in invmake() 268 if (fwrite((char *)SUPINT, sizeof (*SUPINT), numlogblk + 1, in invmake() 270 fwrite(SUPFING, 1, supfing - SUPFING, outfile) == 0) { in invmake() 282 if (fwrite(SUPFING, BLOCKSIZE - i, 1, outfile) == 0 || in invmake() 296 if (fwrite((char *)¶m, sizeof (param), 1, outfile) == 0) { in invmake() 300 if (fwrite((char *)&zerolong, sizeof (zerolong), in invmake() 313 if (fwrite((char *)&tlong, sizeof (tlong), 1, outfile) == 0 || in invmake() 431 if (fwrite((char *)logicalblk.chrblk, 1, in invnewterm() 496 if (fwrite((char *)POST, sizeof (POSTING), i, fpost) == 0) { in invnewterm() [all …]
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 98 (void) fwrite((char *)&(pdesc->header), sizeof (pdesc->header), in PWOpen() 150 if (!fwrite((char *)&pwp->header, sizeof (pwp->header), in PWClose() 162 (void) fwrite(pwp->hwms, 1, sizeof (pwp->hwms), in PWClose() 205 (void) fwrite((char *)&datum, sizeof (datum), 1, pwp->ifp); in PutPW()
|
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-storage-cleanup-all-mountpoints.c | 143 if (fwrite (lines[i], 1, strlen (lines[i]), hal_mtab_new) != strlen (lines[i])) { in do_cleanup() 146 if (fwrite (anewl, 1, 1, hal_mtab_new) != 1) { in do_cleanup()
|
H A D | hal-storage-cleanup-mountpoint.c | 143 if (fwrite (anewl, 1, 1, hal_mtab_new) != 1) { in do_cleanup() 148 if (fwrite (lines[i], 1, strlen (lines[i]), hal_mtab_new) != strlen (lines[i])) { in do_cleanup()
|
/illumos-gate/usr/src/cmd/spell/ |
H A D | spellin.c | 149 (void) fwrite((char *)hindex, sizeof (*hindex), NI, stdout); in main() 150 (void) fwrite((char *)table, sizeof (*table), wp, stdout); in main()
|
/illumos-gate/usr/src/cmd/sunpc/other/ |
H A D | unix2dos.c | 447 if (out_len && out_len != fwrite(&tmp_buff[0], 1, out_len, in main() 455 fwrite(&tmp_buff[0], 1, 1, out_stream); in main() 469 if (num_read != fwrite(tmp_buff, 1, num_read, in main()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/ |
H A D | ktutil_funcs.c | 544 fwrite(sname, strlen(sname) + 1, 1, fp); 545 fwrite(sinst, strlen(sinst) + 1, 1, fp); 546 fwrite(srealm, strlen(srealm) + 1, 1, fp); 547 fwrite((char *)&kvno, 1, 1, fp); 548 fwrite((char *)lp->entry->key.contents,
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | loadsave.c | 534 #define WRITE_TOKEN_INFO_STR(fp, rec, reclen) rc = fwrite(rec, reclen, 1, fp); \ 538 rc = fwrite(&fieldval, sizeof (UINT32), 1, fp); \ 720 (void) fwrite(&total_len, sizeof (total_len), 1, fp); in save_public_token_object() 721 (void) fwrite(&flag, sizeof (flag), 1, fp); in save_public_token_object() 722 (void) fwrite(cleartxt, cleartxt_len, 1, fp); in save_public_token_object() 836 (void) fwrite(&total_len, sizeof (UINT32), 1, fp); in save_private_token_object() 837 (void) fwrite(&flag, sizeof (CK_BBOOL), 1, fp); in save_private_token_object() 838 (void) fwrite(ciphertxt, ciphertxt_len, 1, fp); in save_private_token_object()
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | wtmpfix.c | 192 if (fwrite(&Ut, UTRSZ, 1, stdout) < 1) { in main() 504 if ((fwrite(&Ut, UTRSZ, 1, Temp) < 1) || in scanfile() 505 (fwrite(&Ut2, UTRSZ, 1, Temp) < 1)) { in scanfile() 511 if (fwrite(&Ut, UTRSZ, 1, Temp) < 1) { in scanfile()
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | fmemopentest.c | 95 len = fwrite(" world", 1, 6, s1); in updatetest() 141 len = fwrite("short", 1, 5, s1); in writetest()
|