Commit Graph

7576 Commits

Author SHA1 Message Date
David Reid
49b0a26dba Add some more comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 16:10:56 +00:00
David Reid
ca91310a67 Start the change to using beos style interrupt handlers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 16:00:17 +00:00
Tyler Dauwalder
a6b33ea3de + Moved BAutolock and BArchivable over to new testing framework.
+ Added ability to specify entire suites to the UnitTester program.
+ BAutolock and BArchivable tests now use CPPUNIT_ASSERT, but BLocker
tests crash for some unknown reason with said assertion, so plain old vanilla
assert() is still used. I'll look into this later.
+ BArchivable tests that try to load a RemoteTestObject are failing
because the resource file doesn't appear to be linked into
libsupporttest_RemoteTestObject.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 06:45:28 +00:00
David Reid
5636ab73b0 Remove some now uneeded error codes. By removing these I'm hoping
people will start to migrate to the posix/Be error codes and thus
remove the possibility of mismatched codes being reported/checked.

Think this change should cause no build problems, but it's possible
I missed one or 2 instances...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 01:39:33 +00:00
David Reid
45fcd51d6a Start adding a new hash implementation. the new code is basically that
that the net stack used but works in a different way than the existing code,
and has proved useful in the modules code where it cured the strange
segfaults that were being produced in seemingly random and unpredictable
places.

