/haiku/src/add-ons/kernel/network/protocols/l2cap/ |
H A D | l2cap_address.cpp | 26 l2cap_copy_address(const sockaddr *from, sockaddr **to, argument 30 *to = (sockaddr *)malloc(sizeof(sockaddr_in)); 31 if (*to == NULL) 34 memset(*to, 0, sizeof(sockaddr_l2cap)); 35 (*to)->sa_family = AF_BLUETOOTH; 36 (*to)->sa_len = sizeof(sockaddr_l2cap); 43 *to = (sockaddr *)malloc(sizeof(sockaddr_in)); 44 if (*to == NULL) 47 memcpy(*to, from, sizeof(sockaddr_l2cap));
|
/haiku/src/tools/fs_shell/ |
H A D | vfs.cpp | 72 // It may be chosen with respect to the available memory or enhanced 99 /** \brief Structure to manage a mounted file system 104 (e.g. by holding a reference to a vnode of that mount) (read) access 105 to those fields is always safe, even without additional locking. Morever 106 while mounted the mount holds a reference to the covers_vnode, and thus 108 reference to vnode is held (note that for the root mount covers_vnode 130 * The holder is allowed to read/write access the sMountsTable. 146 * The thread trying to lock the lock must not hold sVnodeMutex or 153 * The holder is allowed to read access the vnode::covered_by field of any 156 * The thread trying to loc 1551 check_path(char *to) argument [all...] |
/haiku/src/system/kernel/fs/ |
H A D | vfs.cpp | 123 /*! \brief Structure to manage a mounted file system 128 (e.g. by holding a reference to a vnode of that mount) (read) access 129 to those fields is always safe, even without additional locking. Morever 130 while mounted the mount holds a reference to the root_vnode->covers vnode, 132 safe if a reference to vnode is held (note that for the root mount 216 The holder is allowed to read/write access the sMountsTable. 231 The thread trying to lock the lock must not hold sVnodeLock or 238 The holder is allowed read/write access to sVnodeTable and to 239 any unbusy vnode in that table, save to th 2670 check_path(char* to) argument 8138 user_copy_name(char* to, const char* from, size_t length) argument [all...] |
/haiku/src/system/boot/loader/ |
H A D | misc.cpp | 13 user_memcpy(void* to, const void* from, size_t size) argument 15 memcpy(to, from, size);
|
/haiku/headers/os/drivers/ |
H A D | KernelExport.h | 76 #define B_UNHANDLED_INTERRUPT 0 /* pass to next handler */ 80 /* Flags that can be passed to install_io_interrupt_handler() */ 124 // TODO: rename those to something more meaningful 237 /* safe methods to access user memory without having to lock it */ 238 extern status_t user_memcpy(void *to, const void *from, size_t size); 239 extern ssize_t user_strlcpy(char *to, const char *from, size_t size);
|
/haiku/src/system/kernel/vm/ |
H A D | vm.cpp | 175 // Unlock caches in source -> consumer direction. This is important to 455 //! You need to have the address space locked when calling this function 490 // init the page protections for all pages to that of the area 549 implementation might need to map this page. 600 // It also makes sense to move it from the inactive to the active, since 601 // otherwise the page daemon wouldn't come to keep track of it (in idle 731 // unlock all lower caches to prevent locking order inversion. 778 // unlock all lower caches to prevent locking order inversion. 789 // We do that by shrinking the area to th 5493 vm_memcpy_from_physical(void* to, phys_addr_t from, size_t length, bool user) argument 5500 vm_memcpy_to_physical(phys_addr_t to, const void* _from, size_t length, bool user) argument 5508 vm_memcpy_physical_page(phys_addr_t to, phys_addr_t from) argument 5621 user_memcpy(void* to, const void* from, size_t size) argument 5643 user_strlcpy(char* to, const char* from, size_t size) argument [all...] |
/haiku/src/kits/tracker/ |
H A D | Utilities.cpp | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 490 // Changes the alpha value of the given bitmap to creat 494 FadeRGBA32Horizontal(uint32* bits, int32 width, int32 height, int32 from, int32 to) argument 528 FadeRGBA32Vertical(uint32* bits, int32 width, int32 height, int32 from, int32 to) argument [all...] |
H A D | PoseView.h | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 131 // in the rare cases where a pose view needs to b [all...] |
H A D | PoseView.cpp | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 358 // init things related to layin 3990 MoveOrChangePoseSelection(int32 to) argument [all...] |
H A D | Utilities.h | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 132 // For a location to b [all...] |
H A D | TitleView.cpp | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 68 _DrawLine(BPoseView* view, BPoint from, BPoint to) argument 79 _UndrawLine(BPoseView* view, BPoint from, BPoint to) argument [all...] |
H A D | PoseViewScripting.cpp | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 54 // Indices and entry_refs are used to specif [all...] |
/haiku/src/bin/network/traceroute/ |
H A D | traceroute.c | 14 * the University nor the names of its contributors may be used to endorse 23 * traceroute host - trace the route ip packets follow going to "host". 25 * Attempt to trace the route an ip packet would follow to some 27 * packets with a small ttl (time to live) then listening for an 30 * unreachable" (which means we got to "host") or hit a max (which 31 * defaults to net.inet.ip.ttl hops & can be changed with the -m flag). 41 * host to process them so the destination port is set to an 48 * traceroute to ni 500 register struct sockaddr_in *to = (struct sockaddr_in *)&whereto; local [all...] |
/haiku/src/bin/network/ping/ |
H A D | ping.c | 7 * This code is derived from software contributed to Berkeley by 19 * may be used to endorse or promote products derived from this software 50 * This program has to run SUID to ROOT to access the ICMP socket. 105 #define FLOOD_BACKOFF 20000 /* usecs to back off if F_FLOOD mode */ 109 #define MAXWAIT 10000 /* max ms to wait for response */ 157 * to 8192 for complete accuracy... 163 static struct sockaddr_in whereto; /* who to ping */ 175 static int ident; /* process id to identif 228 struct sockaddr_in *to; local [all...] |
/haiku/src/add-ons/kernel/network/protocols/ipv6/ |
H A D | ipv6.cpp | 81 // We use uint32 here due to the hash function 94 status_t Reassemble(net_buffer* to); 318 // Search for a position in the list to insert the fragment 420 // We couldn't merge the fragments, so we need to add it as is 442 /*! Reassembles the fragments to the specified buffer \a to. 446 FragmentPacket::Reassemble(net_buffer* to) argument 457 if (to == fragment) { 468 if (buffer != to) 471 to [all...] |
/haiku/src/add-ons/kernel/network/protocols/ipv4/ |
H A D | ipv4.cpp | 79 status_t Reassemble(net_buffer* to); 279 // Search for a position in the list to insert the fragment 381 // We couldn't merge the fragments, so we need to add it as is 403 /*! Reassembles the fragments to the specified buffer \a to. 407 FragmentPacket::Reassemble(net_buffer* to) argument 418 if (to == fragment) { 429 if (buffer != to) 432 to->index = fIndex; 533 /*! Attempts to r [all...] |
/haiku/src/add-ons/kernel/network/stack/ |
H A D | datalink.cpp | 65 CODE(SIOCSIFDSTADDR) /* set point-to-point address */ 66 CODE(SIOCGIFDSTADDR) /* get point-to-point address */ 178 fill_address(const sockaddr* from, sockaddr* to, size_t maxLength) argument 182 return user_memcpy(to, from, min_c(from->sa_len, maxLength)); 190 return user_memcpy(to, &empty, min_c(2, maxLength)); 242 // A new alias is added to this interface 251 // A new interface needs to be added 317 // determine size of buffer to hold the routing table 342 // try to pass the request to a [all...] |
/haiku/src/kits/interface/ |
H A D | ListView.cpp | 151 // NOTE: According to BeBook, BListView does not free the items itself. 283 // and doesn't want us to be messing with flags. 642 // instead of every class having to reimplement it, once some sane 741 // If where is above top, scroll to the first item, 742 // else if where is below bottom scroll to the last item. 758 // scroll to item under mouse while button is pressed 917 // No need to adapt selection, as this item is the last in the list 1391 // Hook method to be implemented by subclasses 1422 BListView::MoveItem(int32 from, int32 to) argument 1427 data.move.to 1757 _Select(int32 from, int32 to, bool extend) argument 1984 _MoveItem(int32 from, int32 to) argument 2063 _RescanSelection(int32 from, int32 to) argument [all...] |
H A D | TextView.cpp | 18 // - Check for correctness and possible optimizations the calls to _Refresh(), 19 // to refresh only changed parts of text (currently we often redraw the whole 533 // what lines need to be drawn? 714 // (no need to hide the cursor) 769 // ignore, pass it up to superclass 1207 // apply null-style to inserted text 1275 // anything to delete? 1290 // check if the caret needs to be moved 1627 // apply the style to the style buffer 1853 // convert to tex 4656 STELine* to = endLine == maxLine ? NULL : (*fLines)[endLine + 1]; local [all...] |
/haiku/headers/os/interface/ |
H A D | ListView.h | 117 void Select(int32 from, int32 to, 138 bool MoveItem(int32 from, int32 to); 162 struct Move { int32 from; int32 to; } move; member in struct:BListView::MiscData::Move 178 bool _Select(int32 from, int32 to, bool extend); 189 bool _MoveItem(int32 from, int32 to); 191 void _RescanSelection(int32 from, int32 to);
|
/haiku/src/servers/app/ |
H A D | Window.h | 57 bool Move(int32 from, int32 to); 114 // setting and getting the "hard" clipping, you need to have 117 // you need to have ReadLock()ed the clipping! 154 // need to know about Desktop (first version uses Desktop) 202 // some hooks to inform the client window 203 // TODO: move this to ServerWindow maybe? 347 // has to be called 352 // Our part of the "global" dirty region (what needs to be redrawn). 353 // It is calculated from the desktop thread, but we can write to it when we read locked 359 // windows. To avoid glitches, it must be set to [all...] |
H A D | Window.cpp | 60 // when contents have to be redrawn because of resizing 65 // cleared right away. maybe there ought to be a flag in 144 // do we need to change our size to let the decorator fit? 155 // TODO: MOVE THIS AWAY!!! ResizeBy contains calls to virtual methods! 199 // clip to region still available on screen 210 // TODO: if someone needs to call this from 211 // the outside, the clipping needs to be readlocked! 213 // start from the decorator border, extend to use the frame 222 // TODO: if someone needs to cal 2260 MoveToStackPosition(int32 to, bool isMoving) argument 2385 Move(int32 from, int32 to) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | BPlusTree.cpp | 246 // is hard-coded to 1024 bytes, that's not an issue now. 274 // The B+tree header has been updated - we need to update the 512 // add the node to the free nodes list 559 // the maximum_size has to be changed before the call to SetTo() - or 623 // if there are any TreeIterators left, we need to stop them 883 // It's not important to write it out in a single transaction; just 983 // any time, so we need to protect this loop 1104 /*! Prepares the stack to contain all nodes that were passed while 1105 following the key, from the root node to th 2580 Goto(int8 to) argument [all...] |
/haiku/src/apps/mail/ |
H A D | MailWindow.h | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 73 const char* to, cons [all...] |
H A D | MailWindow.cpp | 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 15 The above copyright notice and this permission notice applies to all licensees 26 used in advertising or otherwise to promote the sale, use or other dealings in 131 "Mark as spam and move to tras 187 TMailWindow(BRect rect, const char* title, TMailApp* app, const entry_ref* ref, const char* to, const BFont* font, bool resending, BMessenger* messenger) argument [all...] |