Axel Dörfler
ffc27ddbe7
fs_mount_volume() changed the order of arguments to be more intuitive.
...
Removed the fs_initialize_volume() function, as it's probably not going
to be needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-01 01:03:04 +00:00
Axel Dörfler
2c4f728f7e
Added our preliminary mount replacements.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-28 17:00:29 +00:00
Ingo Weinhold
534145b30c
Flags are now passed to _kern_mount().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-27 21:44:05 +00:00
Axel Dörfler
f048d50953
Padding was broken for strings and characters since the move to vsnprintf().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-27 12:47:16 +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
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
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
Axel Dörfler
3a459a1998
The internally used copy_arguments() accidently left out the first argument.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-07 14:42:25 +00:00
Axel Dörfler
44fbee8356
We already have strncasecmp(), and we don't need strnicmp().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-06 00:36:17 +00:00
Axel Dörfler
3451283511
Minor cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-06 00:14:41 +00:00
Axel Dörfler
d590ff3d36
We now have a working fcntl() function.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-05 13:40:13 +00:00
Axel Dörfler
ae1b76c11e
I didn't like the BeOS field names, but I forgot them in the comments.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-05 13:18:48 +00:00
Axel Dörfler
3db167c4d2
%ebp was not saved which resulted in a crash on longjmp().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-05 13:15:41 +00:00
Axel Dörfler
a4611f9d2b
The BSD setjmp() implementation was not at all BeOS compatible. This one
...
is now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-05 13:08:03 +00:00
Philippe Houdoin
a889bb181d
Add thread-safe strtok_r() function.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-04 23:44:15 +00:00
Axel Dörfler
af069b1a47
isatty() and ctermid() now actually work correctly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 01:51:01 +00:00
Axel Dörfler
14d1496a7f
sysconf(), pathconf(), and fpathconf() now at least do marginally useful things.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-24 00:16:51 +00:00
Axel Dörfler
2f524aed3a
Reworked some TTY support functions. Added tcgetattr() function.
...
tcsendbreak() now ignores the "duration" parameter.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:52:36 +00:00
Axel Dörfler
98ac7a9709
Removed the termios subdirectory; it's replaced by posix/termios.c.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:49:53 +00:00
Axel Dörfler
2627eeff81
Joined the former termios/termios.c and termios/tcsetattr.c together to termios.c.
...
Added it to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:45:03 +00:00
Axel Dörfler
fbb0ac2170
fork() now at least calls _kern_fork(), but would not even be complete
...
if that one worked.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:48:28 +00:00
Axel Dörfler
f845dd4e4f
Implemented userland part of execve().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:46:56 +00:00
Axel Dörfler
25258635f7
Implemented waitpid() a bit more; it now calls the _kern_wait_for_child() syscall.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:44:06 +00:00
Axel Dörfler
ac50932dae
Moved the getopt() functionality from the getopt/ subdir to the new
...
extensions/ directory - which will contain glibc specific additions
to the POSIX standard (getopt() is here because of getopt_long() etc.).
Also added obstack functions.
Added wcsmbs to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:23:08 +00:00
Axel Dörfler
0dffa6c281
It's now allowed to use wchar_t - it doesn't hurt anymore :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:21:19 +00:00
Axel Dörfler
5e4171c975
Made a minimum subset build - mbrtowc() is currently a hack to make it work...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:20:03 +00:00
Axel Dörfler
f8cbad7b3e
Implemented readdir_r().
...
Added note to dirfd() that it should be excluded from the kernel build
once the build system allows this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 23:10:29 +00:00
Axel Dörfler
ad21930ee8
Now exports the fflush_unlocked() symbol as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 23:02:44 +00:00
Axel Dörfler
316c0c3139
Added the dirent functions to the kernel as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:46:42 +00:00
Axel Dörfler
3901fa14bf
Moved dirent.h functions from unistd/directory.c to new dirent.c file.
...
Added dirfd() call for BeOS compatibility.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:10:43 +00:00
Axel Dörfler
8141b62d5e
Removed our old getopt.c - we're now using the one from glibc.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:44:59 +00:00
Axel Dörfler
05cd7f3a98
Make it build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:41:46 +00:00
Axel Dörfler
ee3f1543b0
Added glibc's getopt() implementation for better compatibility with BeOS.
...
This normally resides in the posix/ directory in the glibc source repository.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:39:26 +00:00
Axel Dörfler
8bc22ef101
Error messages are now directed to stderr rather than stdout.
...
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:19:50 +00:00
Ingo Weinhold
4ccf7da8d5
Added provisional implementation of system(). Requires a shell to be
...
available at /bin/sh (a symlink will do). Unfortunately there's some
problem with our shell that causes it to crash in most cases. :-(
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 17:41:34 +00:00
Axel Dörfler
327981c3d8
Now includes arch_config.h instead of arch_cpu.h (because the info contained therein has moved).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 15:20:37 +00:00
Axel Dörfler
39536410a6
Added dumb group functions - they only know one group: "users" (should be pretty similar to R5).
...
Implemented and added functions from inttypes.h (not everything is working correctly, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:03:01 +00:00
Axel Dörfler
929525b836
Implemented wait() using waitpid() following the POSIX spec.
...
Added some more debug output for waitpid().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:01:02 +00:00
Axel Dörfler
a52018b53b
dev_for_path() should resolve symlinks.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:41:20 +00:00
Axel Dörfler
d3fe452749
A Jamfile for posix/arch.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:40:06 +00:00
Axel Dörfler
9d91354201
Added empty setlocale() call, just to export it.
...
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:39:01 +00:00
Axel Dörfler
f283d6c99e
Added dummy strcoll() function.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:37:38 +00:00
Axel Dörfler
1676c18192
Added BSD style bcopy/bzero() functions to the build again - BeOS bash
...
uses them, too, and maybe others as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:35:20 +00:00
Axel Dörfler
7800e87a5a
Added kill() implementation, user part of sigprocmask() now works.
...
Renamed syscalls.
Cleaned up files.
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:06:27 +00:00