Commit Graph

1748 Commits

Author SHA1 Message Date
Axel Dörfler
7ed765a7f9 Added syscalls for select(), and poll().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 02:29:05 +00:00
Axel Dörfler
2dc3fee59d Nicer parameter names in sys/select.h.
Added a comment in sys/time.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 02:28:09 +00:00
beveloper
089a062916 avoid building too long command lines (still not perfect)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 02:13:21 +00:00
beveloper
8bcfda04d9 might work better
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 02:10:06 +00:00
beveloper
42415555d3 after many changes, the network stack can now be build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 01:21:54 +00:00
beveloper
7d9ef5af20 avoid collision with <netinet/in.h>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 23:38:46 +00:00
Axel Dörfler
9844285a44 Changed the kmalloc()/kfree() calls to malloc()/free().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 23:08:35 +00:00
Axel Dörfler
41691b996a Replaced kmalloc(), kfree(), and kstrdup() with the POSIX equivalents.
Implemented realloc().
Adapted all other sources, some minor cleanups in some files as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 23:07:06 +00:00
Axel Dörfler
f2e04b5fa6 Removed the kmalloc(), kfree(), and kstrdup() prototypes.
You now need to include malloc.h (or stdlib.h) and use malloc(), free(),
and strdup().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 23:03:47 +00:00
ejakowatz
c1983bad48 Rewrote the "adding more data" section to deal with missing destructor
problem.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 21:27:44 +00:00
beveloper
0e2e5d7f76 added EHOSTDOWN, required by the net kit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:33:01 +00:00
beveloper
c16715cb44 removed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:15:21 +00:00
beveloper
a115b7c3f1 moved some things from sys/socketvar.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:12:42 +00:00
beveloper
890892471a moved some things into private/net_socket.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:11:48 +00:00
beveloper
6e70991c56 moved from posix/sys
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:07:00 +00:00
beveloper
8b7eabec3f moved
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:05:41 +00:00
beveloper
cd6ec71536 to stay compatible, ListItem.h now also declares BStringItem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 19:52:00 +00:00
Stefano Ceccherini
af1732a6d4 Fixed to compile
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 19:09:59 +00:00
Stefano Ceccherini
f68e12e5ed Tests are a developer's best friends :)) Fixed an incorrect implementation of the private function _FindAfter.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 19:09:27 +00:00
beveloper
e28b48e2f7 This small change fixes a major problem!
A class that has a different size than the original is not compatible.
Thus, every application compiled with this header would crash on BeOS.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 18:50:33 +00:00
Axel Dörfler
3275af4352 Uncomment fClean variable to get the header binary compatible with R5.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 18:50:06 +00:00
Tyler Dauwalder
c698a51ee0 Removed "see also" reference from BStatable doxumentation, as it
was gunking up an otherwise nice looking Compound List page.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 18:42:52 +00:00
Axel Dörfler
d3ed67d76c Removed BStringItem class from ListItem.h.
Fixed the StringItem.h header to be compatible with BeOS.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 18:41:51 +00:00
Axel Dörfler
1c1ff60b97 Copied over the ListItem.h header with the original one for now (the old
one wasn't compatible and written in a strange style).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 18:38:31 +00:00
Axel Dörfler
b2d5d0de15 Completely replaced the ListView.h header - the old one wasn't compatible
with Be's and in a strange style.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 18:36:30 +00:00
Stefano Ceccherini
4c135d0948 FindLast() functions test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 14:35:55 +00:00
Stefano Ceccherini
cebc72f7c9 FindFirst() tests added to the build. More coming
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 09:59:55 +00:00
Stefano Ceccherini
d5d5aec43b Adding DataIO classes to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 09:26:56 +00:00
Stefano Ceccherini
c3af0b3141 Fixed the test. Now it's successful on both OBOS and R5
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 05:43:34 +00:00
Stefano Ceccherini
ba3487e33a Fixed a typing bug to make it compile again
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 05:42:46 +00:00
Axel Dörfler
4a2e58074d select_info had the wrong size (uint8 instead of uint16).
Corrected POLLNVAL handling.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 05:41:10 +00:00
Axel Dörfler
b9db114e51 The pollfd fields events & revents had the wrong size (int instead of short).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 05:39:54 +00:00
Axel Dörfler
c4943b79fe Forget to free the data allocated in common_select(), and common_poll()...
Changed the header guard in vfs_select.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 04:21:22 +00:00
Axel Dörfler
1e7eb4c232 Some style cleanups in khash.c - I just realized that we have two different
hash implementations in that file... we should really remove one of them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 04:03:13 +00:00
Axel Dörfler
58ec046735 Added support for select(), and poll().
Not yet tested.
Moved the CHECK_USER_ADDRESS() macro from vfs.c to kernel.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 03:54:07 +00:00
Axel Dörfler
a2cbc788e0 Adds support for select(), and poll() in the kernel - both are realized
using the current BeOS device API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 03:49:57 +00:00
Axel Dörfler
88fae79de6 Moved queue functionality out of module.c and into kqueue.h.
Changed module.c and int.c to use that one.
Some minor cleanups in module.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 03:42:40 +00:00
Axel Dörfler
b026d723ba Made the POLLxxx constants compatible with the ones used internally in
the VFS - BeOS don't have poll() at all, so we can freely choose them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 03:36:14 +00:00
Axel Dörfler
8f3a4e7dd4 Cleaned up kernel.h; the insque(), remque() functions are now in a separate
header kqueue.h - together with their implementation which was in module.c
Added a new CHECK_USER_ADDRESS() macro that can be used to check if a
user address points into the kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 03:31:57 +00:00
Axel Dörfler
03360f3bb7 Added our versions of BeOS compatible sys/timeb.h, and sys/times.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 00:46:31 +00:00
lillo
f2bc61304f replaced sys_kill with general thread-aimed sys_send_signal; cleaned up
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 20:38:16 +00:00
Michael Pfeiffer
79dc21c98a Forgot to check in renamed files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 19:31:07 +00:00
Axel Dörfler
f93086c8b2 Completed the poll.h header file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 18:46:30 +00:00
Axel Dörfler
f647a9d57c Added struct timespec, and struct itimerspec to time.h.
Added missing typedefs (suseconds_t, useconds_t).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 18:36:26 +00:00
Axel Dörfler
d068515fcb Completed sys/select.h, renamed the howmany() macro to _howmany() - now
also contains the pselect() prototype.
Added new header file sys/time.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 18:34:45 +00:00
Axel Dörfler
493130b326 Fixed and cleaned up select.h.
Exports now the prototype correctly in C++.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 17:49:41 +00:00
Stefano Ceccherini
e0060f3ff2 Implemented the last function (ReplaceSet()). Now it's just a matter
of doing tests for the remaining functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 15:01:32 +00:00
Bruno G. Albuquerque
bbdc29a05d bfs_walk() should check for read permissions for iterating through directories, not execute permission.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 13:31:54 +00:00
Stefano Ceccherini
5123fbe5e3 Added the correct file name to the copyright notice
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 09:15:42 +00:00
Stefano Ceccherini
c109ab72ae Style changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 09:13:37 +00:00