Commit Graph

323 Commits

Author SHA1 Message Date
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
Axel Dörfler
27cbcfb000 Added missing load_image() call - does not work yet, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 18:01:24 +00:00
Axel Dörfler
c17a1f18a5 Added working sync() and fsync() calls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 17:55:13 +00:00
Axel Dörfler
fa310b3a35 Added _kern_dir_node_ref_to_path().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 18:47:11 +00:00
Axel Dörfler
056f3c62e3 Now exports the __strtoXX_internal() functions from glibc, too - some
apps are using those.
Their implementation is currently not complete; they just call the
public functions, the group argument is ignored.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 17:54:40 +00:00
Axel Dörfler
f88314cbfc syscalls.h includes a little less than before...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 02:36:09 +00:00
Axel Dörfler
20e40af982 syscalls.h now includes less than before.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 02:34:36 +00:00
Axel Dörfler
806586a704 Fixed compilation due to recent header changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 01:55:04 +00:00
Axel Dörfler
1084b3fc17 It's now _kern_null(), not sys_null() anymore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 01:53:36 +00:00
Axel Dörfler
e54c578346 Made the debugger() call a bit more useful - this is still no real implementation, of course.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-30 02:59:44 +00:00
Axel Dörfler
176a4ebc28 Added a proper assert() implementation, removed the old one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-30 02:39:29 +00:00
Axel Dörfler
f004b0c15e Renamed image and node monitor syscalls to the new scheme.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 20:19:48 +00:00
Axel Dörfler
5ab2a9e4b4 Added missing functions from fs_query.h and fs_info.h, both not yet implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 12:36:13 +00:00
Axel Dörfler
e5948ee29a Resurrected posix_stdio.o: it now contains additional stdio functions not
covered by glibc's libio/stdio.
Added rename() and remove().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 12:27:39 +00:00
Axel Dörfler
b640ca789b Renamed VFS syscalls to the new style.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-15 15:49:34 +00:00
Axel Dörfler
b1753651c6 Renamed VFS syscalls to the new style.
Improved returned types.
Removed dup2.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-15 15:42:17 +00:00
Axel Dörfler
143691ef36 New dup.c - it now contains dup() and dup2() which makes dup2.c legacy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-15 15:20:38 +00:00
beveloper
20c1edc7d0 fixed warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-12 21:53:07 +00:00
Axel Dörfler
9b1718cc6c Fixed number()/snprintf(): the buffer length was completely ignored when
printing numbers.
Removed unused code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-10 05:27:48 +00:00
Axel Dörfler
39f34cf425 Fixed the broken ioctl() function. Unlike BeOS, it also passes the
eventually specified length parameter.
The IOCPARM_LEN() macro should be used by the device/file system
implementation only if applicable.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 05:53:35 +00:00
Axel Dörfler
0865e4b204 Added syscall for rename_thread(), courtesy of Jack Burton.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-24 12:12:58 +00:00
Axel Dörfler
20b8926754 The -imacro header inclusion is no longer necessary, and also seems to have
been removed in more current GCC releases; thanks to Jack Burton for pointing
this out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-14 15:28:49 +00:00
Axel Dörfler
f4c303c472 Fixed some warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:56:48 +00:00
Axel Dörfler
d93e356b51 Changed the "stat" related syscalls to have an additional parameter that specified
the size of the stat structure to allow extensions of that structure.
Renamed those syscalls to the new naming scheme.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:36:05 +00:00
Axel Dörfler
5685273f87 Now maintains the private libroot variable "_single_threaded".
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 12:44:12 +00:00
Axel Dörfler
e304a7fd39 Minor cleanup, no longer includes BSD's stdio/local.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 12:32:12 +00:00
Axel Dörfler
ee70fb4fed Added glibc stuff to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 12:27:14 +00:00
Axel Dörfler
0490efc6ff No longer compiles the BSD stdio files (we're using GNU's stdio now for compatibility).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 12:18:05 +00:00
Axel Dörfler
003be99349 Added missing header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 09:21:58 +00:00
Axel Dörfler
cda9457af2 Enable the stdio-common path.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-03 08:54:27 +00:00
Axel Dörfler
b166160684 Our BSD stdio now has snprintf(), too, sorry for the inconvenience.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-02 23:36:03 +00:00
Axel Dörfler
1802569c68 Removed the amount of warnings we get.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:53:59 +00:00
Axel Dörfler
9e2f757a6b Unbuffered stdin/stdout the hard way - I'd guess this should be set to
buffered and determined at runtime if not (i.e. via isatty()) - but that
doesn't seem work at this time.
Must revisit later on!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:52:55 +00:00
Axel Dörfler
d68b82804a Removed definition of internal_function - unfortunately, I don't remember why I did that, but lets hope for the best.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:51:09 +00:00
Axel Dörfler
0bc86489bb Separated removed (via preprocessor) sections.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:49:46 +00:00
Axel Dörfler
3e9b495a0d Added the real stdio_lim.h contents.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:48:29 +00:00
Axel Dörfler
bb72477637 Sure it can be compiled without optimizations...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:47:22 +00:00
Axel Dörfler
83375f1002 Removed unneeded exports.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 23:46:14 +00:00
Axel Dörfler
86f34490f8 Simple R5 style pwd function implementation, courtesy of Eli Green.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 18:08:20 +00:00
Axel Dörfler
192f207c78 Absolutely didn't like negative values for tm_wday and tm_mon before.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 00:50:01 +00:00
Axel Dörfler
50b3e5d4ce Implemented asctime() and asctime_r().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 00:42:05 +00:00
Axel Dörfler
374d175555 Don't hide a possibly buggy caller.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 00:12:08 +00:00
Axel Dörfler
e08a79330a Renamed systeminfo.c into system_info.c
Added syscall for _kern_get_system_info().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-21 22:41:00 +00:00
Axel Dörfler
8fa03f6c41 Added a ToDo comment about how to correctly implement get_cpuid().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 13:02:49 +00:00
Axel Dörfler
f7f6185398 A bit more BeOS compatible math.h functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-13 18:48:55 +00:00
Axel Dörfler
39622c6739 sys_get_current_thread_id() is no more.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:10:08 +00:00
Axel Dörfler
5be410a7cd Renamed thread/team syscalls to new scheme.
Tuned the license a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:09:17 +00:00
Axel Dörfler
a16600d146 Renamed thread/team syscalls to new scheme.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:08:27 +00:00
Axel Dörfler
6f2229385e Renamed thread/team syscalls to new scheme.
read_data(), has_data(), and receive_data() are no longer exported
by this file, but their _kern_*() equivalents are now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:07:21 +00:00
Axel Dörfler
ade669abd7 Renamed thread/team syscalls to new scheme.
Added commented out wait_for_team() which we might want to have in the
final version, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:06:23 +00:00
Axel Dörfler
3dbf98a59a Renamed thread/team syscalls to new scheme.
find_thread() is now correct.
Moved send_data(), has_data(), and receive_data() back into this file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:05:13 +00:00
Axel Dörfler
57ffd61845 _kfind_thread_() is now correctly implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:03:31 +00:00
Axel Dörfler
e9a4e838e8 Added missing vsnprintf() for BSD stdio.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-20 16:00:51 +00:00
Axel Dörfler
65a98eb199 Hacks to get glibc's stdio-common working.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-24 19:59:26 +00:00
Axel Dörfler
348820b57c Hacks to let it compile: disabled/removed wide character stuff, disabled
floating-point output.
Unfortunately, I needed to change the identation etc. to find my way through
it. Could resist to rewrite it completely, though :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-24 19:24:21 +00:00
Axel Dörfler
0bcee3c93c Hacks to let it compile. Disabled wide character stuff *and* all number
conversions since they rely on private glibc functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-24 19:20:57 +00:00
Axel Dörfler
bc659826df t[e]mpnam() stuff now works.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 18:25:02 +00:00
Axel Dörfler
cc9c5de901 Small changes to let it compile.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 18:23:17 +00:00
Axel Dörfler
290ba80867 Hacks to get the libio package working:
- all wide character functions have been disabled or removed
- ftrylockfile() does not yet work
- reformatted code to be readable (sometimes needed for changes)

