/haiku/src/system/kernel/slab/ |
H A D | slab_debug.h | 79 fill_block(void* buffer, size_t size, uint32 pattern) argument 81 if (buffer == NULL) 86 ((uint32*)buffer)[i] = pattern; 88 return buffer; 94 fill_allocated_block(void* buffer, size_t size) argument 97 return fill_block(buffer, size, 0xcccccccc); 99 return buffer; 105 fill_freed_block(void* buffer, size_t size) argument 108 return fill_block(buffer, size, 0xdeadbeef); 110 return buffer; [all...] |
/haiku/headers/private/kernel/util/ |
H A D | fs_trim_support.h | 18 get_trim_data_from_user(void* buffer, size_t size, MemoryDeleter& deleter, argument 21 if (!is_called_via_syscall() && !IS_USER_ADDRESS(buffer)) { 23 _trimData = (fs_trim_data*)buffer; 28 if (!IS_USER_ADDRESS(buffer)) 32 if (user_memcpy(&count, buffer, sizeof(count)) != B_OK) 43 if (user_memcpy(trimBuffer, buffer, bytes) != B_OK) { 48 // The passed in MemoryDeleter needs to take care of freeing the buffer 58 copy_trim_data_to_user(void* buffer, fs_trim_data* trimData) argument 60 if (!is_called_via_syscall() && !IS_USER_ADDRESS(buffer)) 63 if (!IS_USER_ADDRESS(buffer)) [all...] |
/haiku/src/libs/stdc++/legacy/ |
H A D | editbuf.cc | 56 str->buffer->delete_range(str->buffer->tell((buf_char*)pptr()), 57 str->buffer->tell(str->end)); 62 inline void disconnect_gap_from_file(edit_buffer* buffer, FILE* fp) argument 64 if (buffer->gap_start_ptr != &fp->__bufp) 66 buffer->gap_start_normal = fp->__bufp; 67 buffer->gap_start_ptr = &buffer->gap_start_normal; 71 void edit_streambuf::flush_to_buffer(edit_buffer* buffer) argument 73 if (pptr() > buffer 77 disconnect_gap_from_file(edit_buffer* buffer) argument 340 struct edit_buffer *buffer = str->buffer; local 374 struct edit_buffer *buffer = str->buffer; local 443 struct edit_buffer *buffer = str->buffer; local 555 edit_buffer* buffer = bstr->buffer; local 642 edit_buffer * edit_mark::buffer() function in class:edit_mark [all...] |
/haiku/src/tests/kits/app/bapplication/ |
H A D | AppQuitTester.cpp | 39 BString buffer; local 40 CHK(runner.GetOutput(&buffer) == B_OK); 41 if (buffer != expectedOutput) 42 printf("result is `%s', but should be `%s'\n", buffer.String(), 44 CHK(buffer == expectedOutput); 135 BString buffer; local 136 CHK(runner.GetOutput(&buffer) == B_OK); 139 int32 errorIndex = buffer.FindFirst( 142 int32 errorEnd = buffer.FindFirst('\n', errorIndex); 144 buffer [all...] |
/haiku/src/system/boot/platform/efi/ |
H A D | debug.cpp | 27 syslog_write(const char* buffer, size_t length) argument 30 ring_buffer_write(sDebugSyslogBuffer, (const uint8*)buffer, length); 32 memcpy(sBuffer + sBufferPosition, buffer, length); 41 char buffer[512]; local 42 int length = vsnprintf(buffer, sizeof(buffer), format, args); 46 if (length >= (int)sizeof(buffer)) 47 length = sizeof(buffer) - 1; 49 syslog_write(buffer, length); 50 serial_puts(buffer, lengt 87 void* buffer = NULL; local [all...] |
/haiku/src/kits/network/libnetservices2/ |
H A D | HttpSerializer.cpp | 22 \brief Set the \a request to serialize, and load the initial data into the \a buffer. 25 HttpSerializer::SetTo(HttpBuffer& buffer, const BHttpRequest& request) argument 27 buffer.Clear(); 28 request.SerializeHeaderTo(buffer); 41 \brief Transfer the HTTP request to \a target while using \a buffer for intermediate storage. 46 HttpSerializer::Serialize(HttpBuffer& buffer, BDataIO* target) argument 56 _WriteToTarget(buffer, target); 57 if (buffer.RemainingBytes() > 0) { 75 auto bytesWritten = _WriteToTarget(buffer, target); 78 if (buffer 117 _WriteToTarget(HttpBuffer& buffer, BDataIO* target) const argument [all...] |
/haiku/src/add-ons/kernel/file_systems/iso9660/ |
H A D | iso9660.cpp | 145 init_volume_date(ISOVolDate *date, char *buffer) argument 147 memcpy(date, buffer, ISO_VOL_DATE_SIZE); 153 init_node_date(ISORecDate *date, char *buffer) argument 155 memcpy(date, buffer, sizeof(struct ISORecDate)); 161 InitVolDesc(iso9660_volume *volume, char *buffer) argument 165 volume->volDescType = *(uint8 *)buffer; 166 buffer += sizeof(volume->volDescType); 170 strncpy(volume->stdIDString, buffer, kStdIDStringLen); 171 buffer += kStdIDStringLen; 173 volume->volDescVersion = *(uint8 *)buffer; 304 parse_rock_ridge(iso9660_volume* volume, iso9660_inode* node, char* buffer, char* end, bool relocated) argument 545 char* buffer = (char*)block_cache_get(volume->fBlockCache, local 605 char buffer[ISO_PVD_SIZE]; local 845 InitNode(iso9660_volume* volume, iso9660_inode* node, char* buffer, size_t* _bytesRead, bool relocated) argument [all...] |
/haiku/src/system/libroot/os/ |
H A D | debug.c | 149 const char *defaultString, uint32 code, char *buffer, int32 bufferSize) 153 if (!buffer || bufferSize <= 0) 158 strlcpy(buffer, stringEntries[i].string, bufferSize); 163 snprintf(buffer, bufferSize, defaultString, code); 168 get_debug_message_string(debug_debugger_message message, char *buffer, argument 172 (uint32)message, buffer, bufferSize); 177 get_debug_exception_string(debug_exception_type exception, char *buffer, argument 181 (uint32)exception, buffer, bufferSize); 224 char buffer[512]; local 232 ret = vsnprintf(buffer, sizeo 148 get_debug_string(const debug_string_entry *stringEntries, const char *defaultString, uint32 code, char *buffer, int32 bufferSize) argument 259 char buffer[1024]; local 288 char buffer[1024]; local 310 char buffer[1024]; local [all...] |
/haiku/src/tests/kits/locale/ |
H A D | DurationFormatTest.cpp | 30 BString buffer; local 33 status_t result = format.Format(buffer, 0, 800000000000ll); 38 CPPUNIT_ASSERT(buffer.Length() > 0); 45 BString buffer; local 57 status_t result = format.Format(buffer, 0, 800000000000ll); 61 CPPUNIT_ASSERT_EQUAL(expected, buffer); 66 result = format.Format(buffer, 0, 800000000000ll); 71 CPPUNIT_ASSERT_EQUAL(expected, buffer); 77 status_t result = format.Format(buffer, 0, 800000000000ll); 81 CPPUNIT_ASSERT_EQUAL(expected, buffer); 99 BString buffer; local [all...] |
H A D | DateFormatTest.cpp | 43 BString buffer; local 77 result = format.Format(buffer, 12345678, B_SHORT_DATE_FORMAT, 81 CPPUNIT_ASSERT_EQUAL(tests[i].expected, buffer); 90 result = format.Format(buffer, 12345678, B_SHORT_DATE_FORMAT, 94 CPPUNIT_ASSERT_EQUAL(tests[i].force24, buffer); 103 result = format.Format(buffer, 12345678, B_SHORT_DATE_FORMAT, 107 CPPUNIT_ASSERT_EQUAL(tests[i].force12, buffer); 209 BString buffer; local 210 status_t result = format.GetMonthName(1, buffer); 212 CPPUNIT_ASSERT_EQUAL(BString("January"), buffer); 279 BString buffer; local [all...] |
/haiku/src/system/boot/platform/amiga_m68k/ |
H A D | debug.cpp | 34 char buffer[512]; member in struct:AlertMessage 46 char *buffer = alert.buffer; local 51 memset(buffer, 0, 512); 54 vsnprintf(buffer, 512, format, list); 68 char buffer[512]; local 76 //vsnprintf(buffer, sizeof(buffer), format, list); 80 // Bconput(DEV_CONSOLE, buffer);
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | read.c | 24 read(int fd, void* buffer, size_t bufferSize) argument 26 ssize_t status = _kern_read(fd, -1, buffer, bufferSize); 33 read_pos(int fd, off_t pos, void* buffer, size_t bufferSize) argument 38 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_read(fd, pos, buffer, bufferSize)); 43 pread(int fd, void* buffer, size_t bufferSize, off_t pos) argument 48 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_read(fd, pos, buffer, bufferSize));
|
H A D | write.c | 22 write(int fd, void const *buffer, size_t bufferSize) argument 24 int status = _kern_write(fd, -1, buffer, bufferSize); 31 write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) argument 36 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize)); 41 pwrite(int fd, const void *buffer, size_t bufferSize, off_t pos) argument 46 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize));
|
/haiku/src/tests/system/kernel/ |
H A D | mmap_resize_test.cpp | 32 char buffer[2048]; local 33 memset(buffer, 0xdd, sizeof(buffer)); 34 if (write(fd, buffer, sizeof(buffer)) != (ssize_t)sizeof(buffer)) {
|
/haiku/src/tools/fs_shell/ |
H A D | fs_shell_command_unix.cpp | 46 char buffer[16]; local 47 if (fgets(buffer, sizeof(buffer), in) == NULL) { 55 *result = strtol(buffer, &end, 10); 56 if (end == buffer) { 58 "\"%s\"\n", buffer);
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | debug.cpp | 37 syslog_write(const char* buffer, size_t length) argument 40 ring_buffer_write(sDebugSyslogBuffer, (const uint8*)buffer, length); 42 memcpy(sBuffer + sBufferPosition, buffer, length); 51 char buffer[512]; local 52 int length = vsnprintf(buffer, sizeof(buffer), format, args); 56 if (length >= (int)sizeof(buffer)) 57 length = sizeof(buffer) - 1; 69 sNewLine = buffer[length - 1] == '\n'; 72 syslog_write(buffer, lengt 147 void* buffer = (void*)mmu_map_physical_memory(base, size, local 189 void* buffer local [all...] |
/haiku/src/tests/kits/app/bpropertyinfo/ |
H A D | PropertyFlattenTest.cpp | 58 char buffer[768]; local 65 assert(propTest->Flatten(buffer, sizeof(buffer)/ sizeof(buffer[0])) == B_OK); 67 assert(memcmp(buffer, bflat_data, propTest->FlattenedSize()) == 0); 69 assert(memcmp(buffer, lflat_data, propTest->FlattenedSize()) == 0);
|
/haiku/src/apps/icon-o-matic/import_export/flat_icon/ |
H A D | FlatIconExporter.cpp | 81 LittleEndianBuffer buffer; local 84 status_t ret = _Export(buffer, icon); 88 // write buffer to stream 89 ssize_t written = stream->Write(buffer.Buffer(), buffer.SizeUsed()); 90 if (written != (ssize_t)buffer.SizeUsed()) { 135 LittleEndianBuffer buffer; local 138 status_t ret = _Export(buffer, icon); 140 printf("failed to export to buffer: %s\n", strerror(ret)); 150 // write buffer t 171 _Export(LittleEndianBuffer& buffer, const Icon* icon) argument 217 _WriteTransformable(LittleEndianBuffer& buffer, const Transformable* transformable) argument 233 _WriteTranslation(LittleEndianBuffer& buffer, const Transformable* transformable) argument 242 _WriteStyles(LittleEndianBuffer& buffer, const Container<Style>* styles) argument 350 write_path_no_curves(LittleEndianBuffer& buffer, VectorPath* path, uint8 pointCount) argument 365 write_path_curves(LittleEndianBuffer& buffer, VectorPath* path, uint8 pointCount) argument 389 write_path_with_commands(LittleEndianBuffer& buffer, VectorPath* path, uint8 pointCount) argument 398 _WritePaths(LittleEndianBuffer& buffer, const Container<VectorPath>* paths) argument 459 _WriteTransformer(LittleEndianBuffer& buffer, Transformer* t) argument 519 _WritePathSourceShape(LittleEndianBuffer& buffer, PathSourceShape* shape, const Container<Style>* styles, const Container<VectorPath>* paths) argument 612 _WriteShapes(LittleEndianBuffer& buffer, const Container<Style>* styles, const Container<VectorPath>* paths, const Container<Shape>* shapes) argument 647 _WriteGradient(LittleEndianBuffer& buffer, const Gradient* gradient) argument [all...] |
/haiku/src/libs/icon/flat_icon/ |
H A D | FlatIconImporter.cpp | 73 // read the entire stream into a buffer 74 LittleEndianBuffer buffer(size); 75 if (!buffer.Buffer()) 78 if (stream->Read(buffer.Buffer(), size) != size) 81 ret = _ParseSections(buffer, icon); 99 // attach LittleEndianBuffer to buffer 100 LittleEndianBuffer buffer(_buffer, size); 102 return _ParseSections(buffer, icon); 109 FlatIconImporter::_ParseSections(LittleEndianBuffer& buffer, Icon* icon) argument 113 if (!buffer 147 _ReadTransformable(LittleEndianBuffer& buffer, Transformable* transformable) argument 163 _ReadTranslation(LittleEndianBuffer& buffer, Transformable* transformable) argument 176 _ReadColorStyle(LittleEndianBuffer& buffer, bool alpha, bool gray) argument 207 _ReadGradientStyle(LittleEndianBuffer& buffer) argument 281 _ParseStyles(LittleEndianBuffer& buffer, Container<Style>* styles) argument 338 read_path_no_curves(LittleEndianBuffer& buffer, VectorPath* path, uint8 pointCount) argument 355 read_path_curves(LittleEndianBuffer& buffer, VectorPath* path, uint8 pointCount) argument 382 read_path_with_commands(LittleEndianBuffer& buffer, VectorPath* path, uint8 pointCount) argument 392 _ParsePaths(LittleEndianBuffer& buffer, Container<VectorPath>* paths) argument 442 _ReadTransformer(LittleEndianBuffer& buffer, VertexSource& source, Shape* shape) argument 536 _ReadPathSourceShape(LittleEndianBuffer& buffer, Container<Style>* styles, Container<VectorPath>* paths) argument 632 _ParseShapes(LittleEndianBuffer& buffer, Container<Style>* styles, Container<VectorPath>* paths, Container<Shape>* shapes) argument [all...] |
/haiku/src/apps/mediaplayer/media_node_framework/audio/ |
H A D | SampleBuffer.h | 27 inline SampleBuffer(void* buffer) argument 28 : fBuffer((sample_block_t*)buffer) { } 61 inline FloatSampleBuffer(void* buffer) argument 62 : SampleBuffer<sizeof(float)>(buffer) { 80 inline IntSampleBuffer(void* buffer) argument 81 : SampleBuffer<sizeof(int)>(buffer) { 99 inline ShortSampleBuffer(void* buffer) argument 100 : SampleBuffer<sizeof(short)>(buffer) { 118 inline UCharSampleBuffer(void* buffer) argument 119 : SampleBuffer<sizeof(uchar)>(buffer) { 137 CharSampleBuffer(void* buffer) argument [all...] |
/haiku/src/tests/system/libroot/os/ |
H A D | FindDirectoryTest.cpp | 22 char buffer[B_PATH_NAME_LENGTH]; local 23 status_t err = find_directory((directory_which)i, dev, false, buffer, B_PATH_NAME_LENGTH); 27 printf("dir[%04ld] = '%s'\n", i, buffer);
|
/haiku/src/system/runtime_loader/ |
H A D | utility.cpp | 48 char buffer[1024]; local 52 int length = vsnprintf(buffer, sizeof(buffer), format, args); 55 _kern_write(STDERR_FILENO, 0, buffer, length); 64 char buffer[1024]; local 69 vsnprintf(buffer, sizeof(buffer), format, list); 70 _kern_debug_output(buffer); 128 char buffer[1024]; local 129 vsnprintf(buffer, sizeo [all...] |
/haiku/headers/private/kernel/ |
H A D | safemode.h | 22 status_t get_safemode_option(const char* parameter, char* buffer, 28 const char* parameter, char* buffer, size_t* _bufferSize); 32 status_t _user_get_safemode_option(const char* parameter, char* buffer,
|
/haiku/src/apps/drivesetup/ |
H A D | EncryptionUtils.cpp | 22 char buffer[11]; local 24 off_t length = BFile(path, B_READ_ONLY).Read(&buffer, 11); 27 encrypter.Append(buffer, 11);
|
/haiku/src/add-ons/kernel/network/datalink_protocols/ipv6_datagram/ |
H A D | ndp.h | 15 status_t (*receive_data)(net_buffer* buffer);
|