the naming could be improved :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 01:25:33 +00:00
Axel Dörfler
ba94874630 Added a fs_get_vnode_name() call for the file systems.
Fixed a header dependency in sem.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 20:51:27 +00:00
Axel Dörfler
bc934681ba Implemented geist's recent change to mutexes - they are now no longer
benaphores; benaphores aren't that beneficial in kernel land, the benaphores
are a way to reduce the number of kernel calls.
They can now only be released by the same thread who originally acquired it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 19:22:17 +00:00
Axel Dörfler
2b5d1dc418 Added the preliminary ASSERT() macro from NewOS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 18:45:07 +00:00
Axel Dörfler
4635c565e4 Added the arch_cpu_idle() call.
Updated stage2_priv.h to reflect geist's, and freston's changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 14:15:47 +00:00
lillo
0ba337c0a4 adding environmental variables support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 13:59:03 +00:00
Tyler Dauwalder
9285de5124 + Started migrating Support Kit to new testing framework
+ Migrated BLocker tests.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 05:32:00 +00:00
Tyler Dauwalder
aad997bd6c Finished migrating Storage Kit tests to new framework.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 01:03:19 +00:00
Philippe Houdoin
3b333c3bd1 dbg_add_command() changed into BeOS compatible add_debugger_command().
remove_debugger_command() added.
Fix cmd_gdb() prototype according to new debugger command one.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 22:10:34 +00:00
Tyler Dauwalder
d1f6c38f0d Unit testing update:
- Verbosity is now honored globally
- Added BTestCase::Outputf()
- Migrated BNode, BStatable, BDirectory, and BPath tests
- Added CommonTestLib, TestLib, and R5TestLib rules to Jamrules
- Updated Jamfiles for unit testing stuff
- Probably a few other things I've forgotten


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 10:50:55 +00:00
Axel Dörfler
cbe085bc5a Forgot some debug stuff...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 08:12:41 +00:00
Axel Dörfler
b79d207dc2 user|sys_seek() now returns an off_t.
Changed the fd_close() call.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 08:01:40 +00:00
ejakowatz
4a0ef275e3 A templatized adaptation of BAutolock. Any class which supplies the
necessary functions can be managed with BObjectLocker:
	bool Lock()		--	returns whether lock succeeded
	void Unlock()	--	unlocks the client instance


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 16:06:31 +00:00
ejakowatz
df226cd7b3 A new class to manage the list of loopers in a team. Provides the
functionality of the existing static BLooper functions (which now call
through to it) in a nicer package.  New code should use the global instance
of this (BPrivate::gLooperList) instead of the old BLooper functions (which
are officially deprecated).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 16:04:06 +00:00
ejakowatz
abb579331f Tweaks to deal with new repository hierarchy and use of unified CppUnit;
some bug fixes and a couple of new tests for BLooper.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 15:51:31 +00:00
Tyler Dauwalder
f1544e394c NextSubTest() code now honors BTestShell::Verbosity() levels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:53:26 +00:00
Tyler Dauwalder
34f99490e5 Dynamic loading updates
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:52:57 +00:00
Tyler Dauwalder
e2a04f50a7 Initial checkin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:52:17 +00:00
Tyler Dauwalder
36b1a33703 Rewritten completely
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:51:57 +00:00
David Reid
53608d99db Add the config_manager.h that I somehow missed from my eariler commit.
Thanks to Graham MacDonald for pointing this out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-14 16:11:11 +00:00
David Reid
e927084dbf This is now in another header file and so not required here.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-14 14:52:28 +00:00
David Reid
d78dd85384 Add some more headers.
These are the Be headers but my (albeit brief) research shows that
we're OK to include these as they were released quite a while back now.
Michael?


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-14 10:34:41 +00:00
Axel Dörfler
eba8b6cfb9 Next update of the VFS: more posix like open/create; divided create in
sys_create(), and sys_create_dir(), open in sys_open(), and sys_open_dir().
Small cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-14 05:08:26 +00:00
beveloper
85493f0665 Updated to the API changes introduced by BeOS R4's legacy BeOS R3 sound driver API support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-14 02:42:32 +00:00
beveloper
fc38cfc784 Updated to the API changes introduced by BeOS R4's legacy BeOS R3 sound driver API support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-14 02:38:00 +00:00
David Reid
6b3dbd281b drivers.h -> Drivers.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 23:28:12 +00:00
David Reid
5f79d3a87b drivers -> Drivers...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 23:26:20 +00:00
Tyler Dauwalder
0a99bdf489 Fixed multithreaded NextSubTest() output problems
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:30:45 +00:00
Tyler Dauwalder
40ea65d602 Semaphore based SyncObject
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:30:24 +00:00
Tyler Dauwalder
a319112563 Sounds like BAutolock ... :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:30:03 +00:00
David Reid
3088c8d093 Add the prototype for snooze.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:26:06 +00:00
David Reid
03b2717394 We have iovec's now and add the api version define.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:20:37 +00:00
David Reid
afe886fc48 Obey the gods of source compatability. Progress is evil. (apparently)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 14:57:37 +00:00
beveloper
00e8ee39e9 adding a header file that implements the BeOS R3 style sound driver interface
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 12:35:15 +00:00
David Reid
6bbdd797fa Remove the ppp headers until we actually have something that works.
Bring the rest of the files up to date.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:37:43 +00:00
David Reid
4fc6751684 Bring these files up to date.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:36:23 +00:00
David Reid
ed7e0da5b5 We no longer support this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:35:00 +00:00
David Reid
983e147905 Remove this file that has moved to private/net.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:34:21 +00:00
David Reid
7fbbc98590 Select probably will end up being defined elsewhere, and we don't yet
support it anyway, so remove this file as it's no longer needed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:33:07 +00:00
David Reid
f9e588eeb1 The ioctl defines are just in socket.h now, so no need for a seperate file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:32:15 +00:00
David Reid
4f113a4615 This is now just uio.h and is provided by the system, so no need to
have a different version for the network.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:31:24 +00:00
David Reid
45352a437a Remove these files that are now in posix/sys where they belong
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:30:28 +00:00
David Reid
8fd4cae92e These are posix files so should be under posix/sys - which is now where they
are :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:29:46 +00:00
David Reid
bd3bb49923 Bring this up to date.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:27:23 +00:00
David Reid
81f518cf5f Remove this file, now in posix/sys
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:26:59 +00:00
David Reid
75afa2416d Remove this file that is now in posix/sys
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:23:12 +00:00
David Reid
0b64a609ac Remove this file as it's in posix/sys now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:20:24 +00:00
David Reid
1f058e396c Small update to bring this up to date.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:19:40 +00:00
David Reid
16be84c573 Remove this file that has been moved to posix/sys
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:15:23 +00:00
David Reid
4b111a88c1 Add this in the correct place.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 09:14:15 +00:00
David Reid
f16873a60e OK, final change to error codes for a while I hope.
- remove private/kernel/Errors.h as this was just plain wrong to have it
  there and confused issues somewhat.
