Axel Dörfler
707046555e
Added pthread stuff to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 22:45:15 +00:00
Axel Dörfler
0d0145515d
Implemented userland env handling; it longer uses syscalls for this - I even
...
made it thread-safe, although this is not required by POSIX.
Implemented unsetenv(), improved putenv().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 22:41:49 +00:00
Axel Dörfler
3e998caf29
Added some optional to make the function more correct - if it's ever going
...
to be called that way.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 22:38:01 +00:00
Axel Dörfler
b10cca5480
mutex_unlock() did not return anything when everything went well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 21:56:28 +00:00
Jérôme Duval
a3810a32ee
added modules for glibc
...
replaced ctype.o with glibc ones
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:51:31 +00:00
Jérôme Duval
f68db6c5e6
this conflicts with ctype-info.c from glibc
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:46:48 +00:00
Jérôme Duval
8b6244a7e6
added new directories to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:45:19 +00:00
Jérôme Duval
9e359f4244
needed by include/nl_types.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:44:23 +00:00
Jérôme Duval
1e5a39d91d
reversed back to 2.2.5
...
enabled printf_fp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:41:37 +00:00
Jérôme Duval
55a93a6ff0
added includes files based on GLibC 2.2.5
...
used by printf_fp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:37:35 +00:00
Jérôme Duval
fda682942a
include file for printf_fp (based on 2.2.5)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:34:06 +00:00
Jérôme Duval
da2e1d1a96
added a wctype.h used by include/wctype.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:31:26 +00:00
Jérôme Duval
a6508c735e
added includes for printf_fp (based on 2.2.5)
...
added macros to use our standard posix call when possible instead of prefixed versions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:28:15 +00:00
Jérôme Duval
435b55e99e
added arch includes for printf_fp (based on 2.2.5)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:25:19 +00:00
Jérôme Duval
270415343d
added includes needed for printf_fp (based on 2.2.5)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:24:03 +00:00
Jérôme Duval
08c0aa1328
added iowpadn.c and wgenops.c to the build
...
commented out a suspect include
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:18:44 +00:00
Jérôme Duval
d6b3a0c2b8
reversed back to GLibC 2.2.5
...
used by printf_fp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:15:34 +00:00
Jérôme Duval
fde72c74cc
reversed back to GLibC 2.2.5
...
added to the build needed functions for printf_fp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:11:14 +00:00
Jérôme Duval
e207b59ec7
added a x86 arch directory for GLibC (based on 2.2.5)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:04:56 +00:00
Jérôme Duval
864ce0e4d7
added a ppc arch directory for GLibC (based on 2.2.5), untested
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 19:00:09 +00:00
Jérôme Duval
c862c0e4a4
added a arch directory for GLibC (based on 2.2.5)
...
generic files are used by archs with source search feature of Jam when no specialized version exists
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 18:56:25 +00:00
Jérôme Duval
cd623098da
reversed back to GLibC 2.2.5, added a Jamfile
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 18:46:43 +00:00
Jérôme Duval
6364ac2487
reversed back to GLibC 2.2.5, added a Jamfile
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 18:40:25 +00:00
Jérôme Duval
42d3352e8a
added __strtold_internal and __strtof_internal for glibc print_fp
...
these functions should be placed in glibc one day
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-10 18:16:50 +00:00
Ingo Weinhold
836d23b08e
* Added empty _user_wait_for_debugger() implementation.
...
* Added some musings about what is missing, when a debugger is removed and
how _user_wait_for_debugger() shall be supported.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 22:49:13 +00:00
Ingo Weinhold
a29ecae5f0
New debug function wait_for_debugger(). Useful when creating teams to be debugged via fork().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 22:45:41 +00:00
Ingo Weinhold
2562e5185c
Command B_DEBUG_MESSAGE_GET_WHY_STOPPED supports a reply port now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 22:05:43 +00:00
Axel Dörfler
3820698290
Renamed threadIDEnd to lastThreadID as I think it's clearer.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 02:05:18 +00:00
Axel Dörfler
4eadd9005b
Made sure that B_SYSTEM_TEAM is never used as a thread ID - the previous code didn't
...
look correct and was a bit expensive.
Some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 01:59:44 +00:00
Axel Dörfler
3db7e2cf8b
Some cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 01:43:56 +00:00
Ingo Weinhold
bd5d59c4cc
Support partial reads from memory.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 23:10:55 +00:00
Ingo Weinhold
fe99e18c3c
spawn_kernel_thread_etc() has one more argument now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 18:18:55 +00:00
Ingo Weinhold
6c2560b50e
team_ids are now aligned with the team main thread IDs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 18:18:10 +00:00
Ingo Weinhold
5939c4d7a9
Added functions allocate_thread_id() and peek_next_thread_id() and a
...
threadID parameter to spawn_kernel_thread_etc(). It's now possible to
set the ID of a new thread. Used in team.c to make team ID and the ID of
the main thread equal.
Fascinatingly the two added functions prompt my compiler to issue
`missing prototype' warnings, although those are obviously there. It would
be nice if someone could solve that riddle.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 18:16:16 +00:00
Ingo Weinhold
08f3210dcf
Added empty implementations of tc{get,set}pgrp().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-07 22:07:26 +00:00
Ingo Weinhold
5141596a69
Added ffs().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-07 22:02:50 +00:00
Ingo Weinhold
a8e00c29fe
Add the newly introduced src/build/cpp_support.cpp to the sources when building under Linux.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 16:51:58 +00:00
Ingo Weinhold
8b737816c4
Added KERNEL_C++_SUPPORT_LIBS to the libs the kernel links against. Required under Linux.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 16:50:24 +00:00
Axel Dörfler
6f5d035e3a
Temporarily fixed the build by commenting the two new files. They need
...
non-POSIX functions that we have disabled from the build. Not sure if
we really want to change that (ie making those functions public).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 14:13:55 +00:00
Jérôme Duval
f95d0b421a
added a setpgrp impl
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-04 13:56:49 +00:00
Jérôme Duval
a15b332e3b
added an implementation for strptime from FreeBSD (1.35, 1.25, 1.11)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 15:51:05 +00:00
Axel Dörfler
cc8aae32ee
We're using now Ingo's new doubly linked list implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 06:15:16 +00:00
Axel Dörfler
0cbd4edc72
Fixed warning in the real time stuff. Added empty user debugger functions
...
to keep things building.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 06:04:59 +00:00
Axel Dörfler
1f6dcd134f
write_cached_block() would write the wrong block in case there was
...
a previous and unfinished transaction. It should now work correctly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 01:10:16 +00:00
Jérôme Duval
d4fe9d12d0
added missing posix error messages
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 16:46:24 +00:00
Ingo Weinhold
121f7fb374
Allow setting a couple of EFLAGS bits.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 14:53:11 +00:00
Ingo Weinhold
59ad83d0d9
Don't allow changing the segment registers.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 11:52:53 +00:00
Ingo Weinhold
5d2536d2af
* Added functions for clearing/destroying the arch-specific thread debug
...
info.
* Implemented arch_set_cpu_state() (Axel, please check, what registers
the debugger should actually be allowed to modify).
* Fixed arch_get_cpu_state(). We now explicitly copy the registers
manually instead of using memcpy(). Added support for extended
registers (FPU,...).
* Completed break- and watchpoint support.
* Implemented handling of debug and breakpoint exceptions.
The x86 specific part of the userland debugging support should be complete
now. That is in theory the entire debugging interface is available on x86
machines now. It's almost completely untested yet, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 00:14:38 +00:00
Ingo Weinhold
edd0aaeaee
* Stop user debugging when entering the kernel and init it when leaving
...
it.
* Handle debug and breakpoint exceptions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-01 23:59:23 +00:00
Ingo Weinhold
98b14f8a6a
* Made i386_get_current_iframe() static again, since it wasn't what was
...
needed to get the topmost user iframe. Added i386_get_user_iframe() for
exactly that purpose.
* Added reinitialization of user debugging for the new thread when
switching the context.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-01 23:56:52 +00:00