Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 58) sorted by relevance

123

/bionic/libc/upstream-openbsd/lib/libc/string/
Dmemmove.c49 memmove(void *dst0, const void *src0, size_t length) in memmove() argument
55 if (length == 0 || dst == src) /* nothing to do */ in memmove()
74 if ((t ^ (long)dst) & wmask || length < wsize) in memmove()
75 t = length; in memmove()
78 length -= t; in memmove()
84 t = length / wsize; in memmove()
86 t = length & wmask; in memmove()
94 src += length; in memmove()
95 dst += length; in memmove()
98 if ((t ^ (long)dst) & wmask || length <= wsize) in memmove()
[all …]
/bionic/libc/bionic/
Dc32rtomb.cpp68 size_t length; in c32rtomb() local
71 length = 1; in c32rtomb()
74 length = 2; in c32rtomb()
77 length = 3; in c32rtomb()
80 length = 4; in c32rtomb()
90 for (size_t i = length - 1; i > 0; i--) { in c32rtomb()
96 return length; in c32rtomb()
Dposix_fadvise.cpp37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { in posix_fadvise() argument
38 return posix_fadvise64(fd, offset, length, advice); in posix_fadvise()
42 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { in posix_fadvise64() argument
44 return (__arm_fadvise64_64(fd, advice, offset, length) == 0) ? 0 : errno; in posix_fadvise64()
47 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { in posix_fadvise64() argument
49 return (__fadvise64(fd, offset, length, advice) == 0) ? 0 : errno; in posix_fadvise64()
Dposix_fallocate.cpp33 int posix_fallocate(int fd, off_t offset, off_t length) { in posix_fallocate() argument
35 return (fallocate(fd, 0, offset, length) == 0) ? 0 : errno; in posix_fallocate()
38 int posix_fallocate64(int fd, off64_t offset, off64_t length) { in posix_fallocate64() argument
40 return (fallocate64(fd, 0, offset, length) == 0) ? 0 : errno; in posix_fallocate64()
Dmbrtoc32.cpp70 size_t length; in mbrtoc32() local
85 length = 1; in mbrtoc32()
89 length = 2; in mbrtoc32()
93 length = 3; in mbrtoc32()
97 length = 4; in mbrtoc32()
105 size_t bytes_wanted = length - bytes_so_far; in mbrtoc32()
121 for (i = 1; i < length; i++) { in mbrtoc32()
Dstrerror_r.cpp54 size_t length; in strerror_r() local
58 length = strlcpy(buf, error_name, buf_len); in strerror_r()
60 length = __libc_format_buffer(buf, buf_len, "Unknown error %d", error_number); in strerror_r()
62 if (length >= buf_len) { in strerror_r()
87 size_t length = snprintf(buf, buf_len, "%s signal %d", prefix, signal_number); in __strsignal() local
88 if (length >= buf_len) { in __strsignal()
Dftruncate.cpp28 int ftruncate(int filedes, off_t length) { in ftruncate() argument
29 return ftruncate64(filedes, length); in ftruncate()
Ddlmalloc.c31 static void* named_anonymous_mmap(size_t length);
50 static void* named_anonymous_mmap(size_t length) { in named_anonymous_mmap() argument
51 void* map = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in named_anonymous_mmap()
55 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, map, length, "libc_malloc"); in named_anonymous_mmap()
Dbionic_systrace.cpp98 int length = strlen(message); in ScopedTrace() local
99 char buf[length + WRITE_OFFSET]; in ScopedTrace()
100 size_t len = snprintf(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); in ScopedTrace()
Dlegacy_32_bit_support.cpp81 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate() argument
82 return fallocate64(fd, mode, static_cast<off64_t>(offset), static_cast<off64_t>(length)); in fallocate()
/bionic/libc/tools/zoneinfo/
DZoneCompactor.java52 byte[] nret = new byte[ret.length + nbytes]; in copyFile()
53 System.arraycopy(ret, 0, nret, 0, ret.length); in copyFile()
54 System.arraycopy(buf, 0, nret, ret.length, nbytes); in copyFile()
78 long length = sourceFile.length(); in ZoneCompactor() local
80 lengths.put(s, (int) length); in ZoneCompactor()
82 offset += length; in ZoneCompactor()
131 if (zoneName.length() >= MAXNAME) { in ZoneCompactor()
132 throw new RuntimeException("zone filename too long: " + zoneName.length()); in ZoneCompactor()
176 for (int i = 0; i < src.length(); ++i) { in toAscii()
186 if (args.length != 5) { in main()
/bionic/libc/kernel/uapi/linux/usb/
Df_mtp.h27 int64_t length; member
34 size_t length; member
Dfunctionfs.h52 __le32 length; member
59 __le32 length; member
97 __le32 length; member
/bionic/libc/kernel/uapi/mtd/
Dmtd-abi.h25 __u32 length; member
30 __u64 length; member
35 __u32 length; member
42 __u32 length; member
116 __u32 length; member
159 __u32 length; member
/bionic/libc/kernel/uapi/linux/
Dfirewire-cdev.h60 __u32 length; member
71 __u32 length; member
87 __u32 length; member
120 __u32 length; member
181 __u32 length; member
191 __u32 length; member
200 __u32 length; member
220 __u32 length; member
310 __u32 length; member
Dreiserfs_xattr.h32 size_t length; member
Dblkpg.h41 long long length; member
Datm_tcp.h30 __u32 length; member
Ddlm_device.h81 __u32 length; member
Dsom.h91 unsigned int length; member
/bionic/libc/kernel/uapi/rdma/
Dib_user_mad.h31 __u32 length; member
54 __u32 length; member
/bionic/libc/kernel/uapi/sound/
Dfirewire.h44 __be32 length; member
/bionic/libc/kernel/uapi/linux/dvb/
Dca.h56 unsigned int length; member
Dvideo.h151 int length; member
156 int length; member
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_osf.h51 __u16 kind, length; member

123