Commit Graph

7900 Commits

Author SHA1 Message Date
Axel Dörfler
2fdc57b522 BeGeistert checkin: fixed broken allocation length as found by the USE_WALL
feature.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 15:39:21 +00:00
Axel Dörfler
cc0c987a28 No longer relies on certain allocation aligments of malloc(), and instead
uses the new memalign() call.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 15:36:31 +00:00
Axel Dörfler
09ff55a821 BeGeistert checkin: we now have memalign() - and because of that, the
USE_WALL feature can now be used.
Started implementing a USE_CHECKING_WALLS feature, that has a kernel
daemon running that periodically checks the walls of *all* memory
allocations - does not work yet (because of some initialization order
problems).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 15:29:17 +00:00
Axel Dörfler
e1e5a66bc2 BeGeistert checkin: wait_for_child() does now work as expected for any
team and process group IDs as well.
Added a ToDo item that process groups do only work well as long as
their group leader is still active.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 15:16:00 +00:00
Axel Dörfler
b767f41204 BeGeistert checkin: if B_RELEASE_ALL is used, the "count" argument should be
ignored completely (so that zero and below become valid).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 15:14:03 +00:00
Stefano Ceccherini
99a5b57a50 Style and license fixes, added Marc Flerackers to the authors list.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 13:39:20 +00:00
Stefano Ceccherini
058691d409 Style changes, updated license header,
now uses the correct constants (B_FONT_FAMILY_AND_STYLE, etc.) instead of the numbers directly... tsk, tsk :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 10:21:46 +00:00
shatty
8c1dffa05b remove unnecessary defines related to R5 compatibility
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 03:03:08 +00:00
shatty
cb14d59346 patches for building for different targets
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 02:31:12 +00:00
shatty
0566c7b352 quit taskbar closer to install and restart after install
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 02:27:27 +00:00
DarkWyrm
a0fdabc807 <smacks forehead> Kevin's changes also affected the ScrollBar prefs. Fixed build. *sigh*
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 23:05:05 +00:00
DarkWyrm
720dc8a4d1 DrawString updates the pen position
Removed a bug preventing use of antialiasing in DrawString
StrokeLine updates the pen position now
Added a couple forgotten break statements to a few cases in DispatchMessage


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 22:42:08 +00:00
DarkWyrm
ce3a18db3d Added the forgotten length parameter to DrawString
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 22:39:41 +00:00
Nathan Whitehorn
8dbc8c1979 Added a highly experimental USB audio driver on behalf of Mikael Jansson (a.k.a. tic). This should probably be converted to the multi_audio API, among other changes, in future.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 19:29:53 +00:00
Nathan Whitehorn
c60f83369f Renamed BMailRemoteStorageProtocol to BRemoteMailStorageProtocol. Because I like it better. This should complete the API modifications from the Haiku import.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 17:21:26 +00:00
DarkWyrm
37aec728fa Updated the various drivers to match the DisplayDriver::StrokeLineArray changes
Removed dead code from ServerApp.h
Added to ServerWindow support for area-based messages and implemented code for AS_STROKE_LINEARRAY


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 02:02:27 +00:00
DarkWyrm
11620a7e4c Fixed the message code for making LineArray calls in the server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 01:59:40 +00:00
DarkWyrm
ad398ac272 Updated to match changes to DisplayDriver::StrokeLineArray
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 01:58:44 +00:00
DarkWyrm
6f70fc00b6 Updated to match the change to DisplayDriver::StrokeLineArray
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 01:58:03 +00:00
Nathan Whitehorn
a622d7bb47 Fixed the everlasting IMAP crash-on-timeout bug and the everlasting zombie-chain bug. This eliminates all known bugs in the MDR network layer.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-16 00:29:32 +00:00
Axel Dörfler
85fa73ff32 stdio does work, too.
Now uses waitpid() instead of wait_for_thread() - and surprise, it doesn't
work yet :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 17:00:51 +00:00
Axel Dörfler
2b6c3301f7 Forgot to put the forked team into its parent group in fork_team() - which
resulted in a nice crash on exit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 16:14:51 +00:00
Axel Dörfler
8cab02c5ce Removed the TRACEPFAULT macro, as it's not really that useful.
Fixed some warnings with debug output enabled.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 16:06:14 +00:00
Axel Dörfler
8593dcc214 Being on a kernel stack doesn't mean we didn't come from userland: we now
no longer pop %fs from the iframe in that case, too.
When we restore a custom stack, however, we'll now pop %fs from the iframe
as such strange threads may even do their own business with it.
Added some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 15:50:41 +00:00
Axel Dörfler
d296d770a3 %fs won't be adopted from the iframe anymore, we don't need to change it there.
We also should disable interrupts in arch_restore_fork_frame().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 15:47:34 +00:00
Axel Dörfler
ba9c55b555 Sure, that bug waited *that* long to pop up.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 14:20:51 +00:00
Philippe Houdoin
4907c35be7 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 11:49:02 +00:00
Philippe Houdoin
085a73c43c Fixed some minor warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 11:42:47 +00:00
Jérôme Duval
fbe27baa4c removed B_PULSE_NEEDED flag, fixed BRect size
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 09:54:15 +00:00
Axel Dörfler
a7fa05a54b Since arguments may on the stack even in the kernel, load_image() now
always copies the arguments and environment arrays.
No need for the "owns_arrays" in team_arg anymore - it now always owns
them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-15 01:52:07 +00:00
Nathan Whitehorn
b1cec3747c Fixed SSL compilation, a compiler warning, and eliminated a crashing bug that would happen on connection timeouts or failures.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 21:03:42 +00:00
Axel Dörfler
4578da13a4 main() now waits until interrupts are available before bringing the device drivers up.
Switched to load_image() instad of using the old team_create_team() to start "init".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 18:18:22 +00:00
Axel Dörfler
bd4b903e57 Switched from the old team_create_team() to a load_image() compatible mechanism.
The path name is now always taken from the provided argument list (except for
_user_exec() which now replaces args[0] with the path argument).
The team_arg structure know nows if it must delete its arguments or not - this
also fixes a memory leak in case team_create_team() failed when invoked from
userland.
load_image() is now also exported for the kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 18:07:04 +00:00
Axel Dörfler
4496669366 Added minimal fork() test app.
Enhanced exec_test.c to use some process functions as well.
Switched to load_image() instead of using the old _kern_create_team() syscall.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 17:52:41 +00:00
Axel Dörfler
dc0f47e390 Implemented load_image() using the new _kern_load_image() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 17:49:58 +00:00
Axel Dörfler
beee70da41 Changed system() to use load_image() instead of the old _kern_create_team() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 17:47:49 +00:00
Axel Dörfler
eb89cb7f1d The currently predefined PATH variable missed its single most important path (/bin) :).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 17:44:09 +00:00
Axel Dörfler
4711148ca9 wait_for_child() can now also wait on children in the current or any other
process ID (in the current session).
get_death_entry() could call free() with interrupts disabled; now follows
the same mechanism as chosen with the groups (ie. it returns a pointer
to a death_entry to be freed by the calling function).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 15:42:56 +00:00
Rudolf Cornelissen
b88fe980ef updated AGP shutoff to be temporary during coldstarts: finally NV28 cooperates IF card is primary, fake_agp driver is installed and FW is enabled!! Apparantly something messes up PCI/AGP comms that does not get restored within the normal coldstart operating procedure. PCI mode is NOT operational when coldstarting(!)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 15:06:06 +00:00
Axel Dörfler
38cd9a7521 send_signal_etc() is now capable of broadcasting a signal to all teams in
the specified process group (by passing in a negative pid, as in BeOS).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 14:48:40 +00:00
Axel Dörfler
6a70123a9d Big update, but everything is related:
- we now have a working process group/session model. Implemented related syscalls
  and the kernel backend, some POSIX process functions are now available in the
  kernel as well.
