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
Axel Dörfler
c094c0c22b
Added a comment about a missing dump of the message to stderr if write_port()
...
fails.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:55:04 +00:00
Axel Dörfler
87a98412a1
Now correctly differentiates between options and priority/facilities.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:34:12 +00:00
Axel Dörfler
fb4dcd08dc
Now checks in the argument's options as well for LOG_CONS.
...
The LOG_MASK() macro is now used correctly.
The non-standard LOG_PERROR is always visible in stderr as well (in BeOS,
so we copied it). Added a newline for stderr output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:11:50 +00:00
Axel Dörfler
9ff210a134
Use the SYSLOG_PORT_NAME constant instead of the name directly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 15:14:48 +00:00
Axel Dörfler
41c6e8cc55
Fixed the setlogmask*() functions; the priority mask is only set if the
...
parameter is not 0, and it returns the old mask as well.
Also fixed the initial log mask for the team context; it's now set to -1
(enable all priorities) by default.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:44:31 +00:00
Axel Dörfler
3b737adbda
Implemented the POSIX syslog API including the BeOS extensions. In BeOS,
...
this API is found in libbe.so, in OpenBeOS, it's directly in libroot.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:35:22 +00:00
Axel Dörfler
eb04c7678e
Added and implemented gettimeofday() using real_time_clock_usecs().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-08 01:17:26 +00:00
Axel Dörfler
28d179274c
Implemented time() - it still doesn't work, though, as real_time_clock()
...
is not yet implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-08 01:16:35 +00:00
Axel Dörfler
6046623a99
Fixed broken Jamrule.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 01:39:33 +00:00
Axel Dörfler
8a09700174
Accidently killed the kernel build (again...).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 01:37:44 +00:00
Axel Dörfler
48a7b199b7
Added fcntl() empty stub implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 00:10:57 +00:00
Axel Dörfler
ea2aba5dc9
Fixed compilation with local changes (to be commited later).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-06 00:10:03 +00:00
Axel Dörfler
b86315d90a
Removed NewOS error descriptions.
...
Replaced some descriptions with more appropriate ones.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-05 23:58:31 +00:00
Axel Dörfler
8529e01d1f
Implemented strerror_r() - the actual error description is now returned
...
by a static function and used by both, strerror() and strerror_r().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-05 23:53:29 +00:00
Axel Dörfler
939f7fbaca
Implemented the set_real_time_clock() syscall.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:29:29 +00:00
Axel Dörfler
2011bdf831
Fixed the set_real_time_clock() stub to expect an uint32 parameter as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:13:35 +00:00
Axel Dörfler
db82ec452b
Corrected a comment to match the implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 01:39:03 +00:00
shatty
b89786b69e
change to public resource.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-20 20:47:27 +00:00
Axel Dörfler
a7091d52fa
Implemented PPC optimized byte order functions, and added them to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-13 00:02:54 +00:00
Axel Dörfler
a8ee1dbc56
Added Marcus version of __swap_int16(); it's commented out for now, though,
...
but we might want to add it later.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 12:23:03 +00:00
Axel Dörfler
d8018ea5b1
Fixed a build bug I introduced earlier.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 03:54:36 +00:00
Axel Dörfler
7cde8a9d7f
Implemented __swap_int16/32/64() (float/double are missing right now, but should
...
be the same as __swap_int32/64()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-07 17:22:15 +00:00
Axel Dörfler
c3b3abea79
some style cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-02 23:54:14 +00:00
beveloper
188b5de0bf
renamed atomic_read() into atomic_get() (since we already have atomic_set(), but not a atomic_write())
...
renamed user_??? functions into the new _user_??? naming style.
changed implementation of PPC 64 bit atomic functions to use (un)lock_memory()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 01:21:56 +00:00
Axel Dörfler
d7ef3fc59c
Now ignores the ending of ordered numbers (1st, 2nd, 3rd, ...).
...
Added the "week[s]" keyword to accept strings like "5 weeks", doesn't work
right yet in the "next/last week" case - that extra case should be added to
computeRelativeUnit().
Removed an unused variable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-27 01:12:51 +00:00
Axel Dörfler
13e966c78e
Big (and final for now) update to the code, it's now complete and working better
...
and faster than the R5 code as far as I have checked it.
Refactored the source a bit, it's now much clearer: divided the heavily overloaded
type field into type/unit/flags.
Introduced some new methods to track everything we have to to provide a
useful date in hopefully all cases.
Now supports using a dash to mark negative values as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 02:21:19 +00:00
Axel Dörfler
770108b448
Added alternate identifier strings (mostly abbreviations).
...
Mixed up comma/colon/semicolon in some stupid ways...
Fixed a bug that prevented weekday/month names to be matched correctly.
Temporarily enabled some debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-24 11:48:16 +00:00
Axel Dörfler
cb19965e13
Added an initial implementation of parsedate(), parsedate_etc(), get_dateformats(),
...
and set_dateformats().
It's not complete yet, but already quite useful.
Added a "d.m.y" to the R5 set of formats.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-23 18:32:09 +00:00
beveloper
5fe840b9b5
fixed address checking in ppc atomic functions.
...
fixed compilation on x86.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-21 23:36:06 +00:00
beveloper
50e0ce4bee
Implemented new syscalls for 32 and 64 bit atomic operations.
...
They are only used if the architecture doesn't support them directly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-21 23:02:00 +00:00
beveloper
fb16941a02
added atomic_read
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-21 17:55:56 +00:00
beveloper
0163e36659
Added 32 bit atomic read.
...
Implemented all 64 bit atomic operations.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 23:21:26 +00:00
Axel Dörfler
2f096f5a3e
Added/changed/fixed area syscalls.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 15:58:06 +00:00
beveloper
ea8af9630a
renamed test_and_set into atomic_test_and_set
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:56:22 +00:00
beveloper
40ac5c5195
cvs server: Up-to-date check failed for `src/kernel/core/vm/vm.c'
...
cvs [server aborted]: correct above errors first!
cvs commit: saving log message in /tmp/cvsFPtfaj
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:48:15 +00:00
beveloper
6f54d569e9
added 64 bit atomic functions (implementation still pending),
...
removed non atomic functions from this file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:19:42 +00:00
beveloper
a36eac86ac
Removed system_time from atomic.S file and added it in a separate one.
...
The atomic and system_time function are now included in the kernel_os_arch_x86.o file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:16:43 +00:00
beveloper
890b96d5c5
removed system_time from atomic.S file and added it in a separate one.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 02:15:23 +00:00
Axel Dörfler
fe8a9052c0
Updated for the new BeOS compatible syscalls - create_area() is no longer
...
broken.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-19 14:20:06 +00:00
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