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.c1322 if (strlcpy(buf, puent->name, BUFSIZ) >= BUFSIZ) { in uent2str()
1330 if (strlcat(buf, SEP_COLON, BUFSIZ) >= BUFSIZ) { in uent2str()
1335 if (strlcat(buf, EF_ENABLED, BUFSIZ) >= BUFSIZ) { in uent2str()
1342 if (strlcat(buf, phead->name, BUFSIZ) >= BUFSIZ) { in uent2str()
1358 if (strlcat(buf, SEP_COLON, BUFSIZ) >= BUFSIZ) { in uent2str()
1363 if (strlcat(buf, EF_DISABLED, BUFSIZ) >= BUFSIZ) { in uent2str()
1369 if (strlcat(buf, phead->name, BUFSIZ) >= BUFSIZ) { in uent2str()
1388 BUFSIZ) >= BUFSIZ) { in uent2str()
1393 if (strlcat(buf, EF_NORANDOM, BUFSIZ) >= BUFSIZ) { in uent2str()
1403 BUFSIZ) >= BUFSIZ) { in uent2str()
[all …]
H A Dadm_kef_util.c474 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()
517 >= BUFSIZ) { in ent2str()
531 BUFSIZ) >= BUFSIZ) { in ent2str()
536 if (strlcat(buf, EF_DISABLED, BUFSIZ) >= BUFSIZ) { in ent2str()
542 if (strlcat(buf, pcur->name, BUFSIZ) >= BUFSIZ) { in ent2str()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Duucleanup.c358 char text[BUFSIZ];
385 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
386 char text[BUFSIZ], text1[BUFSIZ], text2[BUFSIZ];
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];
855 char buf[BUFSIZ];
902 char cmd[BUFSIZ];
952 char cmd[BUFSIZ];
[all …]
H A Dgrades.c139 char line[BUFSIZ];
195 char line[BUFSIZ]; in fdgrade()
249 char line[BUFSIZ];
264 while (fgets(line, BUFSIZ, fp) != NULL) {
339 char msg[BUFSIZ], *p;
449 char line[BUFSIZ];
499 char buf[BUFSIZ];
503 for (;fgets(buf, BUFSIZ, fd) != NULL;) {
556 char msg[BUFSIZ];
598 char line[BUFSIZ];
[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.c369 char buf[BUFSIZ], rqfile[MAXNAMESIZE];
375 while (fgets(buf, BUFSIZ, fp) != NULL) {
425 while (fgets(buf, BUFSIZ, fp) != NULL) { in rm_Xfiles()
454 while (fgets(buf, BUFSIZ, fp) != NULL) { in mv_Xfiles()
547 char prm[BUFSIZ], whitesp[BUFSIZ], rqtcmd[BUFSIZ], xcmd[BUFSIZ]; in chkpart()
653 char *p, buf[BUFSIZ]; in chkFile()
727 char ruser[BUFSIZ], msg[BUFSIZ], subj[BUFSIZ];
826 char lbuf[BUFSIZ];
832 char errDfile[BUFSIZ];
840 char buf[BUFSIZ], user[BUFSIZ], retaddr[BUFSIZ], retuser[BUFSIZ],
[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()
471 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
599 char command[BUFSIZ], uline_u[BUFSIZ], uline_m[BUFSIZ];
710 char file1[BUFSIZ], file2[BUFSIZ], file3[BUFSIZ], type[2], opt[256];
858 char fullname[BUFSIZ];
1150 char abuf[BUFSIZ]; in complete()
1233 char lckdir[BUFSIZ+1];
[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()
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()
700 (void) write_(0, obuf, BUFSIZ); in heredoc()
701 obp = obuf; ocnt = BUFSIZ; in heredoc()
764 obp = obuf; ocnt = BUFSIZ; in heredoc()
769 (void) write_(0, obuf, 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()
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()
230 &buf[2*BUFSIZ] - nlp); 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.c583 char buf[BUFSIZ]; in old_addsvc()
661 char buf[BUFSIZ]; in prt_nets()
728 char buf[BUFSIZ]; in prt_svcs()
729 char mesg[BUFSIZ]; in prt_svcs()
815 char buf[BUFSIZ]; in disable_svc()
855 char buf[BUFSIZ]; in enable_svc()
895 char buf[BUFSIZ]; in remove_svc()
936 char buf[BUFSIZ]; in kill_listener()
984 char buf[BUFSIZ]; in add_pm()
1049 char buf[BUFSIZ]; in start_listener()
[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()
331 while (retvalp = fgets(linep, BUFSIZ, fp)) { in fgetnetconfig()
815 static char buf_main[BUFSIZ]; in nc_sperror()
819 thr_get_storage(&perror_key, BUFSIZ, free); in nc_sperror()
833 BUFSIZ); in nc_sperror()
838 setnetpath() or setnetconfig()"), BUFSIZ); in nc_sperror()
843 BUFSIZ); in nc_sperror()
851 (void) snprintf(retstr, BUFSIZ, in nc_sperror()
856 (void) snprintf(retstr, 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()
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()
154 (void) memset(bindPassword, 0, BUFSIZ); in get_ldap_bindPassword()
157 (void) snprintf(prompt, BUFSIZ, in get_ldap_bindPassword()
[all …]
/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/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/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()
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()
429 wchar_t word[BUFSIZ]; in msplit()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c75 char nbuf[BUFSIZ], ret[BUFSIZ]; in netmap()
230 char nbuf[BUFSIZ]; in netlook()
297 char newname[BUFSIZ]; in arpafix()
346 char rbuf[BUFSIZ]; in makeremote()
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()
608 stradd(name, BUFSIZ, *cp++); in optim()
661 stradd(name, BUFSIZ, nc); in optim1()
[all …]
/illumos-gate/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()

12345678910>>...22