Commit Graph

2538 Commits

Author SHA1 Message Date
Axel Dörfler
dba0db7fbe Fixed all the broken signal stuff. Now correctly calls the user_*() function,
and don't have any functionality at this place.
Added new syscall for set_thread_priority().
Some other changes due to cleanup.
Fixed userland snooze() call.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 03:07:30 +00:00
Axel Dörfler
2e7d51f89b Updated due to the changes in scheduler.c (resched() -> scheduler_reschedule(),
thread_enqueue_run_q() -> scheduler_enqueue_in_run_queue()).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 03:05:09 +00:00
Axel Dörfler
c333b5aa8e Replaced the standard thread functions with a BeOS compatible set.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 03:02:24 +00:00
Axel Dörfler
51cc35a759 Cleaned up the source, rearranged some functions. Now exported functions
have the scheduler_ prefix instead of thread_.
Moved thread_set_priority() back to thread.c where it belongs to.
Added new function to remove a thread from the run queue.
Renamed run_q to gRunQueue.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 03:01:35 +00:00
Axel Dörfler
8ccc1ad67d mutex_lock() now prints out the semaphore ID if it panics.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 02:58:17 +00:00
Axel Dörfler
fe8ffea9f4 Removed the kernel_posix_signal.o file - it's not needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 02:55:34 +00:00
Axel Dörfler
a9731b41c1 Housekeeping changes and small bug-fixes:
Added new syscall for set_thread_priority().
Replaced the userland syscall snooze_until() with snooze_etc() (the latter
has to be exported to userland and realize snooze() and snooze_until()).
Cleaned the sources - scheduler functions now have the scheduler_ prefix.
Moved signal related stuff into ksignal.h (out of thread.h).
Replaced public kernel API with direct exports (i.e. resume_thread() instead
of thread_resume_thread()).
Removed the thread_create_XXX_thread*() calls, and replaced them with a
BeOS compatible set.
Made some fields of struct thread a bit prettier.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 02:54:21 +00:00
Axel Dörfler
dc7fb22c07 Forgot to resume the kernel_daemon thread.
Actually never unlocked the daemon's lock (always called mutex_lock() instead
of mutex_unlock()...).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 02:02:20 +00:00
Axel Dörfler
429578fb0b Team/image stuff now uses lists instead of kqueues.
The kernel_daemon now utilizes the updated list API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 23:31:38 +00:00
Axel Dörfler
878c4156af Added two convenience functions: list_add_item(), list_remove_item().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 23:30:53 +00:00
Axel Dörfler
7f1f508e13 Added two convenience functions list_add_item(), list_remove_item().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 23:30:12 +00:00
Axel Dörfler
04d145c94d The team's image API is now using "list" instead of "kqueue".
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 23:29:33 +00:00
Ingo Weinhold
f451c48d3b Rewrote large parts. It's now in nice C++ and should be easier to be extended (partitioning support). Added a lot more checking. Now the module refuse everything that has incorrect partition tables. The BeOS R5 CD is handled correctly now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 22:21:55 +00:00
DarkWyrm
16b0d71f0b Added FTSmooth patch by David Chester
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 21:36:27 +00:00
Axel Dörfler
28bf3daa5d Implemented the kernel daemon service. It's not yet tested, but should be
equally inaccurate as the BeOS R5 version :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 17:31:33 +00:00
Axel Dörfler
8a5543b18c Added the kernel_daemon.h header which defines the init function for the
kernel daemon service.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 17:27:42 +00:00
Ingo Weinhold
8bb94d272f Renamed intel.c to intel.cpp. Real C++ coming soon.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:23:25 +00:00
Ingo Weinhold
3f449331f4 Commented out the rules for generating a R5 kernel module. We can't use it anyway.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:21:58 +00:00
Ingo Weinhold
9d192d5917 Added partitionMapName parameter to get_nth_partition_info(). Added the new fields to the output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:14:59 +00:00
Ingo Weinhold
cd34fb229b Fill in the file_system_flags field recently added to extended_partition_info.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:12:07 +00:00
Ingo Weinhold
f8ab0724d6 * The partition modules have a short_name field now instead of the
identify_module() hook.
* get_nth_session_module() returns the name of the partition module.
* There is no special handling for CDs anymore. The session modules are
  tried on any device now.
