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
Axel Dörfler
532544a9a1
Added mktemp() and friends from FreeBSD - calls not part of the POSIX specs
...
are currently disabled.
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 12:04:21 +00:00
Axel Dörfler
5be3370fe7
Added implementations of alarm() and ualarm() based on setitimer() (which doesn't
...
work yet correctly).
Added empty sbrk() for now - not sure what to do with this. Maybe we should remove
it completely (but BeOS bash needs it).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 12:00:00 +00:00
Axel Dörfler
d21f25079b
Added missing function tzset() - doesn't do a lot yet, though. The source
...
file also contains the tzname symbol.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:28:25 +00:00
Axel Dörfler
f84671c1ca
Added empty PPC jamfile - there are no arch dependent things yet for PPC.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:23:08 +00:00
Axel Dörfler
7be5564a86
Added setjmp(), sigsetjmp(), and friends from FreeBSD.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:21:54 +00:00
Axel Dörfler
6914fa8c77
Removed rlimit.c - we now have one in sys/ where it belongs to.
...
Added new "arch" subdirectory to the build.
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:18:36 +00:00
Axel Dörfler
866a87e2b5
Added several missing functions - some of them work, some of them don't.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:14:12 +00:00
Ingo Weinhold
383cdedbd2
Several follow-up changes required by the changes either to the VFS
...
syscalls or to the syscall mechanism (which exposed naming and parameter
inconsistencies).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:45:00 +00:00
Ingo Weinhold
c46de31dea
Renamed fs_query.c to fs_query.cpp and implemented the function. They don't work yet as the kernel part is not implemented yet.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:36:53 +00:00
Ingo Weinhold
6fec58934a
We automatically generate what information are available from syscalls.h,
...
which from now on relieves us from the duty to maintain syscalls.S and
syscalls.c manually. Either includes a generated file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:34:43 +00:00
Oliver Tappe
c7000cc7b3
- fixed some issues when compiling with gcc-2.95.3. At least three more
...
problems remain, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-21 08:55:12 +00:00
Axel Dörfler
f947748c74
Fixed wrong function export that made every app crash on exit...
...
Renamed static variables to have the 's' prefix.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-13 18:36:54 +00:00
Axel Dörfler
9050d1ee48
Changed the way the kernel libroot objects are built; we are no longer
...
reusing the standard libroot objects, but build them all again to make
sure they are compiled with the proper flags (i.e. -fno-pic).
That saves a lot of headaches: as a side effect, the kernel runs fine
again, and even the node monitor test works nicely now. Go figure.
Only the string functions remain separate, but that should be changed
as well one day (it's not problematic, right now).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-10 12:46:19 +00:00
Axel Dörfler
b42cb57bba
Added some casts and removed the static *_internal variables.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-10 12:19:23 +00:00
Axel Dörfler
899141ba19
Added syscall for _kern_next_device().
...
fs_stat_dev() and next_dev() should now work.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 16:10:25 +00:00
Axel Dörfler
3ed05ce147
Added empty __printf_fp() to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:54:48 +00:00
Axel Dörfler
34fa6b663f
Added empty stub implementations of wait(), waitpid(), and waitid().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:44:43 +00:00
Axel Dörfler
d871284db8
Added iopopen.c to the build and make it compile properly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:31:02 +00:00
Axel Dörfler
aa1ea490d0
Implemented _exit().
...
Added empty implementations of fork() and all the exec*() variants; the
latter currently all call execve() and may pass the correct parameters
(not tested).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:28:22 +00:00
Axel Dörfler
007a64beef
Added empty implementation of sigprocmask() to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:22:50 +00:00
Axel Dörfler
ead2658b25
Implemented BeOS compatible ctype functions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-06 00:30:37 +00:00
Axel Dörfler
21f50dd07d
Added non-working version of strftime().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 23:09:59 +00:00
Axel Dörfler
c1b52847e2
Added a difftime() implementation (for 32 bit time_t).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 22:52:25 +00:00
Axel Dörfler
0718113e06
Added gmtime() and exported the timezone variable for now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 22:45:56 +00:00
Axel Dörfler
efcd87fced
Added parsedate() to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 22:44:55 +00:00
Axel Dörfler
41b2bdc260
Added working ctime() to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 22:43:39 +00:00
Axel Dörfler
f5a134ac42
Added empty and non-working versions of mktime() and localtime(). BSD code
...
is not in a good shape, Linux code is pretty ugly - we'll see which one
we'll choose :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 22:23:25 +00:00
Axel Dörfler
bc8ea5f145
Removed empty stubs already exported by libgcc.a (was needed to link properly before).
...
Added more global variables that are maintained by the BeOS startup code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 18:47:54 +00:00
Axel Dörfler
9acf941f15
Added syscalls for write/read fs info.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 18:28:31 +00:00