Searched defs:bytes (Results 1 - 25 of 228) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dreadv.c23 int bytes = read(fd, vp->iov_base, vp->iov_len); local
25 if (bytes < 0)
27 count += bytes;
28 if (bytes != vp->iov_len)
/illumos-gate/usr/src/cmd/svc/startd/
H A Dproc.c45 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 Dpage.c50 * @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 Ddoor_support.c42 char bytes[MAX(MINFRAME, MINFRAME32)]; local
61 bzero(bytes, count);
62 if (copyout(bytes, newsp, count) != 0)
/illumos-gate/usr/src/tools/smatch/src/
H A Dtarget.h49 * Helper functions for converting bits to bytes and vice versa.
57 static inline int bytes_to_bits(int bytes) argument
59 return bytes * bits_in_char;
H A Dcheck_allocating_enough_data.c24 int bytes; local
40 bytes = type_bytes(left_type);
41 if (bytes <= 0)
43 if (sval.uvalue >= bytes)
45 sm_error("not allocating enough data %d vs %s", bytes, sval_to_str(sval));
H A Dcheck_buffer_too_small_for_struct.c30 int bytes; local
48 bytes = get_array_size_bytes(expr->right);
49 if (bytes >= type_bytes(left_type))
H A Dsmatch_passes_array_size.c43 int size, bytes; local
71 bytes = get_array_size_bytes(arg);
72 if (bytes > 0) {
73 nr = find_param_eq(expr, bytes);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dmake_random_key.c45 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 DOpaque.java55 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 DCDAAdvert.java74 // 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 Dtohexstr.c34 * 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 DUnsignedInt64.java81 public UnsignedInt64(byte[] bytes) throws NumberFormatException argument
83 super(bytes);
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dos.h25 size_t bytes; /* Bytes read/written. */ member in struct:__io
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/
H A Dreadmmap.c56 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/lib/sun_fc/common/
H A DSun_fcAdapterCreateWWN.cc43 ssize_t bytes; local
46 bytes = read(fd, ptr, resid);
47 ptr += bytes;
48 resid -= bytes;
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Defichar.c125 int c, bytes; local
137 bytes = 0;
146 if (bytes != 0)
150 bytes = 3;
153 bytes = 2;
156 bytes = 1;
159 bytes = 0;
163 if (bytes > 0) {
165 bytes--;
166 } else if (bytes
[all...]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_jni_support.c90 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 Dcrcutils.c55 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 Dfwrite.c96 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 Dcrcutils.c57 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 Dxio.c148 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 Dcreate.c164 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 Dread.c48 * 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 Dmsgs.c66 int bytes; local
113 bytes = 1;
117 bytes = -1;
127 bytes = mread(md, Message, MSGMAX);
130 switch (bytes) {

Completed in 161 milliseconds

12345678910