* Fixed a bug in get_buffer() causing a crash when reading from disk
  failed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:10:45 +00:00
Ingo Weinhold
0b1ab795f4 Got rid of the module_identify() hook. Instead the module info features a short_name field now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:06:23 +00:00
Ingo Weinhold
cd6210cc8d Added a parameter for getting the partition module name to the get_nth_partition_info() hook.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:05:20 +00:00
Ingo Weinhold
38f832c7eb Removed Identifier() and FileSystem() methods. ShortName() shall return the respective identifier.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:03:48 +00:00
Ingo Weinhold
1f293937f5 extended_partition_info: changed partition_code to uint32 and added a field file_system_flags. Added a parameter partitionMapName to get_nth_partition_info() for getting the identifier of the used partition module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-26 15:01:55 +00:00
ejakowatz
7dfa005716 Fixed a mistake in the declaration for class BFoo in the "pointer to new
data structure example"; int32 fQux should have been included (otherwise,
the class size would have be reduced by 4 bytes!)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-25 20:59:47 +00:00
Tyler Dauwalder
6d936c5f11 Quick fix to ignore incorrect audio track labels in toc.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-25 19:32:25 +00:00
Tyler Dauwalder
ee072b68f7 Now handles "sessions" with multiple "tracks" correctly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-25 09:16:32 +00:00
DarkWyrm
34a81c2f00 Added skeleton Desktop functions and skeleton Layer class
Tweaked files dependent files to include Desktop.h


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-24 15:19:27 +00:00
DarkWyrm
0934499c5d Added ServerApp, fully documented and 99% implemented
Made FontServer::FontsUpdated public


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-24 14:36:15 +00:00
DarkWyrm
0933894bf7 SetCursor(int32 token) now sets system cursor_which to B_CURSOR_OTHER
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-24 14:20:44 +00:00
DarkWyrm
134b30df97 Added global cursormanager object
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-24 14:00:48 +00:00
Michael Phipps
556632b760 bug fixes found as a resule of testing
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-24 05:41:40 +00:00
Michael Phipps
cd5053c617 More tests to round out (for now) createArea
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-24 05:41:10 +00:00
Marc Flerackers
f81711e0de Added the virtual function BSlider::SetLimits
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 15:35:12 +00:00
Marc Flerackers
8ce46bc32b Lots of fixes, geometry calculations updated, added buffered BSlider support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 15:11:19 +00:00
Marc Flerackers
ac6f7aa850 Lots of fixes, geometry calculations updated, added buffered BSlider support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 14:55:18 +00:00
DarkWyrm
2dc718a7e8 Implemented and documented the cursor manager
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 14:25:16 +00:00
DarkWyrm
9bbede1078 One more necessary attribute for cursor_which
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 14:01:34 +00:00
DarkWyrm
82857f6f72 Minor enum name tweak
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 13:38:09 +00:00
DarkWyrm
a534bc89a5 Forgot to add the ID token. Doh!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 01:20:28 +00:00
DarkWyrm
579d027203 Added TokenHandler class and associated documentation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 01:06:45 +00:00
DarkWyrm
abc4a76816 Added app signature identifier for CursorManager class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 00:37:53 +00:00
DarkWyrm
5911e5552e Added system cursor definitions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-23 00:29:05 +00:00
Stefano Ceccherini
3e194a0eeb Added termios.h header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-22 16:48:04 +00:00
Stefano Ceccherini
2d4125b748 this should be the definitive (excluded bugfixes) implementation of BBufferIO. Buffered write should work fine, as buffered read did.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-22 16:40:56 +00:00
Michael Pfeiffer
4092c70e5f Added copyright text.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-22 06:58:58 +00:00
Michael Pfeiffer
7af3c68cbf Return success if print to file dialog has been canceled (so that print_server will delete spool file).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-22 06:50:50 +00:00
Axel Dörfler
822ea83244 list_add_link_to_tail() didn't work correctly.
Applied fixes by notion: removed two redundant if-statements, replaced
(link *)list with &list->link.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-21 23:43:13 +00:00
Stefano Ceccherini
d376996084 Added doxygen style comments. Fixed a bug in open() return value. The class still doesn't work as it should.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-21 19:34:45 +00:00