Searched refs:length (Results 51 - 75 of 1330) sorted by relevance

1234567891011>>

/haiku/headers/os/mail/
H A Dmail_encoding.h37 off_t length, int headerMode);
39 ssize_t decode(mail_encoding encoding, char *out, const char *in, off_t length,
46 ssize_t encode_base64(char *out, const char *in, off_t length, int headerMode);
47 ssize_t decode_base64(char *out, const char *in, off_t length);
49 ssize_t encode_qp(char *out, const char *in, off_t length, int headerMode);
50 ssize_t decode_qp(char *out, const char *in, off_t length, int underscore_is_space);
53 ssize_t uu_decode(char *out, const char *in, off_t length);
/haiku/src/system/boot/platform/openfirmware/arch/ppc/
H A Dstart.cpp42 int length; local
46 if ((length = of_getprop(root, "device_type", buffer, sizeof(buffer) - 1))
48 buffer[length] = '\0';
56 if ((length = of_getprop(root, "model", buffer, sizeof(buffer) - 1))
58 buffer[length] = '\0';
63 if ((length = of_getprop(root, "name", buffer, sizeof(buffer) - 1))
65 buffer[length] = '\0';
/haiku/src/system/boot/platform/openfirmware/
H A Ddebug.cpp21 syslog_write(const char* buffer, size_t length) argument
23 if (sBufferPosition + length > sizeof(sBuffer))
25 memcpy(sBuffer + sBufferPosition, buffer, length);
26 sBufferPosition += length;
50 int length = vsnprintf(buffer, sizeof(buffer), format, args); local
51 if (length == 0)
54 syslog_write(buffer, length);
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6_utils.h22 compute_wordsum(uint8* _buffer, size_t length) argument
27 while (length >= 2) {
29 length -= 2;
39 uint16 length, uint16 protocol,
44 length = htons(length);
49 sum += compute_wordsum((uint8*)&length, sizeof(uint16));
37 ipv6_checksum(const struct in6_addr* source, const struct in6_addr* destination, uint16 length, uint16 protocol, uint16 checksum) argument
/haiku/src/tests/system/libroot/posix/
H A Dseek_and_write_test.cpp16 test_for_content(int fd, off_t start, const char* contents, size_t length) argument
19 while (length > 0) {
20 size_t toRead = std::min(length, sizeof(buffer));
34 length -= toRead;
44 size_t length = std::min((size_t)(end - start), sizeof(buffer)); local
46 if (pread(fd, buffer, length, start) != (ssize_t)length) {
51 for (size_t i = 0; i < length; i++) {
59 start += length;
/haiku/src/system/kernel/device_manager/
H A Ddma_resources.cpp58 vec.length = size;
86 i, fVecs[i].base, fVecs[i].length);
289 generic_addr_t& length)
291 if (length > fRestrictions.max_segment_size)
292 length = fRestrictions.max_segment_size;
296 != (base + (length - 1)) / fRestrictions.boundary) {
297 length = (baseBoundary + 1) * fRestrictions.boundary - base;
310 generic_size_t length = vec.length; local
313 if (length <
288 _RestrictBoundaryAndSegmentSize(generic_addr_t base, generic_addr_t& length) argument
347 _AddBounceBuffer(DMABuffer& buffer, phys_addr_t& physicalBounceBuffer, phys_size_t& bounceLeft, generic_size_t length, bool fixedLength) argument
519 generic_size_t length; local
565 generic_size_t length = maxLength; local
682 generic_size_t length local
[all...]
/haiku/src/tools/cppunit/cppunit/
H A DTypeInfoHelper.cpp22 name.compare( classPrefix, 0, classPrefix.length() );
24 name.compare( 0, classPrefix.length(), classPrefix );
27 return has_class_prefix ? name.substr( classPrefix.length() ) : name;
/haiku/src/add-ons/kernel/file_systems/udf/
H A DPhysicalPartition.cpp8 PhysicalPartition::PhysicalPartition(uint16 number, uint32 start, uint32 length) argument
12 fLength(length)
15 B_PRIu32 ",length = %" B_PRIu32 "\n", number, start, length));
37 ",length = %" B_PRIu32 "\n", logicalBlock, fLength));
H A DUdfString.cpp66 int32 length;
71 case 0xd0: length = 2; break;
72 case 0xe0: length = 3; break;
75 length = 4;
85 for (;i < length && (bytes[i] & 0x80) > 0;i++)
88 if (i < length) {
93 *in += length;
121 UdfString::UdfString(const char *cs0, uint32 length) argument
126 SetTo(cs0, length);
149 uint32 length local
238 SetTo(const char *cs0, uint32 length) argument
[all...]
/haiku/src/system/kernel/arch/generic/
H A Dgeneric_vm_physical_page_ops.cpp15 generic_vm_memset_physical(phys_addr_t address, int value, phys_size_t length) argument
19 while (length > 0) {
28 size_t toSet = min_c(length, B_PAGE_SIZE - pageOffset);
33 length -= toSet;
42 generic_vm_memcpy_from_physical(void* _to, phys_addr_t from, size_t length, argument
50 while (length > 0) {
51 size_t toCopy = min_c(length, B_PAGE_SIZE - pageOffset);
73 length -= toCopy;
82 generic_vm_memcpy_to_physical(phys_addr_t to, const void* _from, size_t length, argument
90 while (length >
[all...]
/haiku/src/bin/rc/
H A Ddecompile.cpp52 const void *data, size_t length);
166 is_string(const void *data, size_t length) argument
173 if (length == 0)
178 for (size_t t = 0; t < length - 1; ++t) {
236 size_t length, size_t bytesPerLine = 32)
239 uint8 *end = ptr + length;
241 if (length > bytesPerLine) {
277 write_bool(const char *name, const void *data, size_t length) argument
279 if (length != sizeof(bool)) {
280 write_raw(name, B_BOOL_TYPE, data, length);
235 write_raw(const char *name, type_code type, const void *data, size_t length, size_t bytesPerLine = 32) argument
289 write_int8(const char *name, const void *data, size_t length) argument
301 write_int16(const char *name, const void *data, size_t length) argument
313 write_int32(const char *name, const void *data, size_t length) argument
325 write_int64(const char *name, const void *data, size_t length) argument
337 write_uint8(const char *name, const void *data, size_t length) argument
349 write_uint16(const char *name, const void *data, size_t length) argument
361 write_uint32(const char *name, const void *data, size_t length) argument
373 write_uint64(const char *name, const void *data, size_t length) argument
385 write_float(const char *name, const void *data, size_t length) argument
397 write_double(const char *name, const void *data, size_t length) argument
409 write_size(const char *name, const void *data, size_t length) argument
421 write_ssize(const char *name, const void *data, size_t length) argument
433 write_off(const char *name, const void *data, size_t length) argument
445 write_time(const char *name, const void *data, size_t length) argument
535 write_string(const char *name, type_code type, const void *data, size_t length) argument
598 size_t length; local
667 write_other(const char *name, type_code type, const void *data, size_t length) argument
684 write_app_signature(const void *data, size_t length) argument
692 write_app_flags(const void *data, size_t length) argument
717 write_app_icon(uint32 which, const void *data, size_t length) argument
745 write_app_file_types(const void *data, size_t length) argument
753 write_app_version(const void *data, size_t length) argument
801 write_generic_data(const char *name, type_code type, const void *data, size_t length) argument
847 write_data(int32 id, const char *name, type_code type, const void *data, size_t length) argument
938 size_t length; local
[all...]
/haiku/src/system/libroot/posix/sys/
H A Dmman.cpp92 mmap(void* address, size_t length, int protection, int flags, int fd, argument
95 // offset and length must be page-aligned
96 if (length == 0 || offset % B_PAGE_SIZE != 0) {
151 length, areaProtection, mapping, true, fd, offset);
162 munmap(void* address, size_t length) argument
164 RETURN_AND_SET_ERRNO(_kern_unmap_memory(address, length));
169 mprotect(void* address, size_t length, int protection) argument
171 RETURN_AND_SET_ERRNO(_kern_set_memory_protection(address, length,
177 msync(void* address, size_t length, int flags) argument
179 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_sync_memory(address, length, flag
184 madvise(void* address, size_t length, int advice) argument
191 posix_madvise(void* address, size_t length, int advice) argument
198 mlock(const void* address, size_t length) argument
205 munlock(const void* address, size_t length) argument
[all...]
/haiku/src/apps/packageinstaller/
H A DPackageInfo.cpp164 uint64 length = 0; local
267 uint64 length; local
268 fPackageFile->Read(&length, 8);
269 swap_data(B_UINT64_TYPE, &length, sizeof(uint64),
281 uint8 *compressed = new uint8[length];
282 if (fPackageFile->Read(compressed, length)
283 != static_cast<int64>(length)) {
289 status_t ret = inflate_data(compressed, length, disclaimer,
303 uint64 length; local
304 fPackageFile->Read(&length,
584 uint32 length; local
608 uint32 length; local
[all...]
/haiku/headers/private/mail/
H A Dcrypt.h15 void passwd_crypt(char *in,char *out,int length);
/haiku/src/libs/glut/
H A Dglut_bwidth.c41 int c, length; local
51 length = 0;
57 length += ch->advance;
60 return length;
H A Dglut_swidth.c41 int c, length; local
51 length = 0;
57 length += ch->right;
60 return length;
/haiku/src/libs/bsd/
H A Dgetpass.c39 size_t length = strlen(password); local
41 if (length > 0 && (password[length - 1] == '\n'))
42 password[length - 1] = '\0';
H A Dgetentropy.c19 args.length = buflen;
23 if (args.length < buflen)
/haiku/src/system/boot/platform/bios_ia32/
H A Dacpi.h18 uint32 length; member in struct:scan_spots_struct
/haiku/src/system/kernel/arch/x86/paging/
H A Dx86_physical_page_mapper_mapped.h141 phys_size_t length)
143 if (address >= KERNEL_PMAP_SIZE || address + length > KERNEL_PMAP_SIZE)
146 memset((void*)(address + KERNEL_PMAP_BASE), value, length);
153 size_t length, bool user)
155 if (_from >= KERNEL_PMAP_SIZE || _from + length > KERNEL_PMAP_SIZE)
161 return user_memcpy(to, from, length);
163 memcpy(to, from, length);
171 size_t length, bool user)
173 if (_to >= KERNEL_PMAP_SIZE || _to + length > KERNEL_PMAP_SIZE)
179 return user_memcpy(to, from, length);
140 MemsetPhysical(phys_addr_t address, int value, phys_size_t length) argument
152 MemcpyFromPhysical(void* to, phys_addr_t _from, size_t length, bool user) argument
170 MemcpyToPhysical(phys_addr_t _to, const void* from, size_t length, bool user) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Diso9660_identify.h32 void SetISO9660Name(const char *name, uint32 length);
33 void SetJolietName(const char *name, uint32 length);
/haiku/src/apps/drivesetup/
H A DEncryptionUtils.cpp24 off_t length = BFile(path, B_READ_ONLY).Read(&buffer, 11); local
25 if (length != 11)
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DUtility.h38 \param length The \a length of the name array in bytes.
46 status_t get_volume_name(struct exfat_entry* entry, char* name, size_t length);
53 \param length The \a length of the name array in bytes.
55 void get_default_volume_name(off_t partitionSize, char* name, size_t length);
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dvm.cpp33 user_memset(void* target, char data, size_t length) argument
35 memset(target, data, length);
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A Dtcp.cpp56 // The TCP header length is at most 60 bytes (0xf * 4).
84 bump_option(tcp_option *&option, size_t &length) argument
87 length++;
90 length += option->length;
91 option = (tcp_option *)((uint8 *)option + option->length);
103 size_t length = 0; local
105 if (segment.max_segment_size > 0 && length + 8 <= bufferSize) {
107 option->length = 4;
109 bump_option(option, length);
204 int32 length = -1; local
446 size_t length = 0; local
570 tcp_setsockopt(net_protocol* _protocol, int level, int option, const void* _value, int length) argument
[all...]

Completed in 124 milliseconds

1234567891011>>