Home
last modified time | relevance | path

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

12345678910>>...24

/titanic_44/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_uef.c786 char buffer[BUFSIZ]; in uninstall_uef_lib()
787 char buffer2[BUFSIZ]; in uninstall_uef_lib()
863 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in uninstall_uef_lib()
872 (void) strlcpy(buffer2, buffer, BUFSIZ); in uninstall_uef_lib()
1126 char buffer[BUFSIZ]; in update_pkcs11conf()
1127 char buffer2[BUFSIZ]; in update_pkcs11conf()
1193 while (fgets(buffer, BUFSIZ, pfile) != NULL) { in update_pkcs11conf()
1203 (void) strlcpy(buffer2, buffer, BUFSIZ); in update_pkcs11conf()
1229 (void) strlcpy(buffer, str, BUFSIZ); in update_pkcs11conf()
1314 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 …]
/titanic_44/usr/src/cmd/bnu/
H A Duucleanup.c361 char text[BUFSIZ];
387 char buf[BUFSIZ], user[9];
388 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
389 char text[BUFSIZ], text1[BUFSIZ], text2[BUFSIZ];
421 while (fgets(buf, BUFSIZ, fp) != NULL) {
482 char fullname[BUFSIZ], xfile[BUFSIZ], xF_file[BUFSIZ];
483 char buf[BUFSIZ], user[BUFSIZ];
484 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
485 char text[BUFSIZ], text1[BUFSIZ], text2[BUFSIZ];
486 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.c95 char bufr[BUFSIZ], *s;
143 char bufr[BUFSIZ];
153 while ((len = read( fd1, bufr, BUFSIZ )) > 0) {
160 if (len != BUFSIZ)
175 char bufr[BUFSIZ];
183 len = grdblk(bufr, BUFSIZ);
193 if (len < BUFSIZ)
H A Duuxqt.c54 char _Cmd[2 * BUFSIZ]; /* build up command buffer */
371 char buf[BUFSIZ], rqfile[MAXNAMESIZE];
377 while (fgets(buf, BUFSIZ, fp) != NULL) {
416 char buf[BUFSIZ], file[MAXNAMESIZE], tfile[MAXNAMESIZE]; in rm_Xfiles()
427 while (fgets(buf, BUFSIZ, fp) != NULL) { in rm_Xfiles()
448 char buf[BUFSIZ], ffile[MAXFULLNAME], tfile[MAXNAMESIZE]; in mv_Xfiles()
456 while (fgets(buf, BUFSIZ, fp) != NULL) { in mv_Xfiles()
499 char buf[BUFSIZ], ffile[MAXNAMESIZE], tfile[MAXNAMESIZE]; in unmv_Xfiles()
508 while (fgets(buf, BUFSIZ, fp) != NULL) { in unmv_Xfiles()
549 char prm[BUFSIZ], whitesp[BUFSIZ], rqtcmd[BUFSIZ], xcmd[BUFSIZ]; in chkpart()
[all …]
/titanic_44/usr/src/cmd/fgrep/
H A Dfgrep.c72 if (p >= &buf[fw_lBufsiz + BUFSIZ]) { \
75 fw_lBufsiz += BUFSIZ; \
77 fw_lBufsiz + BUFSIZ)) == NULL) { \
85 &buf[fw_lBufsiz + BUFSIZ] - nlp);\
92 &buf[fw_lBufsiz + BUFSIZ] - p, fptr))\
95 sizeof (char), BUFSIZ, fptr)) <= 0) \
311 fw_lBufsiz = BUFSIZ; in execute()
312 if ((buf = malloc(fw_lBufsiz + BUFSIZ)) == NULL) { in execute()
340 if (p >= &buf[fw_lBufsiz + BUFSIZ]) { in execute()
343 fw_lBufsiz += BUFSIZ; in execute()
[all …]
/titanic_44/usr/src/lib/libast/common/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()
/titanic_44/usr/src/cmd/csh/
H A Dsh.dol.c142 static int wbufsiz = BUFSIZ; in Dword()
149 wbufsiz += BUFSIZ; \ in Dword()
343 tchar wbuf[BUFSIZ + MB_LEN_MAX]; /* read_ may return extra bytes */ in Dgetdol()
369 if (np >= &wbuf[BUFSIZ-1]) in Dgetdol()
632 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc()
650 ocnt = BUFSIZ; obp = obuf; in heredoc()
655 lbp = lbuf; lcnt = BUFSIZ - 4; in heredoc()
678 (void) write_(0, obuf, BUFSIZ - ocnt); in heredoc()
691 (void) write_(0, obuf, BUFSIZ); in heredoc()
692 obp = obuf; ocnt = BUFSIZ; in heredoc()
[all …]
/titanic_44/usr/src/cmd/refer/
H A Drefer4.c24 static char buff[BUFSIZ];
38 if (strlen(buff) > BUFSIZ) in output()
39 err(gettext("one buff too big (%d)!"), BUFSIZ); in output()
82 if (strlen(buff) > BUFSIZ) in append()
83 err(gettext("output buff too long (%d)"), BUFSIZ); in append()
H A Dglue5.c39 char buf[2*BUFSIZ];
151 if (p == &buf[2*BUFSIZ]) p = buf; in execute()
152 if (p > &buf[BUFSIZ]) { in execute()
154 &buf[2*BUFSIZ] - p)) <= 0) in execute()
156 } else if ((ccount = read(f, p, BUFSIZ)) <= 0) break; in execute()
197 p, nlp, ccount, buf, buf+2*BUFSIZ); in execute()
205 if (p == &buf[2*BUFSIZ]) in execute()
207 if (p > &buf[BUFSIZ]) { in execute()
209 &buf[2*BUFSIZ] - p)) in execute()
213 BUFSIZ)) <= 0) in execute()
[all …]
H A Daddbib.c111 char line[BUFSIZ]; in addbib()
115 fgets(line, BUFSIZ, stdin); in addbib()
123 if (fgets(line, BUFSIZ, stdin) == NULL) { in addbib()
144 fgets(line, BUFSIZ, stdin); in addbib()
163 while (fgets(line, BUFSIZ, stdin)) { in addbib()
179 fgets(line, BUFSIZ, stdin); in addbib()
253 char str[BUFSIZ]; in rd_skel()
261 for (entry = 0; fgets(str, BUFSIZ, pfp); entry++) { in rd_skel()
/titanic_44/usr/src/cmd/vgrind/
H A Dvgrindefs.c9 #define BUFSIZ 1024 macro
54 char ibuf[BUFSIZ]; in tgetent()
68 cnt = read(tf, ibuf, BUFSIZ); in tgetent()
83 if (cp >= bp+BUFSIZ) { in tgetent()
114 char tcbuf[BUFSIZ]; in tnchktc()
144 if (l > BUFSIZ) { in tnchktc()
147 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc()
/titanic_44/usr/src/cmd/pack/
H A Dpack.c78 char inbuff [BUFSIZ];
79 char outbuff [BUFSIZ+4];
129 while ((i = read(infile, inbuff, BUFSIZ)) > 0) in input()
178 inleft = read(infile, inp = &inbuff[0], BUFSIZ); in output()
199 if (outp >= &outbuff[BUFSIZ]) { in output()
200 if (write(outfile, outbuff, BUFSIZ) != BUFSIZ) { in output()
208 ((union FOUR *)&outbuff[BUFSIZ])->lint.lng; in output()
209 outp -= BUFSIZ; in output()
210 outsize += BUFSIZ; in output()
315 if ((insize.lint.lng+BUFSIZ-1)/BUFSIZ <= in packfile()
[all …]
/titanic_44/usr/src/cmd/nlsadmin/
H A Dnlsadmin.c136 char buf[BUFSIZ]; /* temp buffer #1 */ in main()
137 char mesg[BUFSIZ]; /* temp buffer #2 */ in main()
351 if (fgets(buf, BUFSIZ, fp) == NULL) { in main()
549 char mesgbuf[BUFSIZ]; in prt_cmd()
586 char buf[BUFSIZ]; in old_addsvc()
587 char mesgbuf[BUFSIZ]; in old_addsvc()
664 char buf[BUFSIZ]; in prt_nets()
680 while (fgets(buf, BUFSIZ, fp) != NULL) { in prt_nets()
731 char buf[BUFSIZ]; in prt_svcs()
732 char mesg[BUFSIZ]; in prt_svcs()
[all …]
/titanic_44/usr/src/cmd/unpack/
H A Dunpack.c69 static char inbuff[BUFSIZ];
70 static char outbuff[BUFSIZ];
109 inleft = read(infile, &inbuff[0], BUFSIZ); in getdict()
181 inleft = read(infile, inp = &inbuff[0], BUFSIZ); in decode()
222 if (outp == &outbuff[BUFSIZ]) { in decode()
224 BUFSIZ) != BUFSIZ) in decode()
226 origsize -= BUFSIZ; in decode()
571 inleft = read(infile, inp = inbuff, BUFSIZ); in getch()
624 if (outp == &outbuff[BUFSIZ]) { in putch()
625 n = write(outfile, outp = outbuff, BUFSIZ); in putch()
[all …]
/titanic_44/usr/src/cmd/tip/
H A Dremcap.c32 #ifndef BUFSIZ
33 #define BUFSIZ 1024 macro
93 char lbuf[BUFSIZ], *cp, *p; in tgetent()
130 char ibuf[BUFSIZ], *cp2; in getent()
172 cnt = read(tf, ibuf, BUFSIZ); in getent()
223 char tcbuf[BUFSIZ]; in tnchktc()
255 if (l > BUFSIZ) { in tnchktc()
257 q[BUFSIZ - (p-holdtbuf)] = 0; in tnchktc()
/titanic_44/usr/src/lib/libnsl/netselect/
H A Dnetselect.c268 char line[BUFSIZ]; /* holds each line of NETCONFIG */ in getnetlist()
280 while (fgets(line, BUFSIZ, fp)) { in getnetlist()
326 char linep[BUFSIZ]; /* pointer to a line in the file */ in fgetnetconfig()
333 while (retvalp = fgets(linep, BUFSIZ, fp)) { in fgetnetconfig()
395 char valid_netpath[BUFSIZ]; /* holds the valid entries if NETPATH */ in setnetpath()
396 char templine[BUFSIZ]; /* has value of NETPATH when scanning */ in setnetpath()
817 static char buf_main[BUFSIZ]; in nc_sperror()
821 thr_get_storage(&perror_key, BUFSIZ, free); in nc_sperror()
831 (void) strlcpy(retstr, dgettext(__nsl_dom, "no error"), BUFSIZ); in nc_sperror()
835 BUFSIZ); in nc_sperror()
[all …]
/titanic_44/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()
/titanic_44/usr/src/cmd/abi/spectrans/parser/
H A Dextends.c49 char funname[BUFSIZ], filename[MAXPATHLEN], parentfun[BUFSIZ], in do_extends()
50 buf[BUFSIZ], key[20]; in do_extends()
80 (void) strncpy(parentfun, funname, BUFSIZ); in do_extends()
81 parentfun[BUFSIZ-1] = '\0'; in do_extends()
277 char pfun[BUFSIZ]; in find_fun()
315 char key[20], buf[BUFSIZ], *buf2 = NULL, *localvalue = NULL, *p; in arch_match()
325 while (fgets(buf, BUFSIZ, fp)) { in arch_match()
334 if (!fgets(buf, BUFSIZ, fp)) { in arch_match()
/titanic_44/usr/src/cmd/keyserv/
H A Dchkey_common.c86 char bindDN[BUFSIZ]; in get_ldap_bindDN()
87 char prompt[BUFSIZ]; in get_ldap_bindDN()
91 (void) memset(bindDN, 0, BUFSIZ); in get_ldap_bindDN()
93 (void) snprintf(prompt, BUFSIZ, in get_ldap_bindDN()
102 (void) strlcpy(bindDN, LDAP_BINDDN_DEFAULT, BUFSIZ); in get_ldap_bindDN()
125 (void) strlcpy(bindDN, LDAP_BINDDN_DEFAULT, BUFSIZ); in get_ldap_bindDN()
128 (void) memset(bindDN, 0, BUFSIZ); in get_ldap_bindDN()
135 (void) memset(bindDN, 0, BUFSIZ); in get_ldap_bindDN()
147 char bindPassword[BUFSIZ]; in get_ldap_bindPassword()
148 char prompt[BUFSIZ]; in get_ldap_bindPassword()
[all …]
/titanic_44/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()
248 wcstombs(cbuf, cp, (BUFSIZ - 1)); in fmt()
351 wchar_t s[BUFSIZ]; in prefix()
389 wchar_t word[BUFSIZ]; in csplit()
[all …]
/titanic_44/usr/src/cmd/mailx/
H A Doptim.c78 char nbuf[BUFSIZ], ret[BUFSIZ]; in netmap()
233 char nbuf[BUFSIZ]; in netlook()
239 *cp && cp2 < &nbuf[BUFSIZ-1]; in netlook()
300 char newname[BUFSIZ]; in arpafix()
349 char rbuf[BUFSIZ]; in makeremote()
551 char netcomp[BUFSIZ], netstr[STSIZ], xfstr[STSIZ]; in optim()
576 nstrcpy(name, BUFSIZ, net); in optim()
579 stradd(name, BUFSIZ, c); in optim()
580 stradd(name, BUFSIZ, *cp++); in optim()
610 nstrcat(name, BUFSIZ, cp2); in optim()
[all …]
/titanic_44/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c88 char fulladdr[BUFSIZ]; /* holds the full address string */ in _netdir_getbyname()
175 char fulladdr[BUFSIZ]; /* a copy of the address string */ in _netdir_getbyaddr()
176 char servbuf[BUFSIZ]; /* a buffer for service string */ in _netdir_getbyaddr()
177 char hostbuf[BUFSIZ]; /* points to list of host names */ in _netdir_getbyaddr()
292 if ((retp = malloc(BUFSIZ)) == NULL) { in _taddr2uaddr()
411 char buf[BUFSIZ]; /* holds each line of the file */ in searchhost()
461 while (fgets(buf, BUFSIZ, fp) != NULL) { in searchhost()
518 char buf[BUFSIZ]; /* buffer space for lines in file */ in searchserv()
537 while (fgets(buf, BUFSIZ, fp) != NULL) { in searchserv()
/titanic_44/usr/src/ucblib/libtermcap/
H A Dtermcap.c24 #define BUFSIZ 1024 macro
74 char ibuf[BUFSIZ]; in tgetent()
112 cnt = read(tf, ibuf, BUFSIZ); in tgetent()
127 if (cp >= bp+BUFSIZ) { in tgetent()
158 char tcbuf[BUFSIZ]; in tnchktc()
190 if (l > BUFSIZ) { in tnchktc()
192 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc()

12345678910>>...24