Commit Graph

228 Commits

Author SHA1 Message Date
Axel Dörfler
5eb81b22fe Renamed printf-prs.c to printf-parse.c
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 15:18:44 +00:00
Axel Dörfler
b92791bf92 No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 15:09:01 +00:00
Axel Dörfler
28d9e59387 Added process.c to the build, implemented getpid().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 15:02:09 +00:00
Axel Dörfler
9289abf0e4 Added _kern_debug_output() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 22:07:36 +00:00
Axel Dörfler
fe4817d5c0 Didn't set the facility correctly if set from both, openlog() and syslog().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 02:51:15 +00:00
Axel Dörfler
c094c0c22b Added a comment about a missing dump of the message to stderr if write_port()
fails.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:55:04 +00:00
Axel Dörfler
87a98412a1 Now correctly differentiates between options and priority/facilities.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:34:12 +00:00
Axel Dörfler
fb4dcd08dc Now checks in the argument's options as well for LOG_CONS.
The LOG_MASK() macro is now used correctly.
The non-standard LOG_PERROR is always visible in stderr as well (in BeOS,
so we copied it). Added a newline for stderr output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:11:50 +00:00
Axel Dörfler
9ff210a134 Use the SYSLOG_PORT_NAME constant instead of the name directly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 15:14:48 +00:00
Axel Dörfler
41c6e8cc55 Fixed the setlogmask*() functions; the priority mask is only set if the
parameter is not 0, and it returns the old mask as well.
Also fixed the initial log mask for the team context; it's now set to -1
(enable all priorities) by default.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:44:31 +00:00
Axel Dörfler
3b737adbda Implemented the POSIX syslog API including the BeOS extensions. In BeOS,
this API is found in libbe.so, in OpenBeOS, it's directly in libroot.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:35:22 +00:00
Axel Dörfler
eb04c7678e Added and implemented gettimeofday() using real_time_clock_usecs().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-08 01:17:26 +00:00
Axel Dörfler
28d179274c Implemented time() - it still doesn't work, though, as real_time_clock()
is not yet implemented.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-08 01:16:35 +00:00
Axel Dörfler
6046623a99 Fixed broken Jamrule.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 01:39:33 +00:00
Axel Dörfler
8a09700174 Accidently killed the kernel build (again...).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 01:37:44 +00:00
Axel Dörfler
48a7b199b7 Added fcntl() empty stub implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 00:10:57 +00:00
Axel Dörfler
ea2aba5dc9 Fixed compilation with local changes (to be commited later).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 00:10:03 +00:00
Axel Dörfler
b86315d90a Removed NewOS error descriptions.
Replaced some descriptions with more appropriate ones.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-05 23:58:31 +00:00
Axel Dörfler
8529e01d1f Implemented strerror_r() - the actual error description is now returned
by a static function and used by both, strerror() and strerror_r().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-05 23:53:29 +00:00
Axel Dörfler
939f7fbaca Implemented the set_real_time_clock() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:29:29 +00:00
Axel Dörfler
2011bdf831 Fixed the set_real_time_clock() stub to expect an uint32 parameter as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:13:35 +00:00
Axel Dörfler
db82ec452b Corrected a comment to match the implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:39:03 +00:00
shatty
b89786b69e change to public resource.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-20 20:47:27 +00:00
Axel Dörfler
a7091d52fa Implemented PPC optimized byte order functions, and added them to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-13 00:02:54 +00:00
Axel Dörfler
a8ee1dbc56 Added Marcus version of __swap_int16(); it's commented out for now, though,
but we might want to add it later.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 12:23:03 +00:00
Axel Dörfler
d8018ea5b1 Fixed a build bug I introduced earlier.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 03:54:36 +00:00
Axel Dörfler
7cde8a9d7f Implemented __swap_int16/32/64() (float/double are missing right now, but should
be the same as __swap_int32/64()).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-07 17:22:15 +00:00
Axel Dörfler
c3b3abea79 some style cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-02 23:54:14 +00:00
beveloper
188b5de0bf renamed atomic_read() into atomic_get() (since we already have atomic_set(), but not a atomic_write())
renamed user_??? functions into the new _user_??? naming style.
changed implementation of PPC 64 bit atomic functions to use (un)lock_memory()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 01:21:56 +00:00
Axel Dörfler
d7ef3fc59c Now ignores the ending of ordered numbers (1st, 2nd, 3rd, ...).
Added the "week[s]" keyword to accept strings like "5 weeks", doesn't work
right yet in the "next/last week" case - that extra case should be added to
computeRelativeUnit().
Removed an unused variable.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-27 01:12:51 +00:00
Axel Dörfler
13e966c78e Big (and final for now) update to the code, it's now complete and working better
and faster than the R5 code as far as I have checked it.
Refactored the source a bit, it's now much clearer: divided the heavily overloaded
type field into type/unit/flags.
Introduced some new methods to track everything we have to to provide a
useful date in hopefully all cases.
Now supports using a dash to mark negative values as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 02:21:19 +00:00
Axel Dörfler
770108b448 Added alternate identifier strings (mostly abbreviations).
Mixed up comma/colon/semicolon in some stupid ways...
Fixed a bug that prevented weekday/month names to be matched correctly.
Temporarily enabled some debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-24 11:48:16 +00:00
Axel Dörfler
cb19965e13 Added an initial implementation of parsedate(), parsedate_etc(), get_dateformats(),
and set_dateformats().
It's not complete yet, but already quite useful.
Added a "d.m.y" to the R5 set of formats.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-23 18:32:09 +00:00
beveloper
5fe840b9b5 fixed address checking in ppc atomic functions.
fixed compilation on x86.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-21 23:36:06 +00:00
beveloper
50e0ce4bee Implemented new syscalls for 32 and 64 bit atomic operations.
They are only used if the architecture doesn't support them directly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-21 23:02:00 +00:00
beveloper
fb16941a02 added atomic_read
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-21 17:55:56 +00:00
beveloper
0163e36659 Added 32 bit atomic read.
Implemented all 64 bit atomic operations.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 23:21:26 +00:00
Axel Dörfler
2f096f5a3e Added/changed/fixed area syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 15:58:06 +00:00
beveloper
ea8af9630a renamed test_and_set into atomic_test_and_set
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:56:22 +00:00
beveloper
40ac5c5195 cvs server: Up-to-date check failed for `src/kernel/core/vm/vm.c'
cvs [server aborted]: correct above errors first!
cvs commit: saving log message in /tmp/cvsFPtfaj


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:48:15 +00:00
beveloper
6f54d569e9 added 64 bit atomic functions (implementation still pending),
removed non atomic functions from this file


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:19:42 +00:00
beveloper
a36eac86ac Removed system_time from atomic.S file and added it in a separate one.
The atomic and system_time function are now included in the kernel_os_arch_x86.o file


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:16:43 +00:00
beveloper
890b96d5c5 removed system_time from atomic.S file and added it in a separate one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:15:23 +00:00
Axel Dörfler
fe8a9052c0 Updated for the new BeOS compatible syscalls - create_area() is no longer
broken.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-19 14:20:06 +00:00
Axel Dörfler
beb1a1b992 Now uses the new BeOS compatible area calls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-19 14:18:30 +00:00
Axel Dörfler
f3514075a1 opendir() did not correctly set "errno" if sys_open_dir() failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-18 02:08:58 +00:00
shatty
84e10936b8 fixed implementation to match new posix/beos compatible prototype for tolower/toupper, also added isblank implementation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-16 07:14:04 +00:00
shatty
e9004ce2e9 include sys/param.h for MAXPATHLEN
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 08:11:16 +00:00
Axel Dörfler
9d67600e03 Forgot to complete the comment :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 13:40:37 +00:00
Axel Dörfler
af1cb3f2da Fixed strlcat(); the old version assumed to have "maxLength" (3rd parameter)
bytes space *after* the dest string in the copy loop.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 13:30:06 +00:00
Axel Dörfler
1792510380 Fixed the pipe creation and made it secure against very fast threads, as
suggested by Ingo.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-28 02:44:20 +00:00
Axel Dörfler
e59c643b47 Implemented the pipe() command - ready for the upcoming pipefs implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 02:55:15 +00:00
Axel Dörfler
dcec969499 get_driver_settings_string() now returns the new B_BUFFER_OVERFLOW code
if the buffer is too small for the settings string.
Added/changed some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 22:17:09 +00:00
Axel Dörfler
5133bded7f Fixed some warnings that occured with -Wall - the tests should be compiled
with this by default, like the whole project, too.
Removed the B_FILE_NAME_LENGTH definition, since our headers are now correct.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 19:56:33 +00:00
Axel Dörfler
b1b0cf9114 The '=' symbol can now be used without surrounding white space: it will
be accepted between the parameter name and its first value - but it will
be added to any other values for compatibility reasons.
put_string() now correctly quotes strings if needed - the new put_chars()
function puts out a string unchanged (both only used internally anyway).
Added some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 17:13:10 +00:00
Axel Dörfler
2c67210865 Added two more ToDo items so that I do not forget about them.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 21:14:27 +00:00
Axel Dörfler
1907b4d0ca Added libroot/os/driver_settings.c to the build - this is now also part
of the new kernel_os_main.o object file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:14:36 +00:00
Axel Dörfler
7fc8f0544e Fixed addition of empty parameters in certain situations.
Improved the output of get_driver_settings_string().
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:03:49 +00:00
Axel Dörfler
b959dda1b7 This replaces kernel/core/driver_settings.c - its functionality will now
be available to userland applications as well.
Furthermore, the API & grammar has been extended. There is now a '=' allowed
between the key and its values. Also, '\n' can now be replaced with ';'. These
changes allow flat driver_settings strings.
It doesn't work perfectly right now, but it's a start. A test application
will be added soon, the kernel file will be removed soon as well, and the
build updated.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 04:06:43 +00:00
Axel Dörfler
f3df767f76 Added a BeOS compatible strdup() implementation; unlike other strdup()
implementations (and against its standard behaviour), it does now
handle a NULL string parameter gracefully.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 19:35:33 +00:00
Axel Dörfler
0c6fce04e6 Removed the BSD strdup() routine since it is not BeOS compatible.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 19:34:03 +00:00
Axel Dörfler
db44cc624c Fixed a typo: don't use copy&paste...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-11 05:52:41 +00:00
Axel Dörfler
ed6b39346e Added dumb implementations for system_time() and TLS: system_time() currently
just returns the contents of the time base register, and the TLS implementation
is only working correctly for single threaded applications. Enough for testing,
at least.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-11 05:44:12 +00:00
Axel Dörfler
1f78a92b12 Implemented the atomic functions to get in touch with PPC assembly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-11 02:17:54 +00:00
Daniel Reinhold
cb25a0921b implemented tcsetattr()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 09:11:25 +00:00
Daniel Reinhold
15474ec36c added stubs for the termios speed control functions
they are stubs because the BeOS does not support them


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 08:06:33 +00:00
Daniel Reinhold
f291226628 initial implementation of ttyname()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 07:13:44 +00:00
Daniel Reinhold
789a8d2791 add termios to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 03:29:59 +00:00
Daniel Reinhold
d122daf52a initial support for termios in libroot
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 03:25:10 +00:00
Daniel Reinhold
953aa0fc95 fleshed out some tty stuff...
isatty() is fixed - altho this is basically academic since we don't have any
drivers for terminal devices written yet (but at least the code is ready when we do)

also, ctermid() is implemented - which is of no big consequence


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 00:53:22 +00:00
Axel Dörfler
64aebcff0e Added glibc's proprietary strchrnul() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:50:10 +00:00
Axel Dörfler
6e5e43433e atexit() is now thread-safe.
Now calls _IO_cleanup() instead of __cleanup() to be able to be compiled
against glibc stdio as well.
Renamed variables to be much nicer.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:47:56 +00:00
Axel Dörfler
f57208999e Renamed __cleanup() to _IO_cleanup() to be able to compile the glibc version
as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:40:53 +00:00
Axel Dörfler
2b64308b14 Removed an unused header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:39:26 +00:00
Axel Dörfler
80403b993b Fixed arch Jamfile to not use OBOS_TARGET_DIR any longer.
Added math-arch PPC files - general status: working but not optimized.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:38:58 +00:00
Axel Dörfler
a0c16735c9 Added a temporary isatty() implementation (just checks for the fd number for now).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:36:24 +00:00
Axel Dörfler
be3d86f793 Added empty Jamfile for the PPC build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:31:22 +00:00
Axel Dörfler
a8130cded6 exit() now calls _thread_do_exit_notification().
Note, this is incompatible with the BeOS behaviour, which didn't call
the hooks when you exit()ed a program.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 11:11:26 +00:00
Axel Dörfler
c1705065da Doh, forget to add the license and author information.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-20 18:51:55 +00:00
Axel Dörfler
74b016ecad Added a basic pthread_mutex and pthread_mutexattr implementation which
will come in handy for the glibc stuff - and is great for our libroot.so,
too.
Everything should work except for: pthread_mutexattr_(set|get)prioceiling/
protocol(). That might be added at a later time, though, I don't consider
it a high priority.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-20 18:48:54 +00:00
Axel Dörfler
8120de4558 Implemented on_exit_thread() notification, making use of the new second
thread argument.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-18 09:41:10 +00:00
Axel Dörfler
95fed0d3e1 Added the includes needed to build GNU's libio package. Tries to be glibc
compatible while cleaning them up and reflecting our standard header
locations a bit more.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-24 00:15:24 +00:00
Axel Dörfler
c387fbc54b Added Jamfile to build the libio part of glibc (for now).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-24 00:10:20 +00:00
Axel Dörfler
1d94abd7ae Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-24 00:07:36 +00:00
Axel Dörfler
38c6b242e6 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-24 00:03:53 +00:00
Axel Dörfler
523bdc7eca Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 23:59:15 +00:00
Axel Dörfler
d1c90ca8b2 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 23:57:50 +00:00
Axel Dörfler
000d24f681 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 23:49:22 +00:00
Axel Dörfler
26dade365a Added the _single_threaded global variable as it is needed by the std I/O
implementation in BeOS.
(spawn_thread() will change the value later, but that will come with the whole
stdio implemenation (as it would now print out a warning))


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-11 19:51:49 +00:00
Axel Dörfler
bdd1c86cbb Added a newline and made the B_ error codes more prominent (removing the POSIX
and NewOS error codes, kept the former as comments).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-11 19:49:58 +00:00
Ingo Weinhold
0598bd378f extended_partition_info::mounted_at is gone.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-08 00:40:48 +00:00
Ingo Weinhold
6342ffb32b Moved the implementation of the disk_scanner API out of the test code to the libroot sources, where it belongs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-02 22:47:24 +00:00
Axel Dörfler
4b2d22c03e Fixed userland snooze() implementation, snooze_etc() is now also exported (as
required by the Be API).
Removed all posix signal functionality from the kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 03:19:18 +00:00
Axel Dörfler
32a301820f Added node monitor syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-18 14:18:04 +00:00
Daniel Reinhold
d73534e172 added scanf() to stdio
(very curious that this was not already in there!)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-18 09:29:44 +00:00
Axel Dörfler
dd6f547c66 Moved "__progname" from startup code to libroot_init.c (because BeOS start_dyn.o
doesn't export it), initialization has also moved to initialize_before().
Added BeOS compatibility stubs to allow execution of BeOS native apps - added
comments to every function; some of them might be removed later on again.
Also moved "environ" to posix/stdlib/env.c for the same reason.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-13 10:50:14 +00:00
Axel Dörfler
e6e5ebbc10 Added a comment about the "non-thread-safety" of gStatus (dlerror()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-12 17:16:20 +00:00
Axel Dörfler
7dce97278f Implemented the unix dlfcn API; note, the RTLD_xxx modes are not yet supported
by the loader. dlerror() is not thread-safe.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-12 17:15:17 +00:00
Axel Dörfler
eadb1c453a Now calls the __init__image() initializer function.
INIT_BEFORE_CTORS() is now called initialize_before() to be compatible
with BeOS start_dyn.o.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-12 17:13:32 +00:00
Axel Dörfler
f9f3e26e3c Implemented the complete BeOS image API, added kernel image API syscalls,
added it to the build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-12 17:11:53 +00:00