Note, this code is not able to be simply updated with newer glibc releases! Sorry.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 17:01:42 +00:00
Axel Dörfler
1bed4dd008 No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 16:45:03 +00:00
Axel Dörfler
545237514a We really only allow 0x7fffffff maximum characters, so we now mask out
everything above (not even in an intelligent way).
Now accepts zero bufferSize and NULL buffer - although it should probably
not catch the latter...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 04:12:29 +00:00
Axel Dörfler
c29da59747 Moved number() closer to vsnprintf() because it'll need the put_*() functions
once it's fixed.
Renamed some variables.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 04:02:59 +00:00
Axel Dörfler
ac3863db5e About to move vsprintf() over to vsnprintf() which is more secure since
it allows to specify the buffer size. Not yet finished; number() has to
be fixed - tests have to be written as well.
Implemented snprintf() and vsprintf() using vsnprintf().
Some smaller cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 03:54:14 +00:00
Axel Dörfler
9672de86ce Renamed kvsprintf.c to kernel_vsprintf.c to make it more salient.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 03:05:02 +00:00
Axel Dörfler
497c0bf9c1 Removed unneeded file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 02:39:36 +00:00
Axel Dörfler
51d951ad00 Added glib'c temp. path creation routines to stdio-common (the only place
where they are actually used).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 15:21:38 +00:00
Axel Dörfler
76e34f86e5 Not needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 15:19:53 +00:00
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