Home
last modified time | relevance | path

Searched refs:BUFSIZE (Results 1 – 25 of 64) sorted by relevance

123

/illumos-gate/usr/src/lib/libtsol/common/
H A Dlabeld.h42 #define BUFSIZE 4096 macro
158 char vers[BUFSIZE];
166 char color[BUFSIZE];
177 char slabel[BUFSIZE];
186 char cslabel[BUFSIZE];
194 char string[BUFSIZE];
204 char string[BUFSIZE];
235 char buf[BUFSIZE];
258 char buf[BUFSIZE];
272 char pathname[BUFSIZE];
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dpread.c46 #define BUFSIZE (1*1024) macro
48 #define BUFSIZE (4*1024) macro
51 static char buf[BUFSIZE];
65 count = (rsize < BUFSIZE ? rsize : BUFSIZE);
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_tune.h60 #define LBSIZE BUFSIZE /* Line buffer size */
61 #define CRSIZE BUFSIZE /* Crypt block size */
68 #define ONMSZ BUFSIZE /* Option name size */
77 #define HBLKS ((sizeof(struct header)+BUFSIZE-1)/BUFSIZE)
H A Dexrecover.c78 unsigned char nb[BUFSIZE];
213 (void)lseek(tfile, (long) blocks[b] * BUFSIZE, 0); in main()
214 i = H.Flines < BUFSIZE / sizeof (line) ? in main()
215 H.Flines * sizeof (line) : BUFSIZE; in main()
456 unsigned char bestnb[BUFSIZE]; /* Name of the best one */
523 unsigned char dbuf[BUFSIZE]; in searchdir()
588 (void)lseek(tfile, (long)(BUFSIZE*HBLKS-8), 0); in yeah()
614 unsigned char bk[BUFSIZE]; in scrapbad()
630 (void)lseek(tfile, (long) BUFSIZE * bno, 0); in scrapbad()
631 cnt = read(tfile, (char *) bk, BUFSIZE); in scrapbad()
[all …]
H A Dex_temp.c235 nleft = BUFSIZE - off; in getblock()
306 unsigned char incorb[INCORB+1][BUFSIZE];
307 #define pagrnd(a) ((unsigned char *)(((int)a)&~(BUFSIZE-1)))
318 bcopy(pagrnd(incorb[b+1]), buf, BUFSIZE); in blkio()
321 bcopy(buf, pagrnd(incorb[b+1]), BUFSIZE); in blkio()
330 lseek(tfile, (long)(unsigned)b * BUFSIZE, 0); in blkio()
331 if ((*iofcn)(tfile, buf, BUFSIZE) != BUFSIZE) in blkio()
351 if (write(tfile, pagrnd(incorb[1]), i * BUFSIZE) != (i * BUFSIZE)) in tflush()
411 a += BUFSIZE / sizeof (*a), bp++) { in synctmp()
424 lseek(tfile, (long)(unsigned)*bp * BUFSIZE, 0); in synctmp()
[all …]
H A Dex_temp.h106 var unsigned char ibuff[BUFSIZE];
107 var unsigned char ibuff2[BUFSIZE];
108 var unsigned char obuff[BUFSIZE];
H A Dexpreserve.c45 #define BUFSIZE (LINE_MAX*2) /* This should agree with what's in ex.h */ macro
177 unsigned char buf[BUFSIZE]; in copyout()
315 i = read(0, buf, BUFSIZE); in copyout()
404 unsigned char cmd[BUFSIZE]; in notify()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Drevlib.c29 #define BUFSIZE SF_BUFSIZE macro
40 char buff[BUFSIZE]; in rev_line()
56 offset = rounddown(offset,BUFSIZE); in rev_line()
59 n = BUFSIZE; in rev_line()
103 offset -= BUFSIZE; in rev_line()
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_dfstab.c70 static char cmd[BUFSIZE]; in get_dfstab_ents()
77 fileutil_getline(dfp, cmd, BUFSIZE)) != NULL) { in get_dfstab_ents()
161 char tempstr[BUFSIZE]; in create_share_cmd()
164 cmd = (char *)calloc((size_t)1, BUFSIZE); in create_share_cmd()
172 strlcat(cmd, tempstr, BUFSIZE); in create_share_cmd()
176 strlcat(cmd, tempstr, BUFSIZE); in create_share_cmd()
181 strlcat(cmd, tempstr, BUFSIZE); in create_share_cmd()
184 strlcat(cmd, tempstr, BUFSIZE); in create_share_cmd()
187 strlcat(cmd, tempstr, BUFSIZE); in create_share_cmd()
310 char cmd[BUFSIZE]; in change_dfstab_ent()
[all …]
H A Dfileutil.c66 char line[BUFSIZE]; in fileutil_get_first_column_data()
74 retrieve_string(fp, line, BUFSIZE)) != NULL) { in fileutil_get_first_column_data()
115 static char buff[BUFSIZE]; /* line buffer */ in fileutil_getfs()
117 while (s = fgets(buff, BUFSIZE, fp)) { in fileutil_getfs()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dmmap14 #define BUFSIZE (8*1024)
84 if (read(fd,buf,BUFSIZE) != BUFSIZE)
234 #define BUFSIZE (MAPSIZE/8)
277 { for(k = 0; k < MAPSIZE; k += BUFSIZE)
278 if (read(fd,buf,BUFSIZE) != BUFSIZE)
300 /* the memcpy is < BUFSIZE to simulate the
305 for(k = 0; k < MAPSIZE; k += BUFSIZE, t += BUFSIZE)
306 memcpy(buf,t,(3*BUFSIZE)/4);
/illumos-gate/usr/src/cmd/rctladm/
H A Drctladm.c72 #define BUFSIZE 256 macro
193 char buf[BUFSIZE]; in rctladm_read_config()
194 char name[BUFSIZE+1], actions[BUFSIZE+1]; in rctladm_read_config()
214 for (line = 1; fgets(buf, BUFSIZE, fp) != NULL; line++) { in rctladm_read_config()
227 " %" VAL2STR(BUFSIZE) "[^=]=%" VAL2STR(BUFSIZE) "s \n%n", in rctladm_read_config()
/illumos-gate/usr/src/cmd/adbgen/common/
H A Dadbgen4.c40 #define BUFSIZE 1024 /* gross enough to never be exceeded (we hope) */ macro
42 char buf1[BUFSIZE], buf2[BUFSIZE];
/illumos-gate/usr/src/cmd/cdrw/
H A Dutil.c195 char s[BUFSIZE]; in progress()
206 (void) snprintf(s, BUFSIZE, in progress()
224 (void) snprintf(s, BUFSIZE, gettext("done.\n")); in progress()
226 (void) snprintf(s, BUFSIZE, "%d %%", (uint_t)total); in progress()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_getalias.c112 char filter[BUFSIZE]; in __getldapaliasbyname()
113 char userdata[BUFSIZE]; in __getldapaliasbyname()
121 size_t ans_size = BUFSIZE; in __getldapaliasbyname()
207 ans_size += BUFSIZE; in __getldapaliasbyname()
/illumos-gate/usr/src/test/zfs-tests/cmd/btree_test/
H A Dbtree_test.c24 #define BUFSIZE 256 macro
168 (void) snprintf(why, BUFSIZE, "Unexpectedly found %llu\n", in find_without_index()
176 (void) snprintf(why, BUFSIZE, "Found bad value: %llu\n", *p); in find_without_index()
193 (void) snprintf(why, BUFSIZE, "Didn't find value in tree\n"); in insert_find_remove()
196 (void) snprintf(why, BUFSIZE, "Found (%llu) in tree\n", *p); in insert_find_remove()
205 (void) snprintf(why, BUFSIZE, in insert_find_remove()
249 (void) snprintf(why, BUFSIZE, in drain_tree()
532 char why[BUFSIZE] = {0}; in main()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Dk5-platform.h524 #define k5_getpwnam_r(NAME, REC, BUF, BUFSIZE, OUT) \ argument
525 (*(OUT) = getpwnam_r(NAME,REC,BUF,BUFSIZE), *(OUT) == NULL ? -1 : 0)
527 #define k5_getpwuid_r(UID, REC, BUF, BUFSIZE, OUT) \ argument
528 (*(OUT) = getpwuid_r(UID,REC,BUF,BUFSIZE), *(OUT) == NULL ? -1 : 0)
/illumos-gate/usr/src/cmd/grep/
H A Dgrep.c67 #define BUFSIZE 8192 /* Input buffer size */ macro
659 bufsiz = BUFSIZE; in addfile()
678 bufsiz += BUFSIZE; in addfile()
953 prntbuflen = BUFSIZE; in grep()
962 conbuflen = BUFSIZE; in grep()
963 if ((conbuf = malloc(BUFSIZE+1)) == NULL) { in grep()
1059 if (prntbuflen > SIZE_MAX - BUFSIZE) { in grep()
1067 prntbuflen += BUFSIZE; in grep()
1272 if (conbuflen > SIZE_MAX - BUFSIZE) { in grep()
1279 conbuflen += BUFSIZE; in grep()
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dstandalone.c123 char passwdBuf[BUFSIZE]; in readPwd()
130 if (fgets(passwdBuf, BUFSIZE, f) == NULL) { in readPwd()
H A Dldapclient.c2122 if (domainlen > (BUFSIZE - sizeof (CMD_DOMAIN_START) - in start_services()
2583 char yp_dir[BUFSIZE], yp_dir_back[BUFSIZE]; in recover()
2586 char ldap_file_back[BUFSIZE], ldap_cred_back[BUFSIZE]; in recover()
2671 (void) strlcpy(ldap_file_back, LDAP_RESTORE_DIR "/", BUFSIZE); in recover()
2672 (void) strlcat(ldap_file_back, ldap_conf_file, BUFSIZE); in recover()
2693 (void) strlcpy(ldap_cred_back, LDAP_RESTORE_DIR "/", BUFSIZE); in recover()
2694 (void) strlcat(ldap_cred_back, ldap_cred_file, BUFSIZE); in recover()
2716 if (strlen(name) >= (BUFSIZE - strlen(LDAP_RESTORE_DIR))) in recover()
2718 if (strlen(name) >= (BUFSIZE - strlen(YP_BIND_DIR))) in recover()
2721 (void) strlcpy(yp_dir_back, LDAP_RESTORE_DIR "/", BUFSIZE); in recover()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/inc/
H A Dpdevinfo.h44 #define BUFSIZE (MAXPROPSIZE + MAXVALSIZE + sizeof (uint_t)) macro
46 char buf[BUFSIZE];
/illumos-gate/usr/src/cmd/eeprom/sparc/
H A Dopenprom.c40 #define BUFSIZE (MAXPROPSIZE + MAXVALSIZE + sizeof (uint_t)) macro
42 char buf[BUFSIZE];
154 char *nl, line[BUFSIZE]; in main()
229 (void) memset(oppbuf.buf, '\0', BUFSIZE); in dump_all()
/illumos-gate/usr/src/cmd/xargs/
H A Dxargs.c68 #define BUFSIZE LINE_MAX macro
101 static char argbuf[BUFSIZE * 2 + 1];
102 static char lastarg[BUFSIZE + 1];
115 static int BUFLIM = BUFSIZE;
344 if (BUFLIM > BUFSIZE || BUFLIM <= 0) { in main()
346 BUFSIZE, optarg); in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp_var.h188 #define BUFSIZE ((MAXPATHLEN)*2+MAXCMDLEN+4) macro
190 extern char line[BUFSIZE]; /* input line buffer */
192 extern char argbuf[BUFSIZE]; /* argument storage buffer */
/illumos-gate/usr/src/common/iscsi/
H A Dbase64.c112 #define BUFSIZE 12 macro
119 uint8_t tmp_out[BUFSIZE]; in iscsi_base64_str_to_binary()

123