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