Searched refs:BUFLEN (Results 1 - 21 of 21) sorted by relevance

/illumos-gate/usr/src/cmd/sh/
H A Dprint.c41 #define BUFLEN 256 macro
45 static unsigned char buffer[BUFLEN];
211 if (buffd != -1 && index + 1 >= BUFLEN) {
227 if (buffd != -1 && index + len >= BUFLEN) {
231 if (buffd != -1 && len >= BUFLEN) {
295 if (buffd != -1 && ptr >= &bufp[BUFLEN-4]) {
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Deftwrite.c104 #define BUFLEN 8192 macro
105 char buf[BUFLEN];
129 buf[BUFLEN - 1] = '\0';
143 while ((cc = fread(buf, 1, BUFLEN, tfp)) > 0) {
172 while ((cc = fread(buf, 1, BUFLEN, tfp)) > 0) {
H A Deftread.c81 #define BUFLEN 8192 macro
82 char buf[BUFLEN];
171 while ((cc = fread(buf, 1, BUFLEN, fp)) > 0) {
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dpkg.c48 #define BUFLEN (2 * PATH_MAX) macro
137 char *tmpbuf = alloca(BUFLEN);
143 while (fgets(tmpbuf, BUFLEN, fp) != NULL) {
194 static char tmpbuf[BUFLEN];
200 (void) snprintf(tmpbuf, BUFLEN, PKGCHK_CMD, path);
207 (void) fgets(tmpbuf, BUFLEN, pcout);
215 (void) snprintf(tmpbuf, BUFLEN, PKGINFO_CMD, pkgname);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_mip.c44 #define BUFLEN MAXLINE - 64 macro
635 char auth_prn_str[BUFLEN];
648 (this_ext_len*3 > BUFLEN ? BUFLEN : this_ext_len),
658 char auth_prn_str[BUFLEN];
702 (this_ext_len*3 > BUFLEN ? BUFLEN : this_ext_len),
750 char auth_prn_str[BUFLEN];
755 (this_ext_len*3 > BUFLEN ? BUFLEN /
[all...]
H A Dsnoop_sctp.c59 #define BUFLEN MAXLINE - 64 macro
291 char buf[BUFLEN];
304 (void) strlcat(buf, " ...", BUFLEN);
307 (void) snprintf(get_line(0, 0), BUFLEN, msg, buf);
/illumos-gate/usr/src/cmd/tcpd/
H A Dtcpdchk.c58 #define BUFLEN 2048 macro
199 char sv_list[BUFLEN]; /* becomes list of daemons */
273 char buf[BUFLEN];
294 char buf[BUFLEN];
322 char buf[BUFLEN];
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dminigzip.c135 #define BUFLEN 16384 macro
242 unsigned char out[BUFLEN];
251 strm->avail_out = BUFLEN;
253 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
301 unsigned char out[BUFLEN];
311 strm->avail_out = BUFLEN;
313 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
366 local char buf[BUFLEN];
434 local char buf[BUFLEN];
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdladm_impl.h39 #define BUFLEN(lim, ptr) (((lim) > (ptr)) ? ((lim) - (ptr)) : 0) macro
H A Dsecobj.c333 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%s\t", sip->si_name);
334 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%s\t",
337 ptr += snprintf(ptr, BUFLEN(lim, ptr), "0x");
339 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%02x",
H A Dpropfuncs.c83 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%s\t", name);
91 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%s=", lip->li_name);
93 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%s%c",
/illumos-gate/usr/src/lib/libgss/
H A Dg_utils.c40 #define BUFLEN 256 macro
60 char buf[BUFLEN]; /* one line from the file */
91 line = fgets(buf, BUFLEN, fp);
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Ddavicom.c125 #define BUFLEN 1536 macro
141 static unsigned char txb[BUFLEN] __attribute__ ((aligned(4)));
146 static unsigned char rxb[NRXD * BUFLEN] __attribute__ ((aligned(4)));
461 rxd[i].buf1addr = (void *)virt_to_bus(&rxb[i * BUFLEN]);
463 rxd[i].buf1sz = BUFLEN;
613 memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen);
H A Dtulip.c364 #define BUFLEN 1536 macro
399 static unsigned char txb[BUFLEN] __attribute__ ((aligned(4)));
403 static unsigned char rxb[RX_RING_SIZE * BUFLEN] __attribute__ ((aligned(4)));
909 rx_ring[i].length = cpu_to_le32(BUFLEN);
910 rx_ring[i].buffer1 = virt_to_le32desc(&rxb[i * BUFLEN]);
914 rx_ring[i-1].length = cpu_to_le32(DESC_RING_WRAP | BUFLEN);
931 tx_ring[1].length = cpu_to_le32(DESC_RING_WRAP | BUFLEN);
1158 memcpy(nic->packet, rxb + tp->cur_rx * BUFLEN, nic->packetlen);
/illumos-gate/usr/src/cmd/fs.d/
H A Dfslib.c53 #define BUFLEN 256 macro
66 char buf[BUFLEN];
69 (void) snprintf(buf, BUFLEN, "fsgetmntlist: fopen %s", MNTTAB);
/illumos-gate/usr/src/cmd/lp/model/
H A Dlp.tsol_separator.c342 #define BUFLEN 1024 macro
343 char buf[BUFLEN];
345 while ((len = fread(buf, 1, BUFLEN, file)) > 0) {
/illumos-gate/usr/src/lib/libwrap/
H A Dhosts_access.c102 #define BUFLEN 2048 macro
145 char sv_list[BUFLEN]; /* becomes list of daemons */
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_db.c87 #define BUFLEN(lim, ptr) (((lim) > (ptr)) ? ((lim) - (ptr)) : 0) macro
1223 ptr += snprintf(ptr, BUFLEN(lim, ptr), "%s\t", linkp->ll_link);
1230 ptr += write_uint64(ptr, BUFLEN(lim, ptr), "linkid", &u64);
1233 ptr += write_uint64(ptr, BUFLEN(lim, ptr), "class", &u64);
1235 ptr += write_uint64(ptr, BUFLEN(lim, ptr), "media", &u64);
1245 BUFLEN(lim, ptr), cur_p->lp_name, cur_p->lp_val);
/illumos-gate/usr/src/uts/common/io/efe/
H A Defe.h336 #define BUFLEN(bp) ((bp)->b_len) macro
H A Defe.c987 PUTDESC16(rp, &dp->d_buflen, BUFLEN(bp));
1015 PUTDESC16(rp, &dp->d_buflen, BUFLEN(bp));
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c82 #define BUFLEN(lim, ptr) (((lim) > (ptr)) ? ((lim) - (ptr)) : 0) macro

Completed in 168 milliseconds