- dying teams now monitor their exitus by leaving death_entry structures in
  their parent team.
- Implemented wait_for_child() for pid == -1 and pid > 0; IOW waiting for process
  groups is missing yet. Hasn't yet been tested intensively.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 14:46:12 +00:00
Axel Dörfler
f197107a3d B_RELEASE_ALL is now a bit faster if it has nothing to do.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 14:37:39 +00:00
Axel Dörfler
d67750858c Implemented all remaining process related functions from unistd.h using the new syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 14:36:45 +00:00
Axel Dörfler
b51a65027b Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 14:24:42 +00:00
Rudolf Cornelissen
c1a1413c4d forcing PCI mode before coldstart exec: NV28 starts to show signs of life now... This might fix coldstart trouble on some cards outthere.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 12:59:40 +00:00
Rudolf Cornelissen
bf25ef8f47 logging updates
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 10:07:59 +00:00
Rudolf Cornelissen
7340b4612e more PLL calc routine finetuning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 09:42:21 +00:00
Stefano Ceccherini
06103a3d87 removed _PS2_MOUSE_ define, as it isn't used anymore
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 09:33:36 +00:00
Jérôme Duval
f79a45bd14 build the R5 driver only when COMPILE_FOR_R5 is defined
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 09:29:17 +00:00
Rudolf Cornelissen
a7df5c7c5b added NV28 RAM init routine (coldstart stuff). Seems to work, although we still have another problem that's preventing correct RAM access (RAMIN).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 08:33:20 +00:00
DarkWyrm
8fd1ad6fb0 Dead code removal from BGet++
API modifications for ServerApp to support PortLink messages sent via an area
Added a RAM-based PortLink message reader to handle reading from an area


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 01:23:00 +00:00
DarkWyrm
c2f63fb50d Moved functionality of PortLink into LinkMsg* to avoid serious code duplication in the app_server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 01:20:30 +00:00
Matthew Wilber
8a2b9ae571 Updated with the new location of the StreamBuffer files
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 21:31:29 +00:00
Jérôme Duval
ddf8a11463 Fixed restart problem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 20:00:19 +00:00
Axel Dörfler
48e64cd7c8 Added two experimental release_sem_etc() flags (both should stay, but they
may be renamed):
- B_RELEASE_ALL: the semaphore count is set to 0, all waiting threads are released
  (the "count" argument of release_etc_sem() is ignored then)
