Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 189) sorted by relevance

12345678

/titanic_44/usr/src/lib/libcurses/screen/
H A Dscr_ll_dump.c57 if (fwrite((char *) &magic, sizeof (short), 1, filep) != 1) in scr_ll_dump()
66 if (fwrite((char *) &(statbuf.st_mtime), sizeof (time_t), in scr_ll_dump()
79 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump()
85 if ((fwrite((char *) &labmax, in scr_ll_dump()
87 (fwrite((char *) &lablen, sizeof (short), in scr_ll_dump()
92 if ((fwrite(slk->_ldis[i], sizeof (char), lablen, in scr_ll_dump()
93 filep) != lablen) || (fwrite(slk->_lval[i], in scr_ll_dump()
108 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump()
112 if ((fwrite((char *) &COLORS, sizeof (int), 1, filep) != 1) || in scr_ll_dump()
113 (fwrite((char *) &COLOR_PAIRS, sizeof (int), 1, filep) != in scr_ll_dump()
[all …]
H A Dputwin.c65 if (fwrite((char *) &(win->_cury), 1, nelt, filep) != nelt) in putwin()
72 if (fwrite((char *) *wcp++, sizeof (chtype), in putwin()
/titanic_44/usr/src/cmd/refer/
H A Dinv6.c73 fwrite(&nhash, sizeof (nhash), 1, fa); in whash()
74 fwrite(&iflong, sizeof (iflong), 1, fa); in whash()
75 fwrite(hpt, sizeof (*hpt), nhash, fa); in whash()
76 fwrite(hfreq, sizeof (*hfreq), nhash, fa); in whash()
/titanic_44/usr/src/cmd/msgfmt/
H A Dgnu_msgs.c168 (void) fwrite(&header, sizeof (struct gnu_msg_info), in output_all_gnu_mo_files()
172 (void) fwrite(id_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files()
175 (void) fwrite(str_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files()
178 (void) fwrite(hash_tbl, sizeof (unsigned int), in output_all_gnu_mo_files()
181 (void) fwrite(ids, id_len, 1, out); in output_all_gnu_mo_files()
183 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
H A Dgnu_msgs_rev.c173 (void) fwrite(&header, sizeof (struct gnu_msg_info), in output_all_gnu_mo_files()
177 (void) fwrite(id_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files()
180 (void) fwrite(str_tbl, sizeof (struct msgtbl), in output_all_gnu_mo_files()
183 (void) fwrite(hash_tbl, sizeof (unsigned int), in output_all_gnu_mo_files()
186 (void) fwrite(ids, id_len, 1, out); in output_all_gnu_mo_files()
188 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
H A Dmsgfmt.c957 (void) fwrite(&i, sizeof (int), 1, fp); in output_one_mo_file()
958 (void) fwrite(&message_count, sizeof (int), 1, fp); in output_one_mo_file()
959 (void) fwrite(&string_count_msgid, sizeof (int), 1, fp); in output_one_mo_file()
960 (void) fwrite(&string_count_msg, sizeof (int), 1, fp); in output_one_mo_file()
962 (void) fwrite(&i, sizeof (int), 1, fp); in output_one_mo_file()
968 (void) fwrite(&less[i], sizeof (int), 1, fp); in output_one_mo_file()
969 (void) fwrite(&more[i], sizeof (int), 1, fp); in output_one_mo_file()
970 (void) fwrite(&p->msgid_offset, sizeof (int), 1, fp); in output_one_mo_file()
971 (void) fwrite(&p->msgstr_offset, sizeof (int), 1, fp); in output_one_mo_file()
979 (void) fwrite(p->msgid, strlen(p->msgid)+1, 1, fp); in output_one_mo_file()
[all …]
/titanic_44/usr/src/cmd/geniconvtbl/
H A Dassemble.c952 (void) fwrite(itm_header, sizeof (itm_hdr_t), 1, fp); in output()
959 (void) fwrite((void *)(ref->referencee), 1, ref->size, fp); in output()
967 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
975 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
983 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
991 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
999 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
1008 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
1017 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
1021 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); in output()
[all …]
/titanic_44/usr/src/cmd/mail/
H A Dcopylet.c139 if (fwrite(buf,1,n,f) != n) { in xxxcopylet()
149 if (fwrite(buf,1,n-1,f) != n-1) { in xxxcopylet()
154 if (fwrite(&lastc,1,1,f) != 1) { in xxxcopylet()
264 if (fwrite(buf,1,n,f) != n) { in xxxcopylet()
342 if (fwrite(buf,1,n,f) != n) { in xxxcopylet()
386 if (fwrite(buf,1,n,f) != n) { in xxxcopylet()
395 if (fwrite("\n",1,1,f) != 1) { in xxxcopylet()
H A Dprinthdr.c51 if (fwrite(buf, 1, n, fp) != n) { in printhdr()
62 if (fwrite(buf, 1, n, fp) != n) { in printhdr()
H A Dcopymt.c85 if (fwrite(line,1,(int)clen,f2) != clen) {
111 if (fwrite(line,1,n,f2) != n) {
182 if (fwrite(line,1,n,f2) != n) {
/titanic_44/usr/src/cmd/fm/eversholt/common/
H A Deftwrite.c86 (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()
/titanic_44/usr/src/lib/libxcurses/src/tic/
H A Dticparse.c266 if (fwrite(&header, sizeof (header), 1, fp) != 1
267 || fwrite(tnames, sizeof (char), tlength, fp) != tlength
268 || fwrite(boolean, sizeof (char), BOOLCOUNT, fp) != BOOLCOUNT)
272 && fwrite(&zero, sizeof (char), 1, fp) != 1)
282 if (fwrite(number, sizeof (short), NUMCOUNT, fp) != NUMCOUNT
283 || fwrite(string, sizeof (short), STRCOUNT, fp) != STRCOUNT
284 || fwrite(string_table, sizeof (char), next_free, fp) != next_free)
/titanic_44/usr/src/cmd/tic/
H A Dtic_parse.c709 if (fwrite(&header, sizeof (header), 1, fp) != 1 ||
710 fwrite(namelist, sizeof (char), namelen, fp) != namelen ||
711 fwrite(cBooleans, sizeof (char), BoolCount, fp) !=
716 fwrite(&zero, sizeof (char), 1, fp) != 1)
726 if (fwrite((char *)Numbers, sizeof (short), NumCount, fp) != NumCount ||
727 fwrite((char *)Strings, sizeof (short), StrCount, fp)
729 fwrite(string_table, sizeof (char), l_next_free, fp)
/titanic_44/usr/src/cmd/bnu/
H A Duuencode.c213 (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()
/titanic_44/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c94 (void) fwrite((char *)&(pdesc->header), sizeof (pdesc->header), in PWOpen()
146 if (!fwrite((char *)&pwp->header, sizeof (pwp->header), in PWClose()
158 (void) fwrite(pwp->hwms, 1, sizeof (pwp->hwms), in PWClose()
201 (void) fwrite((char *)&datum, sizeof (datum), 1, pwp->ifp); in PutPW()
/titanic_44/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c246 if (fwrite(&prof_cgraph, sizeof (ProfCallGraph), 1, fp) != 1) { in dump_callgraph()
298 if (fwrite(&prof_func, sizeof (ProfFunction), in dump_callgraph()
345 if (fwrite(p, nelem * sizeof (Address), 1, fp) != 1) { in dump_hits()
352 if (fwrite(p, ntowrite * sizeof (Address), 1, fp) != 1) { in dump_hits()
375 if (fwrite(&prof_buffer, sizeof (ProfBuffer), 1, fp) != 1) { in dump_pcsamples()
429 if (fwrite(&prof_modlist, sizeof (ProfModuleList), 1, fp) != 1) { in dump_modules()
452 if (fwrite(&prof_mod, sizeof (ProfModule), 1, fp) != 1) { in dump_modules()
472 if (fwrite(pbuf, pbuf_sz, 1, fp) != 1) { in dump_modules()
553 if (fwrite(&prof_hdr, sizeof (prof_hdr), 1, fp) != 1) { in dump_gprofhdr()
580 if (fwrite(&h, sizeof (h), 1, sfile) != 1) { in dumpsum_ostyle()
[all …]
/titanic_44/usr/src/tools/cscope-fast/
H A Dinvlib.c254 if (fwrite((char *)&logicalblk, BLOCKSIZE, 1, outfile) == 0) { in invmake()
259 if (fwrite((char *)&logicalblk, BLOCKSIZE, 1, outfile) == 0) { in invmake()
270 if (fwrite((char *)SUPINT, sizeof (*SUPINT), numlogblk + 1, in invmake()
272 fwrite(SUPFING, 1, supfing - SUPFING, outfile) == 0) { in invmake()
284 if (fwrite(SUPFING, BLOCKSIZE - i, 1, outfile) == 0 || in invmake()
298 if (fwrite((char *)&param, sizeof (param), 1, outfile) == 0) { in invmake()
302 if (fwrite((char *)&zerolong, sizeof (zerolong), in invmake()
315 if (fwrite((char *)&tlong, sizeof (tlong), 1, outfile) == 0 || in invmake()
433 if (fwrite((char *)logicalblk.chrblk, 1, in invnewterm()
498 if (fwrite((char *)POST, sizeof (POSTING), i, fpost) == 0) { in invnewterm()
[all …]
/titanic_44/usr/src/cmd/hal/tools/
H A Dhal-storage-cleanup-all-mountpoints.c143 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 Dhal-storage-cleanup-mountpoint.c143 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()
/titanic_44/usr/src/cmd/spell/
H A Dspellin.c151 (void) fwrite((char *)hindex, sizeof (*hindex), NI, stdout); in main()
152 (void) fwrite((char *)table, sizeof (*table), wp, stdout); in main()
/titanic_44/usr/src/cmd/sunpc/other/
H A Dunix2dos.c450 if (out_len && out_len != fwrite(&tmp_buff[0], 1, out_len, in main()
458 fwrite(&tmp_buff[0], 1, 1, out_stream); in main()
472 if (num_read != fwrite(tmp_buff, 1, num_read, in main()
/titanic_44/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c547 fwrite(sname, strlen(sname) + 1, 1, fp);
548 fwrite(sinst, strlen(sinst) + 1, 1, fp);
549 fwrite(srealm, strlen(srealm) + 1, 1, fp);
550 fwrite((char *)&kvno, 1, 1, fp);
551 fwrite((char *)lp->entry->key.contents,
/titanic_44/usr/src/lib/libnsl/rpc/
H A Dxdr_stdio.c101 if (fwrite((caddr_t)lp, sizeof (int32_t), 1, in xdrstdio_putint32()
148 (fwrite(addr, (int)len, 1, (FILE *)xdrs->x_private) != 1)) in xdrstdio_putbytes()
/titanic_44/usr/src/cmd/acct/
H A Dwtmpfix.c194 if (fwrite(&Ut, UTRSZ, 1, stdout) < 1) { in main()
506 if ((fwrite(&Ut, UTRSZ, 1, Temp) < 1) || in scanfile()
507 (fwrite(&Ut2, UTRSZ, 1, Temp) < 1)) { in scanfile()
513 if (fwrite(&Ut, UTRSZ, 1, Temp) < 1) { in scanfile()
/titanic_44/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dloadsave.c534 #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()

12345678