/haiku/src/system/libroot/posix/string/ |
H A D | strlen.cpp | 19 size_t length = 0; local 22 for (; (((addr_t)string + length) & 3) != 0; length++) { 23 if (string[length] == '\0') 24 return length; 28 uint32* valuePointer = (uint32*)(string + length); 32 /* Find the exact length */ 33 for (length = ((char*)valuePointer) - string; string[length] != '\0'; 34 length [all...] |
H A D | strnlen.cpp | 19 size_t length = 0; local 21 for (; (((addr_t)string + length) & 3) != 0; length++) { 22 if (length == count || string[length] == '\0') 23 return length; 28 uint32* valuePointer = (uint32*)(string + length); 33 /* Find the exact length */ 34 for (length = ((char*)valuePointer) - string; length < coun [all...] |
H A D | strdup.cpp | 15 size_t length; local 22 length = strlen(string) + 1; 24 if ((copied = (char *)malloc(length)) == NULL) 27 memcpy(copied, string, length);
|
H A D | strndup.cpp | 18 size_t length = strnlen(string, size); 19 char* copied = (char*)malloc(length + 1); 23 memcpy(copied, string, length); 24 copied[length] = '\0';
|
H A D | memccpy.c | 13 memccpy(void *_dest, const void *_source, int stopByte, size_t length) argument 15 if (length) { 22 } while (--length != 0);
|
/haiku/src/system/libroot/posix/wchar/ |
H A D | wcsnlen.c | 12 size_t length = 0; local 14 while (length < maxLength && *wcs++ != L'\0') 15 length++; 17 return length;
|
H A D | wcslen.c | 12 size_t length = 0; local 15 length++; 17 return length;
|
/haiku/src/add-ons/kernel/file_systems/udf/ |
H A D | UdfString.h | 30 UdfString(const char *cs0, uint32 length); 32 template <uint32 length> 33 UdfString(const array<char, length> &dString); 37 void SetTo(const char *cs0, uint32 length); 38 template <uint32 length> 39 void SetTo(const array<char, length> &dString); 41 template <uint32 length> 42 UdfString& operator=(const array<char, length> &dString); 59 template <uint32 length> 60 UdfString::UdfString(const array<char, length> [all...] |
/haiku/src/system/libroot/posix/ |
H A D | libgen.cpp | 19 size_t length = strlen(filepath); 21 while (filepath[--length] == '/' && length) 22 filepath[length] = '\0'; 44 size_t length = strlen(filepath); 46 while (filepath[--length] == '/' && length) 47 filepath[length] = '\0';
|
/haiku/src/system/boot/platform/u-boot/ |
H A D | debug.cpp | 23 int length; local 33 length = vsnprintf(buffer, sizeof(buffer), format, list); 36 if (length >= (int)sizeof(buffer)) 37 length = sizeof(buffer) - 1; 39 serial_puts(buffer, length); 56 int length; local 59 length = vsnprintf(buffer, sizeof(buffer), format, list); 62 if (length >= (int)sizeof(buffer)) 63 length = sizeof(buffer) - 1; 65 serial_puts(buffer, length); [all...] |
/haiku/src/kits/mail/ |
H A D | crypt.cpp | 19 ssize_t length; local 20 if (msg->FindData(name,B_RAW_TYPE,(const void **)&encryptedPassword,&length) < B_OK || !encryptedPassword || length == 0) 23 char *buffer = new char[length]; 24 passwd_crypt(encryptedPassword,buffer,length); 35 ssize_t length = strlen(password) + 1; 36 char *buffer = new char[length]; 37 passwd_crypt((char *)password,buffer,length); 40 status_t status = msg->AddData(name,B_RAW_TYPE,buffer,length,false); 47 _EXPORT void passwd_crypt(char *in,char *out,int length) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/ |
H A D | IORequestInfo.h | 15 size_t length; member in struct:UserlandFS::IORequestInfo 20 IORequestInfo(int32 id, bool isWrite, off_t offset, size_t length, argument 24 length(length), 34 length(other.length),
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | CRCTable.h | 9 uint32 calculate_crc(uint32 crc, uint8* data, uint16 length);
|
/haiku/headers/posix/ |
H A D | strings.h | 21 size_t length); 25 size_t length, locale_t locale); 28 #define bcmp(a, b, length) memcmp((a), (b), (length)) 29 #define bcopy(source, dest, length) memmove((dest), (source), (length)) 30 #define bzero(buffer, length) memset((buffer), 0, (length))
|
/haiku/src/add-ons/kernel/file_systems/shared/ |
H A D | CRCTable.h | 13 uint16 calculate_crc(uint16 crc, uint8 *data, uint16 length); 17 unsigned int length);
|
/haiku/headers/private/system/ |
H A D | random_defs.h | 18 size_t length; member in struct:random_get_entropy_args
|
/haiku/src/kits/interface/layouter/ |
H A D | Layouter.cpp | 21 LayoutInfo::ElementRangeSize(int32 position, int32 length) argument 23 if (length == 1) 26 int lastIndex = position + length - 1;
|
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | BitmapBlock.h | 24 bool CheckMarked(uint32 start, uint32 length); 25 bool CheckUnmarked(uint32 start, uint32 length); 27 bool Mark(uint32 start, uint32 length, 29 bool Unmark(uint32 start, uint32 length, 38 uint32& length); 44 bool _Check(uint32 start, uint32 length, bool marked); 46 bool _Update(uint32 start, uint32 length, bool mark, 59 BitmapBlock::CheckUnmarked(uint32 start, uint32 length) argument 61 return _Check(start, length, false); 66 BitmapBlock::CheckMarked(uint32 start, uint32 length) argument 73 Mark(uint32 start, uint32 length, bool force) argument 80 Unmark(uint32 start, uint32 length, bool force) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | debug.c | 57 ntfs_log_debug("VCN LCN Run length\n"); 68 (long long)rl[i].length, 69 rl[i].length ? "" : " (runlist end)"); 73 (long long)rl[i].length, 74 rl[i].length ? "" : " (runlist end)"); 75 } while (rl[i++].length);
|
/haiku/src/system/libroot/posix/string/arch/x86_64/ |
H A D | arch_string.cpp | 48 size_t length) 51 : "+D" (destination), "+S" (source), "+c" (length) 76 size_t length) 78 if (length < 8) { 79 table_small[length](destination, source); 84 to = reinterpret_cast<uint64_t*>(destination + length - 8); 85 from = reinterpret_cast<const uint64_t*>(source + length - 8); 113 static inline void memcpy_sse(uint8_t* destination, const uint8_t* source, size_t length) argument 117 auto toEnd = reinterpret_cast<__m128i*>(destination + length - 16); 118 auto fromEnd = reinterpret_cast<const __m128i*>(source + length 47 memcpy_repmovs(uint8_t* destination, const uint8_t* source, size_t length) argument 75 memcpy_small(uint8_t* destination, const uint8_t* source, size_t length) argument 138 memcpy(void* destination, const void* source, size_t length) argument 156 memset_repstos(uint8_t* destination, uint8_t value, size_t length) argument 166 memset_sse(uint8_t* destination, uint8_t value, size_t length) argument 193 memset_small(uint8_t* destination, uint8_t value, size_t length) argument 213 memset(void* ptr, int chr, size_t length) argument [all...] |
/haiku/src/add-ons/kernel/network/ppp/pppoe/ |
H A D | DiscoveryPacket.cpp | 33 uint16 length = ntohs(header.length); local 35 if(length > packet->size - PPPoE_HEADER_SIZE) { 37 dprintf("pppoe payload: %d\n", length); 48 while(position <= length - 4) { 50 position += ntohs(tag->length) + 4; 52 AddTag(ntohs(tag->type), tag->data, ntohs(tag->length)); 67 DiscoveryPacket::AddTag(uint16 type, const void *data, uint16 length, int32 index) argument 69 pppoe_tag *add = (pppoe_tag*) malloc(length + 4); 71 add->length 149 uint16 length = 0; local [all...] |
/haiku/src/system/kernel/util/ |
H A D | ring_buffer.cpp | 39 read_from_buffer(struct ring_buffer *buffer, uint8 *data, ssize_t length, argument 44 if (length > available) 45 length = available; 47 if (length == 0) 50 ssize_t bytesRead = length; 52 if (buffer->first + length <= buffer->size) { 55 if (user_memcpy(data, buffer->buffer + buffer->first, length) < B_OK) 58 memcpy(data, buffer->buffer + buffer->first, length); 62 size_t lower = length - upper; 82 write_to_buffer(struct ring_buffer *buffer, const uint8 *data, ssize_t length, argument 193 ring_buffer_flush(struct ring_buffer *buffer, size_t length) argument 205 ring_buffer_read(struct ring_buffer *buffer, uint8 *data, ssize_t length) argument 212 ring_buffer_write(struct ring_buffer *buffer, const uint8 *data, ssize_t length) argument 219 ring_buffer_user_read(struct ring_buffer *buffer, uint8 *data, ssize_t length) argument 226 ring_buffer_user_write(struct ring_buffer *buffer, const uint8 *data, ssize_t length) argument 241 ring_buffer_peek(struct ring_buffer* buffer, size_t offset, void* data, size_t length) argument 313 ring_buffer_move(struct ring_buffer *to, ssize_t length, struct ring_buffer *from) argument [all...] |
/haiku/src/tools/fs_shell/ |
H A D | string.cpp | 15 fssh_memchr(const void *source, int value, fssh_size_t length) argument 17 return memchr((void*)source, value, length); 22 fssh_memcmp(const void *buffer1, const void *buffer2, fssh_size_t length) argument 24 return memcmp(buffer1, buffer2, length); 29 fssh_memcpy(void *dest, const void *source, fssh_size_t length) argument 31 return memcpy(dest, source, length); 37 fssh_memccpy(void *dest, const void *source, int stopByte, fssh_size_t length) 39 return memccpy(dest, source, stopByte, length); 45 fssh_memmove(void *dest, const void *source, fssh_size_t length) argument 47 return memmove(dest, source, length); 52 fssh_memset(void *dest, int value, fssh_size_t length) argument 66 fssh_strncpy(char *dest, const char *source, fssh_size_t length) argument 80 fssh_strncat(char *dest, const char *source, fssh_size_t length) argument 101 fssh_strncmp(const char *string1, const char *string2, fssh_size_t length) argument 179 fssh_strxfrm(char *string1, const char *string2, fssh_size_t length) argument 209 fssh_strncasecmp(const char *string1, const char *string2, fssh_size_t length) argument 250 fssh_strlcat(char *dest, const char *source, fssh_size_t length) argument 257 fssh_strlcpy(char *dest, const char *source, fssh_size_t length) argument [all...] |
/haiku/src/system/boot/loader/ |
H A D | PathBlocklist.cpp | 35 size_t length = strlen(path); local 36 if (length > 0 && path[length - 1] == '/') 37 length--; 39 if (!_Resize(length, false)) 42 if (length > 0) { 43 memcpy(fPath, path, length); 44 fPath[length] = '\0'; 61 size_t length = (fLength > 0 ? fLength + 1 : 0) + componentLength; local 62 if (!_Resize(length, tru 73 _Resize(size_t length, bool keepData) argument [all...] |
/haiku/headers/private/fs_shell/ |
H A D | fssh_string.h | 18 extern void *fssh_memchr(const void *source, int value, fssh_size_t length); 20 fssh_size_t length); 22 fssh_size_t length); 24 fssh_size_t length); 26 fssh_size_t length); 27 extern void *fssh_memset(void *dest, int value, fssh_size_t length); 32 fssh_size_t length); 35 fssh_size_t length); 40 fssh_size_t length); 58 fssh_size_t length); [all...] |