/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | readv.c | 27 int bytes = read(fd, vp->iov_base, vp->iov_len); local 29 if (bytes < 0) 31 count += bytes; 32 if (bytes != vp->iov_len)
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | proc.c | 45 ssize_t bytes; local 52 bytes = read(fd, &psinfo, sizeof (psinfo)); 53 if (bytes == sizeof (psinfo))
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | page.c | 50 * @bytes - the number of bytes needed. 55 rdsv3_page_remainder_alloc(struct rdsv3_scatterlist *scat, unsigned long bytes, argument 63 if (bytes >= PAGE_SIZE) { 77 page = kmem_alloc(bytes, KM_NOSLEEP); 83 rdsv3_sg_set_page(scat, page, bytes, 0); 86 RDSV3_DPRINTF5("rdsv3_page_remainder_alloc", "bytes %lu %p %u", 87 bytes, rdsv3_sg_page(scat), scat->length);
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | door_support.c | 42 char bytes[MAX(MINFRAME, MINFRAME32)]; local 61 bzero(bytes, count); 62 if (copyout(bytes, newsp, count) != 0)
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | make_random_key.c | 45 unsigned char *bytes; local 66 if ((bytes = (unsigned char *) malloc(keybytes)) == NULL) 69 free(bytes); 73 random_data.data = (char *) bytes; 95 memset(bytes, 0, keybytes); 96 free(bytes);
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | Opaque.java | 55 byte[] bytes; field in class:Opaque 64 bytes = nb; 157 byte[] cbyte = ((Opaque)o).bytes; 161 if (cbyte.length != bytes.length) { 171 if (cbyte[i] != bytes[i]) { 182 int i, n = bytes.length; 194 str = Integer.toHexString(((int)bytes[i] & 0xFF));
|
H A D | CDAAdvert.java | 74 // Parse in the timestamp. Save bytes for auth block. 112 // Construct bytes for auth. 186 byte[] bytes) 189 bytes[0] = (byte)dis.read(); 190 bytes[1] = (byte)dis.read(); 191 bytes[2] = (byte)dis.read(); 192 bytes[3] = (byte)dis.read(); 194 long a = (long)((char)bytes[0] & 0xFF); 195 long b = (long)((char)bytes[1] & 0xFF); 196 long c = (long)((char)bytes[ 184 getInt32(SrvLocHeader hdr, DataInputStream dis, byte[] bytes) argument [all...] |
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | tohexstr.c | 34 * IN bytes 41 tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen) argument 49 hexstr[2 * i] = hexlist[(bytes[i] >> 4) & 0xf]; 50 hexstr[2 * i + 1] = hexlist[bytes[i] & 0xf]; 67 hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes, size_t *blen) argument 73 *bytes = NULL; 120 *bytes = b;
|
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/ |
H A D | UnsignedInt64.java | 81 public UnsignedInt64(byte[] bytes) throws NumberFormatException argument 83 super(bytes);
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | os.h | 25 size_t bytes; /* Bytes read/written. */ member in struct:__io
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Sun_fcAdapterCreateWWN.cc | 43 ssize_t bytes; local 46 bytes = read(fd, ptr, resid); 47 ptr += bytes; 48 resid -= bytes;
|
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/ |
H A D | readmmap.c | 56 int fd = -1, bytes, retval = 0; local 81 bytes = write(fd, buf, size); 82 if (bytes != size) { 83 (void) printf("short write: %d != %ud\n", bytes, size); 112 bytes = pread(fd, buf, size, 0); 113 if (bytes != size) { 114 (void) printf("short read: %d != %ud\n", bytes, size);
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | zalloc.c | 68 * Allocation and frees of 0 bytes are valid operations. 89 znalloc(MemPool *mp, uintptr_t bytes) argument 96 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; 98 if (bytes == 0) 106 if (bytes <= mp->mp_Size - mp->mp_Used) { 111 if (bytes > mn->mr_Bytes) 122 if (mn->mr_Bytes == bytes) { 125 mn = (MemNode *)((char *)mn + bytes); 127 mn->mr_Bytes = ((MemNode *)ptr)->mr_Bytes - bytes; 148 zfree(MemPool *mp, void *ptr, uintptr_t bytes) argument 257 zextendPool(MemPool *mp, void *base, uintptr_t bytes) argument [all...] |
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_jni_support.c | 90 jbyteArray bytes = NULL; local 94 * Need a local reference for (1) FindClass(), (2) the bytes and 133 bytes = (*env)->CallObjectMethod(env, jstr, method); 138 len = (*env)->GetArrayLength(env, bytes); 159 * Copy the encoded bytes into the 164 bytes, 171 if (bytes != NULL) { 172 (*env)->DeleteLocalRef(env, bytes);
|
/illumos-gate/usr/src/lib/libfru/libfruraw/ |
H A D | crcutils.c | 55 compute_crc8(unsigned char *bytes, int length) argument 74 cm_nxt(p_crc, bytes[i]); 83 compute_crc32(unsigned char *bytes, int length) argument 102 cm_nxt(p_crc, bytes[i]); 117 compute_checksum32(unsigned char *bytes, int length) argument 124 /* Grab bytes in 4-byte chunks */ 127 (void) memcpy(&next4bytes, &(bytes[i]), 4); 139 /* Grab any remaining bytes at the end */ 141 tailbytes[k] = bytes[j]; 145 * Treat any remaining bytes pu [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fwrite.c | 96 ssize_t bytes; local 108 bytes = iop->_ptr - iop->_base; 111 while ((n = write(fileno(iop), data, (size_t)bytes)) 112 != bytes) { 119 bytes -= n; 126 * written is in bytes until the return.
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | crcutils.c | 57 compute_crc8(unsigned char *bytes, int length) argument 76 cm_nxt(p_crc, bytes[i]); 85 compute_crc32(unsigned char *bytes, int length) argument 104 cm_nxt(p_crc, bytes[i]); 119 compute_checksum32(unsigned char *bytes, int length) argument 126 /* Grab bytes in 4-byte chunks */ 129 (void) memcpy(&next4bytes, &(bytes[i]), 4); 141 /* Grab any remaining bytes at the end */ 143 tailbytes[k] = bytes[j]; 147 * Treat any remaining bytes pu [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | xio.c | 148 unsigned long bytes; local 151 bytes = 0L; 154 bytes += len; 155 putfilesize(bytes); 183 unsigned long bytes; local 186 bytes = 0L; 193 bytes += len; 194 putfilesize(bytes); 211 * i -> # of bytes read
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | create.c | 164 uchar_t *bytes = NULL; local 169 &bytes, &bytelen); 170 if (ret != KMF_OK || bytes == NULL) { 179 if (bytes != NULL) 180 free(bytes); 275 uchar_t *bytes = NULL; local 280 &bytes, &bytelen); 281 if (ret != KMF_OK || bytes == NULL) { 291 if (bytes != NULL) 292 free(bytes); [all...] |
/illumos-gate/usr/src/cmd/tail/ |
H A D | read.c | 48 * bytes -- read bytes to an offset from the end and display. 58 bytes(FILE *fp, const char *fn, off_t off) function
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | msgs.c | 66 int bytes; local 113 bytes = 1; 117 bytes = -1; 127 bytes = mread(md, Message, MSGMAX); 130 switch (bytes) {
|
/illumos-gate/usr/src/lib/libtnf/ |
H A D | access.c | 127 size_t size, bytes; local 148 bytes = _GET_BLOCK_BYTES_VALID(tnf, bhdr); 150 blim = bval + bytes;
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_cidr_ntop.c | 76 decoct(const u_char *src, int bytes, char *dst, size_t size) { argument 81 for (b = 1; b <= bytes; b++) { 86 if (b != bytes) { 113 size_t bytes; local 120 /* Find number of significant bytes in address. */ 129 bytes = (((bits <= 0) ? 1 : bits) + 7) / 8; 130 if (len > bytes) 131 bytes = len; 132 b = decoct(src, bytes, dst, size);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | gb18030.c | 61 uchar_t bytes[4]; member in struct:__anon3011 95 if (gs->count < 0 || gs->count > sizeof (gs->bytes)) { 106 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof (gs->bytes) - gs->count); 107 (void) memcpy(gs->bytes + gs->count, s, ncopy); 110 s = (char *)gs->bytes;
|
H A D | gb2312.c | 56 uchar_t bytes[2]; member in struct:__anon3012 113 if (gs->count < 0 || gs->count > sizeof (gs->bytes)) { 124 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof (gs->bytes) - gs->count); 125 (void) memcpy(gs->bytes + gs->count, s, ncopy); 128 s = (char *)gs->bytes;
|