Commit Graph

6810 Commits

Author SHA1 Message Date
Axel Dörfler
135d20a96e Now properly shuts down the thread message cache in thread_exit(),
its semaphores get deleted, thanks to Jack Burton for reporting.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-05 12:55:27 +00:00
Axel Dörfler
5fd77dc430 Moved a few functions around to have a better separation between public
port API and private functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-05 02:28:37 +00:00
Axel Dörfler
3339a96ba6 Fixed ReadFromRawPort(); it was severly broken (the missing B_RELATIVE_TIMEOUT
flag was reported by Bill Hayden).
I fixed only this method, and nothing else, but please have a look at how
I did it, and apply the same fixes, thanks!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-05 01:49:48 +00:00
Axel Dörfler
7fb4c29b80 port_buffer_size_etc() was horribly broken in a lot of ways, it even read
the info from the wrong end of the queue.
find_port() did not return the correct error codes.
write_port_etc() checked incorrectly for a deleted semaphore.
B_WOULD_BLOCK would let various functions print out a warning for no reason
(the comments in the code actually didn't fit to the implementation).
"total_count" was counting the number of messages written, not those that
have been read (as the BeBook says).
Thanks to Bill Hayden who reported a lot of these.
Added TRACE macro and moved some of the dprintf()s to that.
Added/fixed some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-05 01:23:43 +00:00
beveloper
75a52c6151 switch to 2004
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-05 00:27:05 +00:00
beveloper
1f4114e74c supposed to create two packages, but broken
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 23:53:58 +00:00
beveloper
b335aba0e1 a few files useful when creating installation packages of this driver
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 23:38:41 +00:00
Axel Dörfler
7b83e8b24c Made find_port() less heavy; it no longer disables interrupts for the whole
run. Also create_port() now changes the port ID only when the port lock is
grabbed, so that we don't need to acquire the port list lock in find_port().
Removed setting lock to "0" in create_port() because if it's not 0 in the
first place, there is something seriously wrong (should add an assert there).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 20:43:13 +00:00
Axel Dörfler
b752b6bb02 Fixed port & sem debugger commands, fixed sem.c compilation with tracing
enabled, courtesy of Jack Burton.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 12:14:48 +00:00
Rudolf Cornelissen
c045684987 more panel detection stuff: looks like it will work for both DVI and laptops..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 09:01:45 +00:00
Axel Dörfler
d858695df8 Some R5 fixes that don't affect Dano/Zeta, and hopefully won't affect us, too:
- BWindow::SetSizeLimits() don't change the window size if it's bigger than the
  maximum.
- BTabView::Select() crashes when the view is not yet attached to a window.
- BMenuItem::DrawContent() has wrong drawing mode set (not really a big issue,
  but I think Draw() should call DrawContent() with correct and usable values)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 02:02:09 +00:00
Axel Dörfler
2d359e77ba Set a minimum size where the window is still usable and looks okay.
The checkbox and the "find" button are now in the same row to make
the window a bit smaller.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-04 01:59:10 +00:00
Axel Dörfler
0efc0b5804 Forgot to remove some parts of the previous read lock.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 18:58:54 +00:00
Axel Dörfler
76946b95da Fixed the pipefs. It now should work without any problems.
I don't know which part of me has written the previous version, but
it seems not have been supervised by a brain while doing it.
The read requests are now maintained per inode (as it has to be),
and there is one read lock per request.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 18:57:52 +00:00
Michael Phipps
3637d4b543 Whoops. Don't checkin the .o files. Bad developer. Bad. <slap> goes the trout...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 18:39:16 +00:00
Axel Dörfler
482aa308c1 Fixed bug in the settings validation check, thanks to Jerome for reporting this!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 16:10:21 +00:00
Axel Dörfler
2b7853fb07 The coreutils break the kernel build so I've removed it from the build until that is resolved.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 02:41:46 +00:00
Axel Dörfler
025019e571 Renamed thread/team syscalls to new scheme.
Minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:15:48 +00:00
Axel Dörfler
96246c6b3b Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:15:15 +00:00
Axel Dörfler
663bccf7f9 Renamed thread/team syscalls to new scheme.
Code cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:14:49 +00:00
Axel Dörfler
5d83d63c08 Renamed thread/team syscalls to new scheme.
Removed old ERR_* error codes.
Removed funny area names in rldheap.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:13:00 +00:00
Matthew Wilber
5a253979d3 Fixed window title to match Be's version, removed bits->bits translation code (this should be handled in the BaseTranslator.cpp anyway) and removed hardcoding of config view bg color
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:12:13 +00:00
Axel Dörfler
39622c6739 sys_get_current_thread_id() is no more.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:10:08 +00:00
Matthew Wilber
2058c6c754 Changed window title to be consistent with the other translators
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:09:40 +00:00
Axel Dörfler
5be410a7cd Renamed thread/team syscalls to new scheme.
Tuned the license a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:09:17 +00:00
Matthew Wilber
3d5b4968bd Fixed window title to match Be's version
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:08:35 +00:00
Axel Dörfler
a16600d146 Renamed thread/team syscalls to new scheme.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:08:27 +00:00
Axel Dörfler
6f2229385e Renamed thread/team syscalls to new scheme.
read_data(), has_data(), and receive_data() are no longer exported
by this file, but their _kern_*() equivalents are now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:07:21 +00:00
Matthew Wilber
c1a96ad26c Made window title just like Be's, removed bits->bits translation code (should never be called, this case should be handled in BaseTranslator.cpp), fixed hardcoding of config view bg color
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:06:40 +00:00
Axel Dörfler
ade669abd7 Renamed thread/team syscalls to new scheme.
Added commented out wait_for_team() which we might want to have in the
final version, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:06:23 +00:00
Axel Dörfler
3dbf98a59a Renamed thread/team syscalls to new scheme.
find_thread() is now correct.
Moved send_data(), has_data(), and receive_data() back into this file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:05:13 +00:00
Matthew Wilber
edd8878638 Changed to use shared translator code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:03:52 +00:00
Axel Dörfler
57ffd61845 _kfind_thread_() is now correctly implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:03:31 +00:00
Axel Dörfler
acfdb017dd team_kill_team() is now called kill_team().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:02:08 +00:00
Axel Dörfler
0ff38616f4 Renamed syscalls to new scheme.
Changed thread_kill_thread() to the BeOS compatible kill_thread() function.
Added missing _user_kill_thread().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:00:16 +00:00
Axel Dörfler
564ffd3da7 Renamed thread/team syscalls to new scheme.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 00:58:19 +00:00
Axel Dörfler
98d68e7085 Renamed syscalls to new scheme.
Moved wait_for_team() into the exported kernel API region.
Added missing call for _user_get_current_team().
Made the team_kill_team() call to the BeOS compatible kill_team().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 00:57:00 +00:00
Axel Dörfler
9e5bff5feb Replaced the syscall for thread_get_current_thread_id() with one for find_thread().
Renamed the thread/team syscalls to the new naming scheme.
Some other minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 00:52:47 +00:00
Axel Dörfler
8e623d69b5 Made it a bit nicer to use.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 00:50:01 +00:00
Axel Dörfler
6f3a136e47 Added the inline x86 asm version of find_thread() as it is found on BeOS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 00:44:18 +00:00
Matthew Wilber
54abea93f0 Changed to use shared translator code, these files are no longer needed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:49:10 +00:00
Matthew Wilber
862e3ac371 Changed to use shared translator code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:48:26 +00:00
Ingo Weinhold
e490b53c45 Added coreutils, diffutils, grep, less, sed (another one?), and sharutils to the build, and fixed some small problems. Most of the stuff still doesn't build properly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:47:11 +00:00
Matthew Wilber
28cac36c73 Updated config message test for new STXTTranslator behavior
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:38:17 +00:00
Axel Dörfler
1748ad5db7 Added find_thread() (does not yet work with name != NULL).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 17:40:14 +00:00
Stefano Ceccherini
7667c061fe Simplified an expression (which was even wrong before)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:29:04 +00:00
Stefano Ceccherini
b2fece1ec0 renamed some global variables to have the "g" prefix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:16:11 +00:00
Waldemar Kornewald
abf44d1a2b Some changes I did a long time ago. I think this also contains a fix for the last dead-lock I could find.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:06:20 +00:00
Waldemar Kornewald
6bef9fe1b8 Initial checkin of "DialUpPreflet". This will become an add-on for the "Network" preflet.
It is far from finished (all add-ons are missing). The hacks should be removed...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:03:34 +00:00
Axel Dörfler
1a5f7f53c6 Unbroke the selection menu item message I broke with the previous change...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 11:46:27 +00:00