- add the kerrors.h file that has kernel only error codes, namely the
  ERR_ codes from newos.
- add comments for the other header files to tell people where to find
  error code definitions in an attempt to stop people getting lost!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 22:17:09 +00:00
David Reid
d69c1d7983 Move errno.h to it's correct place
Adjust Errors.h to use errno.h for the posix error codes
add first stab at limits.h, albeit not using the gcc headers at
present for intel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@88 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 20:39:30 +00:00
David Reid
09cdca467d This is where it belongs!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@83 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 14:59:59 +00:00
David Reid
cc19bfc95b These don't belong in here.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@82 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 14:59:23 +00:00
Tyler Dauwalder
530d2bc9fe Big CppUnit update
+ Initial threaded test support
+ Integrated CppUnitShell code into TestShell


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@75 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 03:28:37 +00:00
Tyler Dauwalder
aa3f51a786 Integrated into TestShell.h, thus no longer needed, thus removed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@74 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 03:26:27 +00:00
Tyler Dauwalder
cc449ec9d1 Not currently used, so removed for the moment at least.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@73 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 03:25:42 +00:00
beveloper
0022ddd9d6 Adding the multiaudio driver header.
It was available on request from Be, after they had introduced the API
in a newsletter article. You did not have to sign an NDA to get it, but
it was never included in the BeOS distribution.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@68 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 23:58:15 +00:00
David Reid
f41c281f54 This is the correct place for this file.
Improved the comments and doxygen style to try and make the file
more readable.

The previous version can't be removed until we have the posix paths included
in the include paths. Once this is done the existsing version should be
removed as this is more up to date.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@67 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 23:23:15 +00:00
David Reid
85c2f107d7 Remove files that we either no longer need or are located elsewhere.
These were all private files and so shouldn't have been in a public header
location anyway.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@66 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 22:50:24 +00:00
David Reid
cda78f2486 Start adding the networking headers in their correct place and with
the correct things in them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@64 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 22:10:23 +00:00
Axel Dörfler
f8d7610714 Added the syscalls for sys_read_dir(), and sys_rewind_dir().
sys_read_dir() now has a parameter for the maximum number of dirents that
are handled by the upper layer - which is currently 1.
Added a comment in fd.h to ease the location of the sys|user prototypes
of the corresponding functions in fd.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@58 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 21:46:34 +00:00
David Reid
db73233cdc Couple of small additions and a lot more doxygen stuff.
Web updated to reflect this.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@56 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 20:37:42 +00:00
Axel Dörfler
74f88d9ebf The syscalls.h wasn't up to date (unlike the one in the old tree).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@36 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 13:47:46 +00:00
David Reid
48535f1870 offsetof, insque and remque can be used throughout the kernel,
so move their definitions here.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@35 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 13:17:22 +00:00
Ingo Weinhold
64f6603fbe Include the official DataIO.h rather than MallocIO.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@26 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 01:59:18 +00:00
Ingo Weinhold
cdcd225793 DataIO.h has to include MallocIO.h. Be has only the first header containing all declarations.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@25 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 01:58:14 +00:00
Ingo Weinhold
7e4c96cf79 SymLink.h included kernel_interface.h, which is a private header. Doh!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@24 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 01:56:30 +00:00
Ingo Weinhold
232067ccbb Moved StorageDefs.Private.h to the public headers. Strange, but it is needed by them.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@21 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 01:47:48 +00:00
Ingo Weinhold
9377918226 This file shadows Be's header. So if it doesn't contain anything, iclude at least the original header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@17 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 21:39:34 +00:00
Axel Dörfler
5a2b57c361 Updated to the current version of dirent.h (that somehow didn't make it to
here).
Notably changes are: C++ safe, struct dirent is now BeOS compatible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@12 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 13:57:50 +00:00
ejakowatz
52a3801208 It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00