/haiku/headers/private/file_systems/ |
H A D | QueryParser.h | 716 uint8* buffer = (uint8*)&value; local 727 buffer = const_cast<uint8*>(key); 732 buffer = (uint8*)QueryPolicy::EntryGetNameNoCopy(entry, buffer, 734 if (buffer == NULL) 738 size = strlen((const char*)buffer); 748 if (QueryPolicy::NodeGetAttribute(node, fAttribute, buffer, &size, 757 status = CompareTo(buffer, size) ? MATCH_OK : NO_MATCH;
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/ |
H A D | IMAPFolder.cpp | 781 char buffer[65535]; local 783 ssize_t bytesRead = stream.Read(buffer, 784 std::min(sizeof(buffer), length)); 792 ssize_t bytesWritten = file.Write(buffer, bytesRead);
|
/haiku/src/servers/app/font/ |
H A D | GlobalFontManager.cpp | 633 uint8* buffer = new (std::nothrow) uint8[bufferSize]; local 634 if (buffer == NULL) { 642 delete[] buffer; 648 ssize_t read = file.Read(buffer, bufferSize); 653 delete[] buffer;
|
/haiku/src/preferences/screen/ |
H A D | ScreenWindow.cpp | 1264 char buffer[256]; local 1265 snprintf(buffer, sizeof(buffer), "mode %" B_PRId32 " %" B_PRId32 " %" 1268 ssize_t bytesWritten = file.Write(buffer, strlen(buffer));
|
/haiku/src/kits/tracker/ |
H A D | WidgetAttributeText.cpp | 95 BString buffer = string_for_size(value, sizeBuffer, sizeof(sizeBuffer)); local 98 if (view->StringWidth(buffer.String()) > width) { 99 buffer.SetToFormat(B_TRANSLATE_COMMENT("%lld B", "The filesize symbol for byte"), 106 for (char* tmp = const_cast<char*>(buffer.String()); *tmp != '\0'; tmp++) { 115 float resultWidth = view->StringWidth(buffer); 117 *outString = buffer.String(); 122 return TruncStringBase(outString, buffer.String(), buffer.Length(), view, 952 char buffer[11]; local 954 char* scanner = buffer; 1180 char buffer[kGenericReadBufferSize]; local 1300 char buffer[256]; local [all...] |
H A D | FSUtils.cpp | 139 BNode* destNode, void* buffer, size_t bufsize); 357 BString buffer(message); 358 buffer.ReplaceFirst("%name", name); 359 buffer.ReplaceFirst("%error", strerror(error)); 362 BAlert* alert = new BAlert("", buffer.String(), B_TRANSLATE("Cancel"), 368 BAlert* alert = new BAlert("", buffer.String(), B_TRANSLATE("Cancel"), 0, 0, 1431 // File bigger than the buffer size: determine an optimal buffer size 1466 char* buffer = new char[bufsize]; local 1481 ASSERT(buffer); 1544 CopyAttributes(CopyLoopControl* control, BNode* srcNode, BNode* destNode, void* buffer, size_t bufsize) argument 1682 char* buffer; local 1971 char* buffer = new char[1024]; local 2217 FileStatToString(StatStruct* stat, char* buffer, int32 length) argument 3291 ReadAttr(const BNode* node, const char* hostAttrName, const char* foreignAttrName, type_code type, off_t offset, void* buffer, size_t length, void (*swapFunc)(void*), bool isForeign) argument 3582 uint8* buffer = (uint8*)malloc(bufferSize); local [all...] |
/haiku/src/apps/softwareupdater/ |
H A D | UpdateManager.cpp | 206 char buffer[256]; local 209 vsnprintf(buffer, sizeof(buffer), format, args); 213 fputs(buffer, stderr); 223 fStatusWindow->ShowWarningAlert(buffer); 226 text.Append(buffer);
|
/haiku/src/apps/pulse/ |
H A D | NormalPulseView.cpp | 277 char buffer[64]; local 280 snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.2f GHz"), cpuSpeed / 1000.0f); 282 snprintf(buffer, sizeof(buffer), B_TRANSLATE("%ld MHz"), (long int)cpuSpeed); 286 width = StringWidth(buffer); 288 DrawString(buffer);
|
/haiku/src/apps/poorman/ |
H A D | PoorManWindow.cpp | 520 BString buffer; local 521 char * buffData = buffer.LockBuffer(end - start + 1); 522 // copy the selected text from the TextView to the buffer 524 buffer.UnlockBuffer(end - start + 1); 526 err = fwrite(buffer.String(), 1, end - start + 1, f);
|
/haiku/src/apps/installer/ |
H A D | InstallerWindow.cpp | 436 char buffer[15]; local 437 fPackagesView->GetTotalSizeAsString(buffer, sizeof(buffer)); 440 B_TRANSLATE("Additional disk space required: %s"), buffer); 469 char buffer[64]; local 470 snprintf(buffer, sizeof(buffer), 473 trailingLabel << buffer; local 843 char buffer[256]; local 844 snprintf(buffer, sizeo [all...] |
/haiku/src/apps/diskprobe/ |
H A D | ProbeView.cpp | 137 void FormatValue(char* buffer, size_t bufferSize, 216 get_type_string(char* buffer, size_t bufferSize, type_code type) argument 219 buffer[i] = type >> (24 - 8 * i); 220 if (buffer[i] < ' ' || buffer[i] == 0x7f) { 221 snprintf(buffer, bufferSize, "0x%04" B_PRIx32, type); 224 buffer[4] = '\0'; 446 char buffer[16]; local 447 get_type_string(buffer, sizeof(buffer), edito 581 FormatValue(char* buffer, size_t bufferSize, off_t value) argument 591 char buffer[64]; local 605 char buffer[64]; local 620 char buffer[64]; local 623 string << buffer; local 1414 char buffer[32]; local 1426 char buffer[32]; local 1447 char buffer[16]; local 1518 char buffer[128]; local 1561 char buffer[128]; local 1603 char buffer[128]; local 1739 char buffer[1024]; local [all...] |
/haiku/src/apps/codycam/ |
H A D | VideoConsumer.cpp | 251 VideoConsumer::BufferReceived(BBuffer* buffer) argument 254 B_PRIdBIGTIME "\n", buffer->ID(), buffer->Header()->start_time); 257 buffer->Recycle(); 261 media_timed_event event(buffer->Header()->start_time, 262 BTimedEventQueue::B_HANDLE_BUFFER, buffer, 289 // create a buffer group 301 // and attach the bitmaps to the buffer group 312 info.buffer = 0; 338 PROGRESS(" j = %d buffer 532 BBuffer* buffer; local [all...] |
/haiku/src/apps/activitymonitor/ |
H A D | DataSource.cpp | 296 char buffer[32]; local 297 string_for_size(value, buffer, sizeof(buffer)); 298 text = buffer; 1368 char buffer[32]; local 1369 string_for_rate(value, buffer, sizeof(buffer)); 1371 text = buffer;
|
/haiku/src/add-ons/kernel/network/stack/ |
H A D | net_socket.cpp | 268 net_buffer* buffer, msghdr* messageHeader) 282 socket->first_protocol, buffer, dataBuffer, 530 socket_send_data(net_socket* socket, net_buffer* buffer) argument 533 buffer); 1004 struct sockaddr buffer; local 1005 memset(&buffer, 0, sizeof(buffer)); 1006 buffer.sa_family = socket->family; 1008 memcpy(address, &buffer, min_c(*_addressLength, sizeof(buffer))); 267 process_ancillary_data(net_socket* socket, net_buffer* buffer, msghdr* messageHeader) argument 1181 net_buffer* buffer; local 1370 net_buffer* buffer = gNetBufferModule.create(256); local [all...] |
/haiku/headers/compatibility/gnu/ |
H A D | pthread.h | 22 extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
|
/haiku/src/add-ons/kernel/network/protocols/l2cap/ |
H A D | l2cap_signal.h | 11 status_t l2cap_handle_signaling_command(struct HciConnection* connection, net_buffer* buffer);
|
H A D | l2cap_command.cpp | 14 NetBufferDeleter<> buffer(gBufferModule->create(128)); 15 if (!buffer.IsSet()) 19 NetBufferPrepend<uint16> data(buffer.Get()); 22 NetBufferPrepend<l2cap_command_reject_data> data(buffer.Get()); 27 NetBufferPrepend<l2cap_command_reject> command(buffer.Get()); 34 return buffer.Detach(); 41 NetBufferDeleter<> buffer(gBufferModule->create(128)); 42 if (!buffer.IsSet()) 45 NetBufferPrepend<l2cap_connection_req> command(buffer.Get()); 53 return buffer [all...] |
H A D | l2cap_signal.cpp | 40 l2cap_handle_connection_req(HciConnection* conn, uint8 ident, net_buffer* buffer) argument 42 NetBufferHeaderReader<l2cap_connection_req> command(buffer); 63 l2cap_handle_connection_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer) argument 65 NetBufferHeaderReader<l2cap_connection_rsp> command(buffer); 83 parse_configuration_options(net_buffer* buffer, size_t offset, uint16 length, argument 88 if (gBufferModule->read(buffer, offset, &option, sizeof(option)) != B_OK) 92 if (gBufferModule->read(buffer, offset + sizeof(option), &value, 129 gBufferModule->append_cloned(options.rejected, buffer, offset, 140 l2cap_handle_configuration_req(HciConnection* conn, uint8 ident, net_buffer* buffer, uint16 length) argument 142 NetBufferHeaderReader<l2cap_configuration_req> command(buffer); 177 l2cap_handle_configuration_rsp(HciConnection* conn, L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer, uint16 length, bool& releaseIdent) argument 214 l2cap_handle_disconnection_req(HciConnection* conn, uint8 ident, net_buffer* buffer) argument 237 l2cap_handle_disconnection_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer) argument 252 l2cap_handle_echo_req(HciConnection *conn, uint8 ident, net_buffer* buffer, uint16 length) argument 264 l2cap_handle_echo_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer, uint16 length) argument 272 l2cap_handle_info_req(HciConnection* conn, uint8 ident, net_buffer* buffer) argument 300 l2cap_handle_info_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer) argument 308 l2cap_handle_command_reject(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer) argument 362 net_buffer* buffer = make_l2cap_command_reject(code, reason, mtu, scid, dcid); local 375 net_buffer* buffer = make_l2cap_configuration_req(code, dcid, flags, mtu, flush_timeout, flow); local 387 net_buffer* buffer = make_l2cap_connection_req(code, psm, scid); local 400 net_buffer* buffer = make_l2cap_connection_rsp(code, dcid, scid, result, status); local 413 net_buffer* buffer = make_l2cap_configuration_rsp(code, scid, flags, result, opt); local 425 net_buffer* buffer = make_l2cap_disconnection_req(code, dcid, scid); local 437 net_buffer* buffer = make_l2cap_disconnection_rsp(code, dcid, scid); local 449 l2cap_handle_signaling_command(HciConnection* connection, net_buffer* buffer) argument [all...] |
H A D | l2cap.cpp | 159 l2cap_send_data(net_protocol* protocol, net_buffer* buffer) argument 161 return ((L2capEndpoint*)protocol)->SendData(buffer); 167 net_buffer* buffer) 212 connection_for(net_buffer* buffer) argument 214 const sockaddr_l2cap* l2capAddr = (sockaddr_l2cap*)buffer->source; 215 const sockaddr_dl* interfaceAddr = (sockaddr_dl*)buffer->interface_address->local; 218 buffer->interface_address = NULL; 219 // This isn't a real interface_address; it could confuse the buffer module. 226 l2cap_receive_data(net_buffer* buffer) argument 228 if (buffer 166 l2cap_send_routed_data(net_protocol* protocol, struct net_route* route, net_buffer* buffer) argument [all...] |
H A D | L2capEndpoint.cpp | 401 L2capEndpoint::SendData(net_buffer* buffer) argument 406 if (buffer == NULL) 413 while (buffer != NULL) { 414 net_buffer* current = buffer; 415 buffer = NULL; 418 buffer = gBufferModule->split(current, fChannelConfig.outgoing_mtu); 419 if (buffer == NULL) { 446 L2capEndpoint::ReceiveData(net_buffer* buffer) argument 449 return gStackModule->fifo_enqueue_buffer(&fReceiveQueue, buffer); 475 net_buffer* buffer; [all...] |
H A D | L2capEndpoint.h | 44 ssize_t SendData(net_buffer* buffer); 45 status_t ReceiveData(net_buffer* buffer);
|
H A D | l2cap_address.cpp | 141 l2cap_print_address_buffer(const sockaddr *_address, char *buffer, argument 144 if (buffer == NULL) 149 strlcpy(buffer, "<none>", bufferSize); 153 snprintf(buffer, bufferSize, 158 snprintf(buffer, bufferSize,
|
/haiku/headers/os/bluetooth/HCI/ |
H A D | btHCI_transport.h | 126 status_t (*PostACL)(hci_id hciId, net_buffer* buffer); 127 status_t (*PostSCO)(hci_id hciId, net_buffer* buffer); 128 status_t (*PostESCO)(hci_id hciId, net_buffer* buffer);
|
/haiku/headers/private/net/ |
H A D | NetBufferUtilities.h | 26 NetBufferFieldReader(net_buffer* buffer) argument 28 fBuffer(buffer) 86 NetBufferField(net_buffer* buffer) argument 88 NetBufferFieldReader<Type, Offset, Module>(buffer) 100 //! Can remove the header from the buffer 104 NetBufferHeaderReader(net_buffer* buffer) argument 106 NetBufferFieldReader<Type, 0, Module>(buffer) 129 NetBufferHeaderRemover(net_buffer* buffer) argument 131 NetBufferHeaderReader<Type, Module>(buffer) 142 //! A class to add a header to a buffer, sync 146 NetBufferPrepend(net_buffer* buffer, size_t size = sizeof(Type)) argument 167 operator ()(net_buffer* buffer) argument 179 NetBufferDeleter(net_buffer* buffer) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | kernel_interface.cpp | 292 uint32 cmd, void *buffer, size_t /*length*/) 301 if (buffer) { 303 AllocationInfo *info = (AllocationInfo*)buffer; 313 if (buffer) { 315 const char *name = (const char*)buffer; 361 ramfs_read_symlink(fs_volume* _volume, fs_vnode* _node, char *buffer, argument 379 memcpy(buffer, symLink->GetLinkedPath(), 955 void *buffer, size_t *bufferSize) 963 // node->GetObjectID(), pos, buffer, *bufferSize)); 976 error = file->ReadAt(pos, buffer, *bufferSiz 291 ramfs_ioctl(fs_volume* _volume, fs_vnode* , void* , uint32 cmd, void *buffer, size_t ) argument 954 ramfs_read(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, void *buffer, size_t *bufferSize) argument 991 ramfs_write(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const void *buffer, size_t *bufferSize) argument 1290 ramfs_read_dir(fs_volume* _volume, fs_vnode* DARG(_node), void* _cookie, struct dirent *buffer, size_t bufferSize, uint32 *count) argument 1412 ramfs_read_attr_dir(fs_volume* _volume, fs_vnode* _node, void* _cookie, struct dirent *buffer, size_t bufferSize, uint32 *count) argument 1672 ramfs_read_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, void *buffer, size_t *bufferSize) argument 1704 ramfs_write_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const void *buffer, size_t *bufferSize) argument 1887 ramfs_read_index_dir(fs_volume* _volume, void* _cookie, struct dirent *buffer, size_t bufferSize, uint32 *count) argument 2094 ramfs_read_query(fs_volume* _volume, void* _cookie, struct dirent *buffer, size_t bufferSize, uint32 *count) argument [all...] |