Searched refs:cap_len (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 706 static int cap_len = 0; variable 724 cap_len = st.st_size; in cap_open_read() 726 cap_buffp = mmap(0, cap_len, PROT_READ, MAP_PRIVATE, capfile_in, 0); in cap_open_read() 742 cap_len -= snoop_idlen + sizeof (int); in cap_open_read() 752 cap_len -= sizeof (int); in cap_open_read() 781 if (mprotect(cap_buffp, cap_len, PROT_READ | PROT_WRITE) < 0) in cap_open_read() 793 scan(cap_buffp, cap_len, filter, 1, !cap_new, proc, first, last, flags); in cap_read() 795 (void) munmap(cap_buffp, cap_len); in cap_read()
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ctl_clnt.c | 141 ctl_client(evContext lev, const struct sockaddr *cap, size_t cap_len, in ctl_client() argument 189 if (bind(ctx->sock, captmp, cap_len) < 0) { in ctl_client()
|
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac.c | 4811 int cap_len = sizeof (struct scsi_capacity_16); in aac_tran_start_ld() local 4813 bzero(&cap16, cap_len); in aac_tran_start_ld() 4821 min(bp->b_bcount, cap_len)); in aac_tran_start_ld()
|