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
Axel Dörfler
dd8e42a8b4
Also changed the (void *) to (void **) variable in tls_address() here
...
(the same change has already been done in support/TLS.h).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-08 09:14:16 +00:00
Axel Dörfler
ccfdaba3e9
Moved the errnop() function to the new TLS stuff.
...
We now have a separate errnop() for the kernel, which just references
a field in the thread structure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-07 09:08:44 +00:00
Axel Dörfler
2d6ab447f9
Moved arch-dependent stuff to the correct location, no more #if __INTEL__
...
anymore.
Adapted tls.c to honour the reserved slots.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-07 09:05:27 +00:00
Axel Dörfler
831e32af8c
Userland part of the TLS implementation for x86.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-06 08:05:09 +00:00
ejakowatz
b6b5037ebe
Added a *lot* of error strings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-18 07:34:58 +00:00
Axel Dörfler
edd97f84ad
Fixed return code (using errno) of readdir().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:47:01 +00:00
Axel Dörfler
fe8ba34097
Removed raise.o from the kernel posix lib, because find_thread() is currently
...
missing there.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 02:15:29 +00:00
Daniel Reinhold
ca60e89ab7
replaced syscall with find_thread(NULL) to obtain current thread id
...
currently, find_thread(NULL) also uses a syscall, but in the future,
this will be implemented as an efficient inline lookup in calling
thread's local storage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-19 20:57:55 +00:00
Daniel Reinhold
d3aaf99b1e
ok, the second time's a charm
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 07:47:53 +00:00
Daniel Reinhold
88a621e159
call to raise() un-commented now that raise() is implemented
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 07:45:26 +00:00
Daniel Reinhold
e8b75a376a
sigset stuff added to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 07:36:22 +00:00
Daniel Reinhold
f30083eaa8
initial checkin
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 07:35:55 +00:00
Daniel Reinhold
eb64dfc217
more functions added to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 02:39:44 +00:00
Daniel Reinhold
ae130fe5c1
another one
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 02:33:38 +00:00
Daniel Reinhold
7f04740599
added sigaction()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 02:29:57 +00:00
Daniel Reinhold
274dff2fe0
added raise() and signal()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 02:24:28 +00:00
Daniel Reinhold
68e8d1f65e
libroot/posix/signal is back in the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 00:42:48 +00:00
Daniel Reinhold
453532db1c
moved the string table definition to libroot where it belonged
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 00:39:41 +00:00
Daniel Reinhold
03a21dd59a
removed libroot/posix/signal from the build temporarily
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-17 11:49:35 +00:00
Daniel Reinhold
ead782086a
the beginnings of signal support in libroot
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-17 05:04:08 +00:00
Axel Dörfler
d3243d719b
Added an empty time() implementation (just returns zero) to let the kernel
...
build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 17:43:28 +00:00
Axel Dörfler
6c45733119
The traps of copy & paste - this time it should really work...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 22:52:49 +00:00
Axel Dörfler
90b31eb333
Before starting to implement a function, you should know what to do ;-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 22:48:14 +00:00
Axel Dörfler
0dd93a6eb7
Implemented utime().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 22:44:08 +00:00
Ingo Weinhold
8a425955c5
The header is now compatible with R5's libroot.so.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 17:37:55 +00:00
Axel Dörfler
2a86e17450
Added a missing "lock" in atomic_set().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 01:05:28 +00:00
Axel Dörfler
e729eba84d
Merged several object files together - there are now posix_xxx.o and
...
kernel_posix_xxx.o, where xxx stands for stdio/stdlib/unistd/...
sleep.c and usleep.c no longer reference sys_() calls directly, but
call the OS functions instead (snooze_until(), and system_time()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-04 18:49:49 +00:00
Axel Dörfler
66ebd69087
Added select.c to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-03 17:39:33 +00:00
Axel Dörfler
02e25990ee
Add poll.c to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-03 17:39:10 +00:00
Axel Dörfler
c852811405
Added syscalls for select/poll.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-03 03:23:50 +00:00
Axel Dörfler
90b544f75f
Forgot to remove the const from the strerror implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-02 02:52:56 +00:00
lillo
5e7d6a17a0
Enabled the single ordered queue scheduler and made some little fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-31 13:20:00 +00:00
Axel Dörfler
dbf1da160b
Userland implementations for select(), pselect(), and poll().
...
Not yet added to the build because other stuff is missing, and there is
a problem with jam I have to sort out before I add the missing things.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 02:33:16 +00:00
lillo
f2bc61304f
replaced sys_kill with general thread-aimed sys_send_signal; cleaned up
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 20:38:16 +00:00
lillo
a2117f0bc7
reworked snooze to work in function of the newly added (and kernel exported) snooze_etc. Activated libroot counterpart(s).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 12:06:40 +00:00
Daniel Reinhold
79362df9f7
added macros PI and PI2, and fixed previous (invalid) references to these
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 01:36:45 +00:00
Daniel Reinhold
952977a190
initial locale support
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 21:41:49 +00:00
Daniel Reinhold
4555e63fe4
fixed typo
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 21:35:26 +00:00
Daniel Reinhold
568244c42e
added strtod() and atof() to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 21:31:56 +00:00
Daniel Reinhold
21d3063840
initial checkin
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 21:23:22 +00:00
Daniel Reinhold
0029fd4b09
hmmm... need to learn how to alphabetize ;-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 21:16:55 +00:00
Daniel Reinhold
c4b1aad976
updated files to use the new private libroot include directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 20:39:16 +00:00
Daniel Reinhold
5a1e90ba77
defines an internal global variable required for linking
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 20:38:10 +00:00
Daniel Reinhold
1c7200419b
changed to wrappers for strtol(), etc.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 19:11:18 +00:00
Axel Dörfler
a86569deee
There were two positions where I had to change those values. %lld and %Ld
...
should now finally work (thanks to Marcus).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 00:59:16 +00:00
Axel Dörfler
4d78ef5224
Added %Ld to vfscanf() as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 00:52:17 +00:00
Axel Dörfler
38903f032b
Fixed %Ld handling to be int64 as it is on BeOS.
...
%lld is now int64 as well.
Cleaned up a little bit (removed K&R style prototypes).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 00:48:50 +00:00
Axel Dörfler
13bbbc9ac4
Add strtod.c to the build (from FreeBSD).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 00:33:09 +00:00
Axel Dörfler
25c7a73eed
Fixed vfscanf() which needed strtoq(), and strtouq().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 00:10:49 +00:00
Axel Dörfler
deab46426d
Added implementation for strtol(), strtoul(), strtoll(), strtoull() from
...
FreeBSD sources.
Added llabs() (and a newline at the end of the file).
Fixed qsort.c and removed the unneeded FreeBSD header - min() wasn't declared.
Added the string conversion stuff to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 00:09:39 +00:00
Axel Dörfler
a8cd036239
Removed strtoq()/strtouq() from the build (both are deprecated functions, and
...
not available in BeOS, so there is no reason to add them).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 22:45:23 +00:00
lillo
9870ddcea7
kill now sends the signal to the main thread of a process only. To target a specific thread use the new send_signal syscall. Also added set_alarm.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 22:36:08 +00:00
Daniel Reinhold
9a43926970
removed extra declarations now that stdlib.h is fixed
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 19:25:50 +00:00
Daniel Reinhold
4b28d29d28
type fix: replaced a couple of longs with ints (as they should be)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 11:32:38 +00:00
Daniel Reinhold
afaca44046
type fix: replaced int type with proper wchar_t type for several functions (tsk, tsk, tsk)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 11:23:30 +00:00
Daniel Reinhold
3b5b78dee6
type fix: replaced int type with proper wchar_t type for variable passed to mbtowc()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 11:21:50 +00:00
Daniel Reinhold
cd6a80d8c9
several additions to libroot:
...
added abs.c (abs, labs)
added div.c (div, ldiv)
added abort() to exit.c
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-24 20:05:09 +00:00
lillo
f510e6ce60
posix signals support, 1st pass
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 17:31:10 +00:00
Daniel Reinhold
997a2a4349
added exit() to stdlib
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 07:27:19 +00:00
Daniel Reinhold
b52ed331f1
implemented the get_cpuid() function in libroot and added a new kernel app 'cpuinfo'
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-20 04:04:03 +00:00
Axel Dörfler
64b00573d2
Added implementation of the functions in fs_index.h.
...
Commented system_time() in time.c - it's already implemented in atomic.S (not
that it would belong there).
Fixed linking of rewind.c
Added syscalls for the index functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 19:30:59 +00:00
Axel Dörfler
b7c42fadf7
Fixed fd lead in opendir() and set errno correctly if memory is out.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 19:27:03 +00:00
Axel Dörfler
69b81fcc90
Fixes the not POSIX style return codes - fs_*() functions return -1 and set
...
errno if an error occurs; they don't return the error status directly.
Also fixed a fd leak in fs_open_attr_dir().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 19:22:04 +00:00
Axel Dörfler
f4e51a2dfb
Added a new write_stat() call to the file descriptor operations (plus syscall).
...
Renamed sys_read_stat() to sys_read_path_stat() - sys_read_stat() is now
the fd operation (same for the corresponding write call).
Removed the sys_write_attr_stat() call because it is no longer needed.
Added stat(), fstat(), and other POSIX calls to the kernel - many are still
missing (mainly from stdio).
Added symbols (but no implementation) for unistd.h's process id functions.
Adapted libroot calls that used sys_read_stat() before to the new architecture.
module.c and bus_man.c now use stat() directly instead of the sys_read_path_stat()
call.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 03:09:25 +00:00
Axel Dörfler
b4dabf6063
Implemented all calls in fs_attr.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-16 16:14:14 +00:00
Axel Dörfler
511a61e038
Added BSD's glob & fnmatch implementation (disabled collation stuff).
...
Added symbol exports for the user/group ID functions, and [sg]ethostname(),
although those are not yet implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 23:51:35 +00:00
Axel Dörfler
e195c3e79e
Added some files that we probably won't need for a while...
...
(syscalls.inc for other platforms)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 18:09:26 +00:00
Axel Dörfler
238576af81
Moved the syscalls.S file to the os/ subdirectory (better fits in there).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 17:33:22 +00:00
Axel Dörfler
bc45af205c
Added all former libc/libm files to the libroot/posix directory.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 17:13:32 +00:00
Axel Dörfler
712ec3d786
Added libroot's os/ tree.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 17:07:03 +00:00
Axel Dörfler
d98c8e6e59
Removed some no longer needed files.
...
Added new libroot_init (same as libc/nulibc_init.c before).
Updated the Jamfile for the new architecture.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 17:04:37 +00:00
Axel Dörfler
f200ef51c2
Fixed status_t/int/int32 issues.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 02:58:03 +00:00
beveloper
90abd04b34
Change int into status_t, and other changes for better BeOS type compatiblitly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 02:19:22 +00:00
lillo
615a79cc3c
Implemented send_data/receive_data/has_data thread syscalls
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:28:39 +00:00
lillo
854c31f835
finished implementing get_thread_info, get_next_thread_info, get_team_info, get_next_team_info. New ps command behaving like the BeOS one is here, but doesn't work as libroot seems to crash when loaded at process startup... :/
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-04 02:04:37 +00:00
lillo
3cfbecf1a6
First round of big changes: the term team has replaced proc all over the kernel, the few kern_* syscalls have been renamed to sys_* for consistency, and other small changes. The ps app is temporarily disabled until get_next_team_info is implemented.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 00:41:27 +00:00
Ingo Weinhold
54f76689cb
Adjusted the SubDir and SubInclude parameters.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@15 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 20:15:44 +00:00
ejakowatz
52a3801208
It is accomplished ...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00