Home
last modified time | relevance | path

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

12

/sysdeps/posix/
A Dreadv.c43 size_t bytes = 0; in __readv() local
47 if (SSIZE_MAX - bytes < vector[i].iov_len) in __readv()
52 bytes += vector[i].iov_len; in __readv()
61 if (__libc_use_alloca (bytes)) in __readv()
62 buffer = (char *) __alloca (bytes); in __readv()
65 malloced_buffer = buffer = (char *) malloc (bytes); in __readv()
71 ssize_t bytes_read = __read (fd, buffer, bytes); in __readv()
76 bytes = bytes_read; in __readv()
79 size_t copy = MIN (vector[i].iov_len, bytes); in __readv()
84 bytes -= copy; in __readv()
[all …]
A Dpreadv_common.c39 size_t bytes = 0; in PREADV() local
43 if (SSIZE_MAX - bytes < vector[i].iov_len) in PREADV()
48 bytes += vector[i].iov_len; in PREADV()
58 void *buffer = __mmap (NULL, bytes, PROT_READ | PROT_WRITE, in PREADV()
63 ssize_t bytes_read = PREAD (fd, buffer, bytes, offset); in PREADV()
68 bytes = bytes_read; in PREADV()
72 size_t copy = MIN (vector[i].iov_len, bytes); in PREADV()
77 bytes -= copy; in PREADV()
78 if (bytes == 0) in PREADV()
83 __munmap (buffer, bytes); in PREADV()
A Dwritev.c44 size_t bytes = 0; in __writev() local
48 if (SSIZE_MAX - bytes < vector[i].iov_len) in __writev()
53 bytes += vector[i].iov_len; in __writev()
62 if (__libc_use_alloca (bytes)) in __writev()
63 buffer = (char *) __alloca (bytes); in __writev()
66 malloced_buffer = buffer = (char *) malloc (bytes); in __writev()
74 size_t to_copy = bytes; in __writev()
87 ssize_t bytes_written = __write (fd, buffer, bytes); in __writev()
A Dpwritev_common.c39 size_t bytes = 0; in PWRITEV() local
43 if (SSIZE_MAX - bytes < vector[i].iov_len) in PWRITEV()
48 bytes += vector[i].iov_len; in PWRITEV()
58 void *buffer = __mmap (NULL, bytes, PROT_READ | PROT_WRITE, in PWRITEV()
69 ssize_t ret = PWRITE (fd, buffer, bytes, offset); in PWRITEV()
71 __munmap (buffer, bytes); in PWRITEV()
/sysdeps/i386/i686/
A Dmemcmp.S86 L(28bytes):
91 L(24bytes):
96 L(20bytes):
101 L(16bytes):
111 L(8bytes):
116 L(4bytes):
121 L(0bytes):
156 L(9bytes):
161 L(5bytes):
166 L(1bytes):
[all …]
/sysdeps/unix/sysv/linux/
A Dreaddir64.c49 ssize_t bytes; in __readdir64() local
52 if (bytes <= 0) in __readdir64()
57 if (bytes < 0 && errno == ENOENT) in __readdir64()
58 bytes = 0; in __readdir64()
61 if (bytes == 0) in __readdir64()
66 dirp->size = (size_t) bytes; in __readdir64()
127 ssize_t bytes;
130 if (bytes <= 0)
136 bytes = 0;
139 if (bytes == 0)
[all …]
A Dreaddir.c40 ssize_t bytes; in __readdir_unlocked() local
42 bytes = __getdents (dirp->fd, dirp->data, maxread); in __readdir_unlocked()
43 if (bytes <= 0) in __readdir_unlocked()
48 if (bytes < 0 && errno == ENOENT) in __readdir_unlocked()
49 bytes = 0; in __readdir_unlocked()
52 if (bytes == 0) in __readdir_unlocked()
57 dirp->size = (size_t) bytes; in __readdir_unlocked()
A Dgetentropy.c45 ssize_t bytes = INLINE_SYSCALL_CALL (getrandom, buffer, end - buffer, 0); in getentropy() local
46 if (bytes < 0) in getentropy()
54 if (bytes == 0) in getentropy()
62 buffer += bytes; in getentropy()
A Dreaddir64_r.c47 ssize_t bytes; in __readdir64_r() local
52 if (bytes <= 0) in __readdir64_r()
57 if (bytes < 0 && errno == ENOENT) in __readdir64_r()
59 bytes = 0; in __readdir64_r()
62 if (bytes < 0) in __readdir64_r()
68 dirp->size = (size_t) bytes; in __readdir64_r()
152 ssize_t bytes;
157 if (bytes <= 0)
164 bytes = 0;
167 if (bytes < 0)
[all …]
A Ddl-osinfo.h56 unsigned char bytes[sizeof (uintptr_t)]; in _dl_setup_stack_chk_guard() member
62 memcpy (ret.bytes, dl_random, sizeof (ret)); in _dl_setup_stack_chk_guard()
A Dtst-scm_rights.c56 char bytes[CMSG_SPACE (sizeof (int))]; in subprocess() member
64 .msg_control = cmsg_storage.bytes, in subprocess()
115 char bytes[CMSG_SPACE (sizeof (int))]; in one_test() member
123 .msg_control = cmsg_storage.bytes, in one_test()
/sysdeps/i386/i686/multiarch/
A Dmemcmp-sse4.S167 L(0bytes):
279 L(8bytes):
284 L(4bytes):
301 L(8bytes):
305 L(4bytes):
339 L(9bytes):
344 L(5bytes):
385 L(6bytes):
390 L(2bytes):
430 L(7bytes):
[all …]
A Dmemcmp-ssse3.S1803 L(44bytes):
1848 L(8bytes):
1853 L(4bytes):
1900 L(8bytes):
1904 L(4bytes):
1962 L(9bytes):
1967 L(5bytes):
2031 L(6bytes):
2036 L(2bytes):
2099 L(7bytes):
[all …]
/sysdeps/mach/hurd/
A Dgetentropy.c44 ssize_t bytes = __getrandom (buffer, end - buffer, 0); in getentropy() local
45 if (bytes < 0) in getentropy()
53 if (bytes == 0) in getentropy()
61 buffer += bytes; in getentropy()
/sysdeps/alpha/alphaev6/
A Dmemcpy.S77 ldq $1, 0($17) # L : get 8 bytes
96 ldq $6, 0($17) # L0 : bytes 0..7
100 ldq $4, 8($17) # L : bytes 8..15
101 ldq $5, 16($17) # L : bytes 16..23
105 ldq $3, 24($17) # L : bytes 24..31
111 stq $6, 0($16) # L : bytes 0..7
115 stq $4, 8($16) # L : bytes 8..15
116 stq $5, 16($16) # L : bytes 16..23
125 ldq $6, 0($17) # L : bytes 0..7
126 ldq $4, 8($17) # L : bytes 8..15
[all …]
A Dmemset.S71 insql $17, $16, $2 # U : Insert new bytes
77 or $2, $4, $1 # E : Final bytes
92 and $18, 7, $18 # E : Number of trailing bytes to write
107 subq $3, 16, $4 # E : Only try to unroll if > 128 bytes
/sysdeps/generic/
A Ddl-osinfo.h28 unsigned char bytes[sizeof (uintptr_t)]; in _dl_setup_stack_chk_guard() member
33 ret.bytes[sizeof (ret) - 1] = 255; in _dl_setup_stack_chk_guard()
34 ret.bytes[sizeof (ret) - 2] = '\n'; in _dl_setup_stack_chk_guard()
38 memcpy (ret.bytes, dl_random, sizeof (ret)); in _dl_setup_stack_chk_guard()
/sysdeps/x86_64/multiarch/
A Dmemcmp-ssse3.S1689 L(8bytes):
1694 L(4bytes):
1699 L(0bytes):
1740 L(8bytes):
1744 L(4bytes):
1748 L(0bytes):
1800 L(9bytes):
1805 L(5bytes):
1810 L(1bytes):
1868 L(6bytes):
[all …]
/sysdeps/arm/
A Dmemset.S30 bcc 2f @ less than 8 bytes to move
45 stmiacs r3!, {r1, ip} @ store up to 32 bytes per loop iteration
56 subs r2, r2, #1 @ store up to 4 bytes per loop iteration
A Dstrlen.S33 ands r3, r0, $3 @ how many bytes are duff?
55 addne r0, r0, $4 @ if not, the string is 4 bytes longer
62 tstne r2, $0x00ff0000 @ and add up to 3 bytes on to it
69 tstne r2, $0x0000ff00 @ and add up to 3 bytes on to it
/sysdeps/arm/armv6t2/
A Dmemchr.S71 @ At this point, we are aligned, we know we have at least 8 bytes to work with
81 orr r1, r1, r1, lsl #8 @ expand the match word across to all bytes
90 eor r4,r4, r1 @ Get it so that r4,r5 have 00's where the bytes match the target
95 sel r5, r4, r7 @ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION
97 bne 15b @ (Flags from the subs above) If not run out of bytes then go around again
/sysdeps/arm/armv6/
A Drawmemchr.S58 orr r1, r1, r1, lsl #8 @ Replicate C to all bytes
69 @ Loop searching for C, 8 bytes at a time.
73 2: eor r2, r2, r1 @ Convert C bytes to 0
A Dstrchr.S69 orr r1, r1, r1, lsl #8 @ Replicate C to all bytes
80 @ Loop searching for EOS or C, 8 bytes at a time.
86 eor r6, r2, r1 @ Convert C bytes to 0
/sysdeps/s390/s390-32/
A Dstrncpy-z900.S36 nr %r1,%r4 # last 2 bits of # bytes
38 ltr %r4,%r4 # less than 4 bytes to copy ?
/sysdeps/s390/s390-64/
A Dstrncpy-z900.S35 ngr %r1,%r4 # last 3 bits of # bytes
37 ltgr %r4,%r4 # less than 8 bytes to copy ?

Completed in 23 milliseconds

12