Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 642) sorted by relevance

12345678910>>...26

/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dbytes.t16 is(bytes::length($a), 2, "bytes::length sanity check");
17 is(bytes::chr(0x100), chr(0), "bytes::chr sanity check");
20 use bytes;
21 my $b = chr(0x100); # affected by 'use bytes'
22 is(ord($b), 0, "chr truncates under use bytes");
23 is(length($b), 1, "length truncated under use bytes");
24 is(bytes::ord($b), 0, "bytes::ord truncated under use bytes");
25 is(bytes::length($b), 1, "bytes::length truncated under use bytes");
26 is(bytes::substr($b, 0, 1), "\0", "bytes::substr truncated under use bytes");
32 use bytes;
[all …]
/onnv-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsun4x_standalloc.c131 vpage_from_freelist(size_t bytes) in vpage_from_freelist() argument
137 for (i = 0; i < N_FREELIST && free_size[i] < bytes; i++) in vpage_from_freelist()
142 "memory\n", bytes); in vpage_from_freelist()
147 free_addr[i] += bytes; in vpage_from_freelist()
148 free_size[i] -= bytes; in vpage_from_freelist()
149 dprintf("reuse freed temp scratch: bytes = %lu at %p\n", bytes, in vpage_from_freelist()
165 size_t bytes; in get_low_vpage() local
172 bytes = numpages * pagesize; in get_low_vpage()
173 if (scratchmemp + bytes <= top_bootmem) { in get_low_vpage()
175 scratchmemp += bytes; in get_low_vpage()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/lib/Encode/Unicode/
H A DUTF7.pm33 my $bytes = '';
36 $bytes .= $1;
39 $bytes .= "+-";
43 $bytes .= "+$base64-";
50 return $bytes;
54 my ($obj, $bytes, $chk) = @_;
55 my $len = length($bytes);
57 while (pos($bytes) < $len) {
58 if ($bytes =~ /\G([^+]+)/ogc) {
60 }elsif($bytes =~ /\G\+-/ogc) {
[all …]
/onnv-gate/usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/com/sun/dhcpmgr/data/
H A DIPAddress.java44 private byte [] bytes = new byte[] { 0, 0, 0, 0 }; field in IPAddress
80 bytes = a.getAddress(); in IPAddress()
95 bytes[b++] = (byte)shortVal; in IPAddress()
115 bytes = a.getAddress(); in IPAddress()
123 bytes = new byte[4]; in IPAddress()
126 bytes[i] = (byte)((addr >> (8 * (3 - i))) & 0xff); in IPAddress()
137 b.append((int)bytes[i] & 0xff); in toString()
150 i |= ((int)bytes[j] & 0xff) << (8 * (3 - j)); in intValue()
173 return bytes; in getAddress()
203 if (ba.length != bytes.length) { in equals()
[all …]
/onnv-gate/usr/src/cmd/bnu/
H A Dstatlog.c43 statlog( direction, bytes, millisecs, breakmsg) in statlog() argument
45 unsigned long bytes;
59 if (bytes < 1<<22)
60 bytes1000 = (bytes*1000/millisecs);
62 bytes1000 = ((bytes/millisecs)*1000);
65 direction, bytes, millisecs/1000, millisecs%1000,
92 putfilesize(bytes) in putfilesize() argument
93 unsigned long bytes; in putfilesize()
95 filesize = bytes;
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);
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Dutf8decode.t10 use bytes;
61 3.1 Unexpected continuation bytes
79 3.3.2 n "\xe0\x80" - 2 e0:80 - 2 bytes, need 3
80 3.3.3 n "\xf0\x80\x80" - 3 f0:80:80 - 3 bytes, need 4
81 3.3.4 n "\xf8\x80\x80\x80" - 4 f8:80:80:80 - 4 bytes, need 5
82 3.3.5 n "\xfc\x80\x80\x80\x80" - 5 fc:80:80:80:80 - 5 bytes, need 6
84 3.3.7 n "\xef\xbf" - 2 ef:bf - 2 bytes, need 3
85 3.3.8 n "\xf7\xbf\xbf" - 3 f7:bf:bf - 3 bytes, need 4
86 3.3.9 n "\xfb\xbf\xbf\xbf" - 4 fb:bf:bf:bf - 4 bytes, need 5
87 3.3.10 n "\xfd\xbf\xbf\xbf\xbf" - 5 fd:bf:bf:bf:bf - 5 bytes, need 6
[all …]
/onnv-gate/usr/src/stand/lib/sa/
H A Dstdio.c110 int bytes; in fgets() local
116 for (bytes = 0; bytes < (n - 1); ++bytes) { in fgets()
117 cnt = read(stream->_file, &s[bytes], 1); in fgets()
119 if (bytes != 0) { in fgets()
120 s[bytes] = '\0'; in fgets()
128 if (bytes != 0) { in fgets()
129 s[bytes] = '\0'; in fgets()
135 if (s[bytes] == '\n') { in fgets()
136 s[bytes + 1] = '\0'; in fgets()
141 s[bytes] = '\0'; in fgets()
[all …]
/onnv-gate/usr/src/lib/libdisasm/common/
H A Dlibdisasm.c43 dis_zalloc(size_t bytes) in dis_zalloc() argument
45 return (mdb_zalloc(bytes, UM_SLEEP)); in dis_zalloc()
49 dis_free(void *ptr, size_t bytes) in dis_free() argument
51 mdb_free(ptr, bytes); in dis_free()
55 dis_zalloc(size_t bytes) in dis_zalloc() argument
57 return (calloc(1, bytes)); in dis_zalloc()
62 dis_free(void *ptr, size_t bytes) in dis_free() argument
/onnv-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp.c194 httpDumpData(FILE *fp, const char *tag, const char *buffer, int bytes) in httpDumpData() argument
198 fprintf(fp, "%s %d(0x%x) bytes...\n", tag, bytes, bytes); in httpDumpData()
199 for (i = 0; i < bytes; i += 16) { in httpDumpData()
202 for (j = 0; j < 16 && (i + j) < bytes; j ++) in httpDumpData()
211 for (j = 0; j < 16 && (i + j) < bytes; j ++) { in httpDumpData()
911 int bytes; /* Bytes read */ in httpRead() local
983 bytes = sizeof(http->buffer); in httpRead()
985 bytes = http->data_remaining; in httpRead()
989 bytes = http_read_ssl(http, http->buffer, bytes); in httpRead()
994 bytes)); in httpRead()
[all …]
/onnv-gate/usr/src/cmd/ssh/libssh/common/
H A Dprogressmeter.c90 format_rate(char *buf, int size, off_t bytes) in format_rate() argument
94 bytes *= 100; in format_rate()
95 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) in format_rate()
96 bytes = (bytes + 512) / 1024; in format_rate()
99 bytes = (bytes + 512) / 1024; in format_rate()
102 (long long) (bytes + 5) / 100, in format_rate()
103 (long long) (bytes + 5) / 10 % 10, in format_rate()
109 format_size(char *buf, int size, off_t bytes) in format_size() argument
113 for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++) in format_size()
114 bytes = (bytes + 512) / 1024; in format_size()
[all …]
H A Dbufaux.c101 u_int bits, bytes; in buffer_get_bignum_ret() local
111 bytes = (bits + 7) / 8; in buffer_get_bignum_ret()
112 if (bytes > 8 * 1024) { in buffer_get_bignum_ret()
113 error("buffer_get_bignum_ret: cannot handle BN of size %d", bytes); in buffer_get_bignum_ret()
116 if (buffer_len(buffer) < bytes) { in buffer_get_bignum_ret()
121 BN_bin2bn(bin, bytes, value); in buffer_get_bignum_ret()
122 if (buffer_consume_ret(buffer, bytes) == -1) { in buffer_get_bignum_ret()
142 u_int bytes; in buffer_put_bignum2_ret() local
155 bytes = BN_num_bytes(value) + 1; /* extra padding byte */ in buffer_put_bignum2_ret()
156 if (bytes < 2) { in buffer_put_bignum2_ret()
[all …]
/onnv-gate/usr/src/uts/common/os/
H A Dmemlist_new.c90 memlist_free_block(caddr_t base, size_t bytes) in memlist_free_block() argument
95 count = bytes / sizeof (struct memlist); in memlist_free_block()
199 uint64_t bytes, in memlist_add_span() argument
216 dst->ml_size = bytes; in memlist_add_span()
243 if ((address + bytes) == next->ml_address) { in memlist_add_span()
247 next->ml_size += bytes; in memlist_add_span()
262 if ((address + bytes) > in memlist_add_span()
269 if ((address + bytes) == in memlist_add_span()
278 mlp->ml_size += bytes; in memlist_add_span()
289 next->ml_size += bytes; in memlist_add_span()
[all …]
/onnv-gate/usr/src/lib/libc/sparcv9/gen/
H A Dstrncpy.s55 ! strncpy works similarly to strcpy, except that n bytes of s2
57 ! bytes remain to be copied, strncpy will copy null bytes into
75 sub %o4, 8, %o4 ! bytes until src aligned
102 be,pn %ncc, .storebyte1421 ! store 1, 4, 2, 1 bytes
120 ! remaining src bytes and then start padding with null bytes
127 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
131 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
135 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
139 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
143 movz %ncc, %g0, %o1 ! if so, start padding with null bytes
[all …]
/onnv-gate/usr/src/lib/libc/capabilities/sun4u-opl/common/
H A Dmemcpy.s131 andcc %o0, 7, %o5 ! bytes till DST 8 byte aligned
167 ldx [%o1-16], %o3 ! a block of 32 bytes
174 bgu,pt %ncc, .dbmedl32 ! repeat if at least 32 bytes left
178 ble,pt %ncc, .dbmedl15 ! skip if 15 or fewer bytes left
180 ldx [%o1-8], %o4 ! load and store 16 bytes
192 blt,pt %ncc, .dbremain ! skip if 7 or fewer bytes left
194 ldx [%o1-8], %o4 ! load 8 bytes
196 stx %o4, [%o0-8] ! and store 8 bytes
224 ldd [%o5-8], %d2 ! load 8 bytes
225 ldd [%o5-16], %d4 ! load 8 bytes
[all …]
/onnv-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_streams.c41 static void consume(evStream *str, size_t bytes);
223 consume(evStream *str, size_t bytes) { in consume() argument
224 while (bytes > 0U) { in consume()
225 if (bytes < (size_t)str->iovCur->iov_len) { in consume()
226 str->iovCur->iov_len -= bytes; in consume()
228 ((u_char *)str->iovCur->iov_base + bytes); in consume()
229 str->ioDone += bytes; in consume()
230 bytes = 0; in consume()
232 bytes -= str->iovCur->iov_len; in consume()
262 int bytes; in writable() local
[all …]
/onnv-gate/usr/src/lib/libc/capabilities/sun4u-us3/common/
H A Dmemcpy.s124 andcc %o0, 7, %o5 ! bytes till DST 8 byte aligned
162 ldd [%o1-16], %d2 ! a block of 64 bytes
177 bgu,pt %ncc, .dbmedl64 ! repeat if at least 64 bytes left
191 ldx [%o1-16], %o3 ! a block of 32 bytes
198 bgu,pt %ncc, .dbmedl32 ! repeat if at least 32 bytes left
202 ble,pt %ncc, .dbmedl15 ! skip if 15 or fewer bytes left
204 ldx [%o1-8], %o4 ! load and store 16 bytes
216 blt,pt %ncc, .dbremain ! skip if 7 or fewer bytes left
218 ldx [%o1-8], %o4 ! load 8 bytes
220 stx %o4, [%o0-8] ! and store 8 bytes
[all …]
/onnv-gate/usr/src/common/openssl/crypto/rand/
H A Drandfile.c102 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument
118 if (bytes == 0) return(ret); in RAND_load_file()
128 bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */ in RAND_load_file()
134 if (bytes > 0) in RAND_load_file()
135 n = (bytes < BUFSIZE)?(int)bytes:BUFSIZE; in RAND_load_file()
143 if (bytes > 0) in RAND_load_file()
145 bytes-=n; in RAND_load_file()
146 if (bytes <= 0) break; in RAND_load_file()
H A Drand_egd.c99 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) in RAND_query_egd_bytes() argument
108 int RAND_egd_bytes(const char *path,int bytes) in RAND_egd_bytes() argument
136 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) in RAND_query_egd_bytes() argument
187 while(bytes > 0) in RAND_query_egd_bytes()
190 egdbuf[1] = bytes < 255 ? bytes : 255; in RAND_query_egd_bytes()
274 bytes -= egdbuf[0]; in RAND_query_egd_bytes()
284 int RAND_egd_bytes(const char *path, int bytes) in RAND_egd_bytes() argument
288 num = RAND_query_egd_bytes(path, NULL, bytes); in RAND_egd_bytes()
/onnv-gate/usr/src/common/openssl/crypto/x509/
H A Dx509name.c175 unsigned char *bytes, int len, int loc, int set) in X509_NAME_add_entry_by_OBJ() argument
179 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); in X509_NAME_add_entry_by_OBJ()
187 unsigned char *bytes, int len, int loc, int set) in X509_NAME_add_entry_by_NID() argument
191 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); in X509_NAME_add_entry_by_NID()
199 const unsigned char *bytes, int len, int loc, int set) in X509_NAME_add_entry_by_txt() argument
203 ne = X509_NAME_ENTRY_create_by_txt(NULL, field, type, bytes, len); in X509_NAME_add_entry_by_txt()
276 const char *field, int type, const unsigned char *bytes, int len) in X509_NAME_ENTRY_create_by_txt() argument
289 nentry = X509_NAME_ENTRY_create_by_OBJ(ne,obj,type,bytes,len); in X509_NAME_ENTRY_create_by_txt()
295 int type, unsigned char *bytes, int len) in X509_NAME_ENTRY_create_by_NID() argument
306 nentry = X509_NAME_ENTRY_create_by_OBJ(ne,obj,type,bytes,len); in X509_NAME_ENTRY_create_by_NID()
[all …]
/onnv-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPHeaderV2.java634 byte[] bytes = obaos.toByteArray(); in externalizeOptions()
636 baos.write(bytes, 0, bytes.length); in externalizeOptions()
669 byte[] bytes = getStringBytes(address, Defaults.UTF8); in parsePreviousRespondersOut()
673 if (bytes.length <= available) { in parsePreviousRespondersOut()
674 bbaos.write(bytes, 0, bytes.length); in parsePreviousRespondersOut()
675 available = available - bytes.length; in parsePreviousRespondersOut()
804 byte[] bytes = getStringBytes(surl.toString(), Defaults.UTF8); in parseServiceURLOut()
826 putInteger(bytes.length, abaos); in parseServiceURLOut()
829 message[1] = bytes; in parseServiceURLOut()
836 bytes = (byte[]) bytesArray[1]; in parseServiceURLOut()
[all …]
/onnv-gate/usr/src/lib/libbsm/common/
H A Dau_to.c211 short bytes; /* length of string */ in au_to_arg32() local
213 bytes = strlen(text) + 1; in au_to_arg32()
216 sizeof (short) + bytes)); in au_to_arg32()
223 adr_short(&adr, &bytes, 1); in au_to_arg32()
224 adr_char(&adr, text, bytes); in au_to_arg32()
240 short bytes; /* length of string */ in au_to_arg64() local
242 bytes = strlen(text) + 1; in au_to_arg64()
245 sizeof (short) + bytes)); in au_to_arg64()
252 adr_short(&adr, &bytes, 1); in au_to_arg64()
253 adr_char(&adr, text, bytes); in au_to_arg64()
[all …]
/onnv-gate/usr/src/lib/libc/sparcv9/crt/
H A D__align_cpy_8.s78 bz,pn %xcc, .wrdbl2 ! Only 8 bytes need to be copied.
80 bpos,a,pt %xcc, .wrdbl1 ! Have at least 16 bytes to copy.
83 retl ! No bytes to copy.
87 .wrdbl1: ! Copy 16 bytes at a time.
94 bg,a,pt %xcc, .wrdbl1 ! Have at least 16 more bytes.
97 bz,a,pt %xcc, .wrdbl3 ! Have 8 bytes remaining to copy.
104 ldx [%o1], %o3 ! Copy last 8 bytes.
/onnv-gate/usr/src/common/openssl/crypto/bn/
H A Dbn_rand.c121 int ret=0,bit,bytes,mask; in bnrand() local
130 bytes=(bits+7)/8; in bnrand()
134 buf=(unsigned char *)OPENSSL_malloc(bytes); in bnrand()
147 if (RAND_pseudo_bytes(buf, bytes) == -1) in bnrand()
152 if (RAND_bytes(buf, bytes) <= 0) in bnrand()
164 for (i = 0; i < bytes; i++) in bnrand()
198 buf[bytes-1]|=1; in bnrand()
199 if (!BN_bin2bn(buf,bytes,rnd)) goto err; in bnrand()
204 OPENSSL_cleanse(buf,bytes); in bnrand()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/Storable/t/
H A Dutf8hash.t38 use bytes ();
171 my $bytes = my $char = chr 27182;
172 utf8::encode ($bytes);
182 ok (!exists $just_utf8->{$bytes}, "bytes key absent?");
184 $orig = {$bytes => 1};
192 cmp_ok ($just_bytes->{$bytes}, '==', 1, "bytes key present?");
196 if length $char == length $bytes;
198 $orig = {$bytes => length $bytes, $char => length $char};
206 cmp_ok ($both->{$bytes}, '==', length $bytes, "bytes key present?");

12345678910>>...26