Home
last modified time | relevance | path

Searched refs:BUFSIZ (Results 1 – 25 of 534) sorted by relevance

12345678910>>...22

/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_uef.c787 char buffer[BUFSIZ]; in uninstall_uef_lib()
788 char buffer2[BUFSIZ]; in uninstall_uef_lib()
864 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in uninstall_uef_lib()
873 (void) strlcpy(buffer2, buffer, BUFSIZ); in uninstall_uef_lib()
1127 char buffer[BUFSIZ]; in update_pkcs11conf()
1128 char buffer2[BUFSIZ]; in update_pkcs11conf()
1194 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in update_pkcs11conf()
1204 (void) strlcpy(buffer2, buffer, BUFSIZ); in update_pkcs11conf()
1230 (void) strlcpy(buffer, str, BUFSIZ); in update_pkcs11conf()
1315 buf = malloc(BUFSIZ); in uent2str()
[all …]
H A Dadm_kef_util.c469 if ((buf = malloc(BUFSIZ)) == NULL) { in ent2str()
474 if (strlcpy(buf, pent->name, BUFSIZ) >= BUFSIZ) { in ent2str()
480 if (strlcat(buf, SEP_COLON, BUFSIZ) >= BUFSIZ) { in ent2str()
485 if (strlcat(buf, EF_UNLOAD, BUFSIZ) >= BUFSIZ) { in ent2str()
498 BUFSIZ) >= BUFSIZ) { in ent2str()
503 if (strlcat(buf, EF_SUPPORTED, BUFSIZ) >= BUFSIZ) { in ent2str()
509 if (strlcat(buf, pcur->name, BUFSIZ) >= BUFSIZ) { in ent2str()
516 if (strlcat(buf, SEP_COMMA, BUFSIZ) in ent2str()
517 >= BUFSIZ) { in ent2str()
531 BUFSIZ) >= BUFSIZ) { in ent2str()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Duucleanup.c358 char text[BUFSIZ];
384 char buf[BUFSIZ], user[9];
385 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
386 char text[BUFSIZ], text1[BUFSIZ], text2[BUFSIZ];
418 while (fgets(buf, BUFSIZ, fp) != NULL) {
479 char fullname[BUFSIZ], xfile[BUFSIZ], xF_file[BUFSIZ];
480 char buf[BUFSIZ], user[BUFSIZ];
481 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
482 char text[BUFSIZ], text1[BUFSIZ], text2[BUFSIZ];
483 char *realuser, uline_m[NAMESIZE], uline_u[BUFSIZ], retaddr[BUFSIZ];
[all …]
H A Dgrades.c139 char line[BUFSIZ];
156 while (rdfulline(cfd, line, BUFSIZ) != 0) {
195 char line[BUFSIZ]; in fdgrade()
204 for (; rdfulline(cfd, line, BUFSIZ) != 0;) { in fdgrade()
249 char line[BUFSIZ];
264 while (fgets(line, BUFSIZ, fp) != NULL) {
339 char msg[BUFSIZ], *p;
416 char cmd[BUFSIZ]; /* Place to build mail command. */
449 char line[BUFSIZ];
461 while (fgets(line, BUFSIZ, fp) != NULL) {
[all …]
H A Dgio.c92 char bufr[BUFSIZ], *s; in gwrmsg()
138 char bufr[BUFSIZ]; in gwrdata()
148 while ((len = read( fd1, bufr, BUFSIZ )) > 0) { in gwrdata()
155 if (len != BUFSIZ) in gwrdata()
169 char bufr[BUFSIZ]; in grddata()
177 len = grdblk(bufr, BUFSIZ); in grddata()
187 if (len < BUFSIZ) in grddata()
H A Duuxqt.c52 char _Cmd[2 * BUFSIZ]; /* build up command buffer */
369 char buf[BUFSIZ], rqfile[MAXNAMESIZE];
375 while (fgets(buf, BUFSIZ, fp) != NULL) {
414 char buf[BUFSIZ], file[MAXNAMESIZE], tfile[MAXNAMESIZE]; in rm_Xfiles()
425 while (fgets(buf, BUFSIZ, fp) != NULL) { in rm_Xfiles()
446 char buf[BUFSIZ], ffile[MAXFULLNAME], tfile[MAXNAMESIZE]; in mv_Xfiles()
454 while (fgets(buf, BUFSIZ, fp) != NULL) { in mv_Xfiles()
497 char buf[BUFSIZ], ffile[MAXNAMESIZE], tfile[MAXNAMESIZE]; in unmv_Xfiles()
506 while (fgets(buf, BUFSIZ, fp) != NULL) { in unmv_Xfiles()
547 char prm[BUFSIZ], whitesp[BUFSIZ], rqtcmd[BUFSIZ], xcmd[BUFSIZ]; in chkpart()
[all …]
H A Duustat.c90 static char mailmsg[BUFSIZ];
91 static char outbuf[BUFSIZ+1];
130 char *c, lckdir[BUFSIZ]; in main()
131 char buf[BUFSIZ]; in main()
469 char fullname[MAXFULLNAME], buf[BUFSIZ], user[9];
471 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
477 char format_tmp[BUFSIZ+1];
517 else while (fgets(buf, BUFSIZ, fp) != NULL) {
599 char command[BUFSIZ], uline_u[BUFSIZ], uline_m[BUFSIZ];
600 char retaddr[BUFSIZ], *username;
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastcopy.c41 #undef BUFSIZ
42 #define BUFSIZ 4096 macro
64 if (n <= 0 || n >= BUFSIZ * 2) in astcopy()
72 …if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos))… in astcopy()
80 if (n <= 0) n = BUFSIZ; in astcopy()
85 bufsiz = roundof(n, BUFSIZ); in astcopy()
/illumos-gate/usr/src/cmd/csh/
H A Dsh.dol.c151 static int wbufsiz = BUFSIZ; in Dword()
158 wbufsiz += BUFSIZ; \ in Dword()
352 tchar wbuf[BUFSIZ + MB_LEN_MAX]; /* read_ may return extra bytes */ in Dgetdol()
378 if (np >= &wbuf[BUFSIZ-1]) in Dgetdol()
641 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc()
659 ocnt = BUFSIZ; obp = obuf; in heredoc()
664 lbp = lbuf; lcnt = BUFSIZ - 4; in heredoc()
687 (void) write_(0, obuf, BUFSIZ - ocnt); in heredoc()
700 (void) write_(0, obuf, BUFSIZ); in heredoc()
701 obp = obuf; ocnt = BUFSIZ; in heredoc()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Dglue5.c36 char buf[2*BUFSIZ];
148 if (p == &buf[2*BUFSIZ]) p = buf; in execute()
149 if (p > &buf[BUFSIZ]) { in execute()
151 &buf[2*BUFSIZ] - p)) <= 0) in execute()
153 } else if ((ccount = read(f, p, BUFSIZ)) <= 0) break; in execute()
194 p, nlp, ccount, buf, buf+2*BUFSIZ); in execute()
202 if (p == &buf[2*BUFSIZ]) in execute()
204 if (p > &buf[BUFSIZ]) { in execute()
206 &buf[2*BUFSIZ] - p)) in execute()
210 BUFSIZ)) <= 0) in execute()
[all …]
H A Drefer4.c22 static char buff[BUFSIZ];
36 if (strlen(buff) > BUFSIZ) in output()
37 err(gettext("one buff too big (%d)!"), BUFSIZ); in output()
80 if (strlen(buff) > BUFSIZ) in append()
81 err(gettext("output buff too long (%d)"), BUFSIZ); in append()
H A Daddbib.c108 char line[BUFSIZ]; in addbib()
112 fgets(line, BUFSIZ, stdin); in addbib()
120 if (fgets(line, BUFSIZ, stdin) == NULL) { in addbib()
141 fgets(line, BUFSIZ, stdin); in addbib()
160 while (fgets(line, BUFSIZ, stdin)) { in addbib()
176 fgets(line, BUFSIZ, stdin); in addbib()
250 char str[BUFSIZ]; in rd_skel()
258 for (entry = 0; fgets(str, BUFSIZ, pfp); entry++) { in rd_skel()
/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dorientation_test.c110 char buffer[BUFSIZ]; in main()
111 wchar_t wbuffer[BUFSIZ]; in main()
158 TEST_UNCHANGED(setvbuf(f, buffer, _IONBF, BUFSIZ)); in main()
159 TEST_UNCHANGED(setvbuf(f, buffer, _IOLBF, BUFSIZ)); in main()
160 TEST_UNCHANGED(setvbuf(f, buffer, _IOFBF, BUFSIZ)); in main()
165 TEST_UNCHANGED(setbuffer(f, buffer, BUFSIZ)); in main()
177 TEST_NARROW(fgets(buffer, BUFSIZ, f)); in main()
204 TEST_NARROW(fread(buffer, 4, BUFSIZ / 4, f)); in main()
205 TEST_NARROW(fwrite(buffer, 4, BUFSIZ / 4, f)); in main()
222 TEST_WIDE(fgetws(wbuffer, BUFSIZ, f)); in main()
/illumos-gate/usr/src/cmd/vgrind/
H A Dvgrindefs.c7 #define BUFSIZ 1024 macro
52 char ibuf[BUFSIZ]; in tgetent()
66 cnt = read(tf, ibuf, BUFSIZ); in tgetent()
81 if (cp >= bp+BUFSIZ) { in tgetent()
112 char tcbuf[BUFSIZ]; in tnchktc()
142 if (l > BUFSIZ) { in tnchktc()
145 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc()
/illumos-gate/usr/src/cmd/pack/
H A Dpack.c76 char inbuff [BUFSIZ];
77 char outbuff [BUFSIZ+4];
127 while ((i = read(infile, inbuff, BUFSIZ)) > 0) in input()
176 inleft = read(infile, inp = &inbuff[0], BUFSIZ); in output()
197 if (outp >= &outbuff[BUFSIZ]) { in output()
198 if (write(outfile, outbuff, BUFSIZ) != BUFSIZ) { in output()
206 ((union FOUR *)&outbuff[BUFSIZ])->lint.lng; in output()
207 outp -= BUFSIZ; in output()
208 outsize += BUFSIZ; in output()
313 if ((insize.lint.lng+BUFSIZ-1)/BUFSIZ <= in packfile()
[all …]
/illumos-gate/usr/src/cmd/nlsadmin/
H A Dnlsadmin.c133 char buf[BUFSIZ]; /* temp buffer #1 */ in main()
134 char mesg[BUFSIZ]; /* temp buffer #2 */ in main()
348 if (fgets(buf, BUFSIZ, fp) == NULL) { in main()
546 char mesgbuf[BUFSIZ]; in prt_cmd()
583 char buf[BUFSIZ]; in old_addsvc()
584 char mesgbuf[BUFSIZ]; in old_addsvc()
661 char buf[BUFSIZ]; in prt_nets()
677 while (fgets(buf, BUFSIZ, fp) != NULL) { in prt_nets()
728 char buf[BUFSIZ]; in prt_svcs()
729 char mesg[BUFSIZ]; in prt_svcs()
[all …]
/illumos-gate/usr/src/cmd/unpack/
H A Dunpack.c67 static char inbuff[BUFSIZ];
68 static char outbuff[BUFSIZ];
107 inleft = read(infile, &inbuff[0], BUFSIZ); in getdict()
179 inleft = read(infile, inp = &inbuff[0], BUFSIZ); in decode()
220 if (outp == &outbuff[BUFSIZ]) { in decode()
222 BUFSIZ) != BUFSIZ) in decode()
224 origsize -= BUFSIZ; in decode()
569 inleft = read(infile, inp = inbuff, BUFSIZ); in getch()
622 if (outp == &outbuff[BUFSIZ]) { in putch()
623 n = write(outfile, outp = outbuff, BUFSIZ); in putch()
[all …]
/illumos-gate/usr/src/lib/libnsl/netselect/
H A Dnetselect.c266 char line[BUFSIZ]; /* holds each line of NETCONFIG */ in getnetlist()
278 while (fgets(line, BUFSIZ, fp)) { in getnetlist()
324 char linep[BUFSIZ]; /* pointer to a line in the file */ in fgetnetconfig()
331 while (retvalp = fgets(linep, BUFSIZ, fp)) { in fgetnetconfig()
393 char valid_netpath[BUFSIZ]; /* holds the valid entries if NETPATH */ in setnetpath()
394 char templine[BUFSIZ]; /* has value of NETPATH when scanning */ in setnetpath()
815 static char buf_main[BUFSIZ]; in nc_sperror()
819 thr_get_storage(&perror_key, BUFSIZ, free); in nc_sperror()
829 (void) strlcpy(retstr, dgettext(__nsl_dom, "no error"), BUFSIZ); in nc_sperror()
833 BUFSIZ); in nc_sperror()
[all …]
/illumos-gate/usr/src/cmd/tip/
H A Dremcap.c31 #ifndef BUFSIZ
32 #define BUFSIZ 1024 macro
90 char lbuf[BUFSIZ], *cp, *p; in tgetent()
127 char ibuf[BUFSIZ], *cp2; in getent()
169 cnt = read(tf, ibuf, BUFSIZ); in getent()
220 char tcbuf[BUFSIZ]; in tnchktc()
252 if (l > BUFSIZ) { in tnchktc()
254 q[BUFSIZ - (p-holdtbuf)] = 0; in tnchktc()
/illumos-gate/usr/src/cmd/keyserv/
H A Dchkey_common.c87 char bindDN[BUFSIZ]; in get_ldap_bindDN()
88 char prompt[BUFSIZ]; in get_ldap_bindDN()
92 (void) memset(bindDN, 0, BUFSIZ); in get_ldap_bindDN()
94 (void) snprintf(prompt, BUFSIZ, in get_ldap_bindDN()
103 (void) strlcpy(bindDN, LDAP_BINDDN_DEFAULT, BUFSIZ); in get_ldap_bindDN()
126 (void) strlcpy(bindDN, LDAP_BINDDN_DEFAULT, BUFSIZ); in get_ldap_bindDN()
129 (void) memset(bindDN, 0, BUFSIZ); in get_ldap_bindDN()
136 (void) memset(bindDN, 0, BUFSIZ); in get_ldap_bindDN()
149 char bindPassword[BUFSIZ]; in get_ldap_bindPassword()
150 char prompt[BUFSIZ]; in get_ldap_bindPassword()
[all …]
/illumos-gate/usr/src/cmd/fmt/
H A Dfmt.c51 wchar_t outbuf[BUFSIZ]; /* Sandbagged output line image */
54 char sobuf[BUFSIZ]; /* Global buffer */
167 wchar_t linebuf[BUFSIZ], canonb[BUFSIZ]; in fmt()
171 char cbuf[BUFSIZ]; /* stores wchar_t string as char string */ in fmt()
181 while (c != L'\n' && c != EOF && cp-linebuf < BUFSIZ-1) { in fmt()
213 if (cp2-canonb < BUFSIZ-1) in fmt()
218 if (cp2-canonb < BUFSIZ-1) in fmt()
249 wcstombs(cbuf, cp, (BUFSIZ - 1)); in fmt()
352 wchar_t s[BUFSIZ]; in prefix()
390 wchar_t word[BUFSIZ]; in csplit()
[all …]
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dextends.c47 char funname[BUFSIZ], filename[MAXPATHLEN], parentfun[BUFSIZ], in do_extends()
48 buf[BUFSIZ], key[20]; in do_extends()
78 (void) strncpy(parentfun, funname, BUFSIZ); in do_extends()
79 parentfun[BUFSIZ-1] = '\0'; in do_extends()
275 char pfun[BUFSIZ]; in find_fun()
313 char key[20], buf[BUFSIZ], *buf2 = NULL, *localvalue = NULL, *p; in arch_match()
323 while (fgets(buf, BUFSIZ, fp)) { in arch_match()
332 if (!fgets(buf, BUFSIZ, fp)) { in arch_match()
/illumos-gate/usr/src/cmd/script/
H A Dscript.c135 char ibuf[BUFSIZ]; in doinput()
141 while ((cc = read(0, ibuf, BUFSIZ)) != 0) { in doinput()
184 char obuf[BUFSIZ]; in dooutput()
185 char tbuf[BUFSIZ]; in dooutput()
190 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec)); in dooutput()
245 char tbuf[BUFSIZ]; in done()
249 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec)); in done()
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c75 char nbuf[BUFSIZ], ret[BUFSIZ]; in netmap()
230 char nbuf[BUFSIZ]; in netlook()
236 *cp && cp2 < &nbuf[BUFSIZ-1]; in netlook()
297 char newname[BUFSIZ]; in arpafix()
346 char rbuf[BUFSIZ]; in makeremote()
548 char netcomp[BUFSIZ], netstr[STSIZ], xfstr[STSIZ]; in optim()
573 nstrcpy(name, BUFSIZ, net); in optim()
576 stradd(name, BUFSIZ, c); in optim()
577 stradd(name, BUFSIZ, *cp++); in optim()
607 nstrcat(name, BUFSIZ, cp2); in optim()
[all …]
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Dtrace.c214 char ifname[BUFSIZ]; in xlator_start_if()
717 char f_type[BUFSIZ]; /* The function. */ in collect_prototype()
718 char f_basetype[BUFSIZ]; in collect_prototype()
719 char f_name[BUFSIZ]; in collect_prototype()
720 char a_name[BUFSIZ]; /* The arguments. */ in collect_prototype()
721 char a_basetype[BUFSIZ]; in collect_prototype()
722 char a_type[BUFSIZ]; in collect_prototype()
727 char tmp_proto[BUFSIZ], buf[BUFSIZ]; in collect_prototype()
732 tmp_proto[BUFSIZ-1] = 0; in collect_prototype()
735 (void) snprintf(tmp_proto, BUFSIZ, "%s;", p); in collect_prototype()
[all …]

12345678910>>...22