Commit Graph

86 Commits

Author SHA1 Message Date
Axel Dörfler c3db7c3b9e Added the B_BAD_DATA error.
Removed all the whitespaces at the end of every line.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 14:03:46 +00:00
Axel Dörfler aa7d137cdd Added the fs_info.h header needed for some stuff in the VFS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 14:03:03 +00:00
Ingo Weinhold ad467109d4 Uglified the header according to the OT style.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:42:46 +00:00
Ingo Weinhold e0cc8c68a4 The beginning of the registrar - API classes interface.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:37:39 +00:00
Ingo Weinhold b4793125a8 Fixed warnings (method shadowing).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 00:51:08 +00:00
lillo 65918f386e forgot a little thing
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-20 23:06:32 +00:00
lillo 2880b9ff65 beos compatible timer routines and style cleanups in timer and sem code; also doxygened timer.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-20 22:53:23 +00:00
Axel Dörfler 071f62bc36 Major code cleanup and reorganisation.
Fixed many bugs.
Now, the vfs_ prefix is for functions that are called by other parts of the
kernel. file_ is for file related stuff, dir_ for directory related, and
common_ for both, fs_ for general file system stuff.
Put all prefixed functions together in the source.
Implemented (currently without a user/sys call) opening/creating of entry_refs,
and node_refs (the latter for opening directories only).
Moved vfs_dup(), and vfs_dup2() to fd.c, fd_dup(), and fd_dup2().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-20 00:16:12 +00:00
David Reid c6aa053941 Add some new functions for the big change coming (again) for the
interrupt code. Also start adding doxygen comments :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 18:28:57 +00:00
David Reid 8a396015a1 There is no need for this to be here, so move it alongside the code
it refers to as that makes more sense.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 18:23:10 +00:00
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