- B_RELEASE_IF_WAITING_ONLY: the semaphore count is only decreased if there
  are any waiting threads; ie. the semaphore is signaled
Together, they will make the pthread_cond_*() functions easy to implement, and
they come in handy at other places, too.
Removed release_threads variable in release_sem_etc(), as it was useless.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 15:55:30 +00:00
Axel Dörfler
1956e69d13 Moved the thread::sem fields into their own sub-structure for clarity.
Some minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 15:19:08 +00:00
Axel Dörfler
386977d795 Removed delete_sem_etc(), there is no thread::sem_deleted_retcode anymore.
Also removed syscall for that function (shouldn't have been there in the
first place, anyway).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 14:56:44 +00:00
Axel Dörfler
c8e662b19c Changed some thread exit related fields.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 14:54:51 +00:00
Axel Dörfler
c2289a8876 Changed the way a dying thread propagates its exit status and reason: we
no longer abuse the semaphore mechanism to carry an extra status value,
instead, wait_for_thread() registers a death_entry with the thread that
will be filled upon exit.
Removed delete_sem_etc() as it's no longer of use or available.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 14:52:52 +00:00
Axel Dörfler
822e4e0b41 suspend_thread() and resume_thread() no longer have the B_DO_NOT_RESCHEDULE
flag set.
Fixes _user_wait_for_thread() which returned an invalid return code in case
of error.
Some minor cosmetics.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 13:10:27 +00:00
Philippe Houdoin
8880d1a7b4 Fix build issue raised by changes in notify_select_event() prototype.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 10:29:00 +00:00
Philippe Houdoin
b6e6c72041 Now using TRACE() macro for debug outputs.
Debug output display opcode name instead of just this unfriendly hex value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 10:00:01 +00:00
Philippe Houdoin
6e177b5562 Small autosizing enhancement.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:56:28 +00:00
Philippe Houdoin
e35b498755 Small changes that were never comitted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:52:32 +00:00
Philippe Houdoin
def78b567a Add setenv() & co to librld.a as our runtime linker will need them...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:49:14 +00:00
Philippe Houdoin
08130f16ce Fix About Box project name.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:47:07 +00:00
Philippe Houdoin
71bff49f93 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:41:36 +00:00
Philippe Houdoin
f0b122701b Fix warnings about conflicts between KernelExport.h's user_memcpy/_strlcpy() and
kernellland_emu.cpp implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:06:25 +00:00
Jérôme Duval
85bf8fb207 Fixed delete key for Hungarian keymap. Thanks to Barna ( jedimaster at egoldal.net ).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 08:23:35 +00:00
Stefano Ceccherini
8b1a3af3db Fixed ps2/at keyboard driver. I've started using this as my default keyboard driver on r5, so I can test it and implement what's missing (mostly settings ioctls).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 06:34:37 +00:00
Axel Dörfler
4609c64d48 The %fs register is used by user space TLS - it is CPU dependent, and must
not be restored from the iframe; it will be set by the scheduling code.
This is only of concern on SMP machines and could prevent TLS from working.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 22:42:22 +00:00
Axel Dörfler
2740dedc5b Added thread-safe pthread_atfork() support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 16:44:40 +00:00
Axel Dörfler
81d4f788a2 Added and implemented atfork() - note, this function is not part of POSIX
and should go away over time.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 16:37:39 +00:00
Axel Dörfler
10031c3053 Added and implemented pthread_atfork().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 16:36:12 +00:00
Axel Dörfler
c0126bf6e4 Now uses the prototype definitions of libroot_private.h instead of defining
them locally.
Added __init_fork().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 16:35:02 +00:00
Axel Dörfler
0214622f56 Renamed __init__dlfcn() to __init_dlfcn(), moved prototype to libroot_private.h header.
Made it less vulnerable to thread-safety issues; it could occassionally return an
error when there was an error in a concurrent dlfcn function.
Renamed global static variables to have the "s" prefix.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 16:33:45 +00:00
Axel Dörfler
320f1cc118 Renamed __init__image() to __init_image(), moved prototype to libroot_private.h header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 16:31:35 +00:00
Philippe Houdoin
6cb1baaec6 Fixed warning about default argument value in implementation.
StringItem.h is not BeOS R5's source compatible, now include ListItem.h instead, which is.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 15:35:33 +00:00
Philippe Houdoin
1445ff4a06 Backup /etc/* network config files too. Update the README.html, still in needs
for more details...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 13:50:30 +00:00
Stefano Ceccherini
5a745a2134 Applied a patch by BiPolar, which fixes the second wheel handling (can't test as I don't have a two wheeled mouse).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 10:00:48 +00:00
Stefano Ceccherini
6a2b2afab3 Switched to "DEBUG" from "TRACE_MOUSE". That way it's easier to enable syslogging in the driver
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 09:52:57 +00:00
Axel Dörfler
fdbd1b5d7b fork_team() is working now! It might not be 100% complete (signal handling),
but the kernel part seems to work good enough for now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 04:03:52 +00:00
Axel Dörfler
a52cce2963 Moved thread_kthread_{entry|exit}() to where they are found easier.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 03:55:46 +00:00
Axel Dörfler
adf29fcdda Removed the broken arch_thread::current_iframe field and switched to the
same mechanism as NewOS, ie. using the iframe "stack" pointer (using the
new i386_get_current_iframe() function).
Implemented fork() support functions arch_{store|restore}_fork_frame().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 03:52:53 +00:00
Axel Dörfler
21942ca92a The arch_thread::current_iframe was not only redundant, but also incorrectly
maintained. Removed it completely.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 03:48:51 +00:00
Axel Dörfler
27d0a0aaff Implemented new i386_restore_frame_from_syscall() function needed by fork().
Added some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 03:47:09 +00:00
Axel Dörfler
8bf77a7332 _get_next_area_info() skipped every second area if they were adjacent.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 02:50:30 +00:00
Philippe Houdoin
16bf4f998b Package rule was wrongly placed!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 01:07:45 +00:00
Philippe Houdoin
7dab30dbf7 Move README.html upper.
Add an install script to haiku-networkingkit-cvs package, featuring an
uninstall.zip backup creation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 00:51:22 +00:00
Stefano Ceccherini
cbc9d62f52 Fixed issue with Lock/UnlockStaticBuffer() on R5
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 23:33:01 +00:00
Stefano Ceccherini
c6a2e89fec Fixed small typos in the comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 14:43:32 +00:00
Stefano Ceccherini
2910a19bbf Added an ifdef around static variables, so we use beos ones when COMPILE_FOR_R5 is defined.
That makes testing TextView under beos possible, again.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 13:43:39 +00:00
Axel Dörfler
d3ddbef95c vm_copy_on_write_area() did not correctly set the upper cache_ref - vm_cache's
pointer to the ref was not set (resulting in a crash).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 12:23:02 +00:00
Axel Dörfler
41dbd5191c Fixed vm_copy_area() when B_CLONE_ADDRESS was specified (insert_area() does not
know about this specifier, it has to be replaced by B_EXACT_ADDRESS).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 12:02:20 +00:00
Stefano Ceccherini
53a74c2fa2 Fixed the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 08:17:38 +00:00
Axel Dörfler
71eeb427c3 Implemented team_get_address_space() which gets you a pointer to the
team's address space - for internal use, anyway.
Added a ToDo: item to exec_team() to remind me of alarms and signals.
Started implementing fork_team() based on team_create_team() - it's not
completed (or even works), though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-10 17:30:42 +00:00
Axel Dörfler
7bb329730d vm_delete_areas() didn't do any locking, but the address space region list
must not be accessed without it.
Implemented _get_next_area_info() and _user_get_next_area_info().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-10 17:23:54 +00:00
Axel Dörfler
b9d74a6b88 Added vm_delete_aspace() again - unlike before, it now also puts the last
reference to the address space, so that the calling team deletion function
doesn't have to do this.
delete_address_space() doesn't have to delete any areas anymore, since
at the point it's called, there is no area anymore, anyway: each area
holds a reference to the address space.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-10 17:21:38 +00:00
Michael Pfeiffer
05ab7b5c32 Set the page origin to the left/top point of the printable rectangle (was page rectangle).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-10 15:44:51 +00:00
Michael Pfeiffer
fecfb1dcff Fixed bug where pages following the first physical page were omitted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-10 15:42:47 +00:00