History log of /haiku/headers/private/kernel/ksyscalls.h
Revision Date Author Comments
# ed854de7 07-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Also include info about the syscall return type in the
extended_syscall_info structure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23916 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4f58d87 21-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Renamed syscall_parameters_info structure to extended_syscall_info (and
kSyscallParametersInfos to kExtendedSyscallInfos) and added "name"
field. Now the classes for syscall kernel tracing don't need to lookup
the syscall function symbol anymore, which speeds up printing/filtering
of those entries dramatically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23687 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 19101ba0 18-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Generate a kernel array kSyscallParametersInfos containing information
about syscall parameters. Particularly interesting is a type_code field
for each parameter. The mechanism isn't very accurate, but we can
classify everything in string, pointer, and integer types.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 34b3b26b 10-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged branch haiku/branches/developer/bonefish/optimization revision
23139 into trunk, with roughly the following changes (for details svn
log the branch):
* The int 99 syscall handler is now fully in assembly.
* Added a sysenter/sysexit handler and use it on Pentiums that support
it (via commpage).
* Got rid of i386_handle_trap(). A bit of functionality was moved into
the assembly handler which now uses a jump table to call C functions
handling the respective interrupt.
* Some optimizations to get user debugger support code out of the
interrupt handling path.
* Introduced a thread::flags fields which allows to skip handling of
rare events (signals, user debug enabling/disabling) on the
common interrupt handling path.
* Got rid of the explicit iframe stack. The iframes can still be
retrieved by iterating through the stack frames.
* Made the commpage an architecture independent feature. It's used for
the real time data stuff (instead of creating a separate area).
* The x86 CPU modules can now provide processor optimized versions for
common functions (currently memcpy() only). They are used in the
kernel and are provided to the userland via commpage entries.
* Introduced build system feature allowing easy use of C structure
member offsets in assembly code.

Changes after merging:
* Fixed merge conflict in src/system/kernel/arch/x86/arch_debug.cpp
(caused by refactoring and introduction of "call" debugger command).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74b043d9 17-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Removed execute property that was set accidently (since CVS days).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11896 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d4d6d35 10-Feb-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Export an array of static syscall infos generated by gensyscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11340 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fe71062 14-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Renamed the semaphore syscalls to the new scheme (_kern_ instead of sys_).
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10453 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3c3d22f 14-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented a generic syscall mechanism.
Minor cleanup in syscalls.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10451 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6fec5893 28-Aug-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# c28c0592 07-Jul-2004 Axel Dörfler <axeld@pinc-software.de>

Added all syscalls needed for the next_dev() call.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8346 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c996485 05-Jul-2004 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for write/read fs info.
Fixed the wrong numbering of the syscall comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8306 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 63e846d5 02-Jul-2004 Axel Dörfler <axeld@pinc-software.de>

Added a syscall to get a path for a directory node_ref.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8278 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0865e4b2 23-May-2004 Axel Dörfler <axeld@pinc-software.de>

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


# f6a31876 21-Apr-2004 Axel Dörfler <axeld@pinc-software.de>

Added system_info.h header and syscall for get_system_info().
Added support functions in sem.h and port.h that return some stats.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7289 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9e5bff5f 02-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

Replaced the syscall for thread_get_current_thread_id() with one for find_thread().
Renamed the thread/team syscalls to the new naming scheme.
Some other minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6867 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9289abf0 13-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

Added _kern_debug_output() syscall.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9699c529 28-Oct-2003 Axel Dörfler <axeld@pinc-software.de>

Added the syscall for set_real_time_clock().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5187 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 188b5de0 30-Aug-2003 beveloper <beveloper@nowhere.fake>

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


# 50e0ce4b 21-Aug-2003 beveloper <beveloper@nowhere.fake>

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


# f236d166 20-Aug-2003 Axel Dörfler <axeld@pinc-software.de>

Removed the vm_get_region_info() call and the vm_region_info structure -
they are now replaced by get_area_info() and the area_info structure.
get_area_info() still misses some pieces, though.
Added all missing VM user/kernel syscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4352 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 99708401 19-Aug-2003 Axel Dörfler <axeld@pinc-software.de>

Renamed syscall definitions for the create/delete area calls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4312 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a9731b41 26-Jan-2003 Axel Dörfler <axeld@pinc-software.de>

Housekeeping changes and small bug-fixes:
Added new syscall for set_thread_priority().
Replaced the userland syscall snooze_until() with snooze_etc() (the latter
has to be exported to userland and realize snooze() and snooze_until()).
Cleaned the sources - scheduler functions now have the scheduler_ prefix.
Moved signal related stuff into ksignal.h (out of thread.h).
Replaced public kernel API with direct exports (i.e. resume_thread() instead
of thread_resume_thread()).
Removed the thread_create_XXX_thread*() calls, and replaced them with a
BeOS compatible set.
Made some fields of struct thread a bit prettier.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2569 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f9bdcca5 18-Jan-2003 Axel Dörfler <axeld@pinc-software.de>

Added kernel private node_monitor.h header.
Moved definition of "struct io_context" from fd.h to vfs.h.
Introduced new fs/ directory; some cleanups to come.
Added node monitor syscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2479 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1c204d8b 12-Jan-2003 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for the image API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2415 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7ed765a7 29-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for select(), and poll().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1780 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f2bc6130 28-Oct-2002 lillo <lillo@nowhere.fake>

replaced sys_kill with general thread-aimed sys_send_signal; cleaned up


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1740 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2117f0b 26-Oct-2002 lillo <lillo@nowhere.fake>

reworked snooze to work in function of the newly added (and kernel exported) snooze_etc. Activated libroot counterpart(s).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1723 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9870ddce 25-Oct-2002 lillo <lillo@nowhere.fake>

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


# 146a3000 17-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for the index functions.
Corrected the prototype for fs_rewind_index_dir() (don't copy and paste...)
Also checked in the syscall definitions for the signal stuff to save Angelo
some work.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8e5ca65b 16-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added a new write_stat() call to the file descriptor operations.
Renamed sys_read_stat() to sys_read_path_stat() - sys_read_stat() is now
the fd operation.
Removed the sys_write_attr_stat() call because it is no longer needed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1554 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b67f1117 16-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for the attribute VFS calls.
Made some subtle changes to fs_attr.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1546 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4e3c12c0 22-Sep-2002 Axel Dörfler <axeld@pinc-software.de>

Moved <types.h> to <sys/types.h>.
Removed dependencies on arch/x86/types.h - this file is not really used
anymore, now. Might prevent compiling on Windows, though.
Replaced "int" with "int32" for the id types.
Removed some stuff from ktypes.h because it didn't belong there.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1120 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 615a79cc 19-Aug-2002 lillo <lillo@nowhere.fake>

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


# 4c405cbd 13-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

The fs interface functions should now return a "status_t" rather than an "int".
Added syscalls for, and implemented sys_create_link(), sys_remove_dir().
Implemented link(), unlink(), rmdir().
Fixed the inconsistent path buffer handling in the user|sys vfs functions; the
path buffer is now exactly SYS_MAX_PATH_LEN from userland (incl. terminating
null byte).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@748 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 854fc92a 13-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

Implemented some more calls in unistd.h.
Replaced the unused syscall for getdtablesize() with one for access().
Implemented sys_access() and added it to the file system interface.
Removed the fs function interface from vfs.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@738 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 14e18e55 09-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

getdtablesize() no longer needs a syscall.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@667 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 854c31f8 03-Aug-2002 lillo <lillo@nowhere.fake>

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


# ae372703 02-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

Big commit: Added symlink support to the kernel.
- added needed syscalls to access symlink support from userland
- implemented lstat(), symlink(), and readlink()
- added dev_t to ktypes.h (for now - should be in a public header anyway)
- added symlink support to the "ls" command (now calls lstat() and shows the
link target with the -l option)
- changed the sys_read_stat() call to support symlinks, and updated files
using that function (it gets an extra argument: bool traverseLink)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@560 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cfbecf1 02-Aug-2002 lillo <lillo@nowhere.fake>

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


# 973b9ee6 23-Jul-2002 Axel Dörfler <axeld@pinc-software.de>

Added the syscalls for sys_open_entry_ref(), sys_create_entry_ref(),
sys_open_dir_entry_ref(), sys_open_dir_node_ref(), sys_create_dir_entry_ref().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@394 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0ba337c0 18-Jul-2002 lillo <lillo@nowhere.fake>

adding environmental variables support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@304 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eba8b6cf 13-Jul-2002 Axel Dörfler <axeld@pinc-software.de>

Next update of the VFS: more posix like open/create; divided create in
sys_create(), and sys_create_dir(), open in sys_open(), and sys_open_dir().
Small cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f8d76107 10-Jul-2002 Axel Dörfler <axeld@pinc-software.de>

Added the syscalls for sys_read_dir(), and sys_rewind_dir().
sys_read_dir() now has a parameter for the maximum number of dirents that
are handled by the upper layer - which is currently 1.
Added a comment in fd.h to ease the location of the sys|user prototypes
of the corresponding functions in fd.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@58 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed854de77028ac5787ab7f8ac42a28784c3f80df 07-Feb-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Also include info about the syscall return type in the
extended_syscall_info structure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23916 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4f58d8758380bc4ef224a1d2a05348fc1535e33 21-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Renamed syscall_parameters_info structure to extended_syscall_info (and
kSyscallParametersInfos to kExtendedSyscallInfos) and added "name"
field. Now the classes for syscall kernel tracing don't need to lookup
the syscall function symbol anymore, which speeds up printing/filtering
of those entries dramatically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23687 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 19101ba0f4061b3ca064ad0713dfd29e93104a39 18-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Generate a kernel array kSyscallParametersInfos containing information
about syscall parameters. Particularly interesting is a type_code field
for each parameter. The mechanism isn't very accurate, but we can
classify everything in string, pointer, and integer types.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 34b3b26b3b8c46ba46ddde037b10dd173f4936d6 10-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged branch haiku/branches/developer/bonefish/optimization revision
23139 into trunk, with roughly the following changes (for details svn
log the branch):
* The int 99 syscall handler is now fully in assembly.
* Added a sysenter/sysexit handler and use it on Pentiums that support
it (via commpage).
* Got rid of i386_handle_trap(). A bit of functionality was moved into
the assembly handler which now uses a jump table to call C functions
handling the respective interrupt.
* Some optimizations to get user debugger support code out of the
interrupt handling path.
* Introduced a thread::flags fields which allows to skip handling of
rare events (signals, user debug enabling/disabling) on the
common interrupt handling path.
* Got rid of the explicit iframe stack. The iframes can still be
retrieved by iterating through the stack frames.
* Made the commpage an architecture independent feature. It's used for
the real time data stuff (instead of creating a separate area).
* The x86 CPU modules can now provide processor optimized versions for
common functions (currently memcpy() only). They are used in the
kernel and are provided to the userland via commpage entries.
* Introduced build system feature allowing easy use of C structure
member offsets in assembly code.

Changes after merging:
* Fixed merge conflict in src/system/kernel/arch/x86/arch_debug.cpp
(caused by refactoring and introduction of "call" debugger command).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74b043d98d35652a6892fc430537a02f5f9d9f76 17-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Removed execute property that was set accidently (since CVS days).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11896 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d4d6d35c0f6c00313a114aae710cd0cf302a440 10-Feb-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Export an array of static syscall infos generated by gensyscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11340 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fe71062b7f7b93d1abe690952d882c1b7d98177 14-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Renamed the semaphore syscalls to the new scheme (_kern_ instead of sys_).
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10453 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3c3d22f647254eb046a09ae5b1a452194d39f99 14-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented a generic syscall mechanism.
Minor cleanup in syscalls.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10451 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6fec58934a364918e9aa7ef5d966cd47d8988e6a 28-Aug-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# c28c0592921ef90cd5bdab9e6ac6642dbf37ece9 07-Jul-2004 Axel Dörfler <axeld@pinc-software.de>

Added all syscalls needed for the next_dev() call.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8346 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c996485b750450435bdbab681ccb4a97fd3cf82 05-Jul-2004 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for write/read fs info.
Fixed the wrong numbering of the syscall comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8306 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 63e846d50d65212728f18636ffbb17336315a37d 02-Jul-2004 Axel Dörfler <axeld@pinc-software.de>

Added a syscall to get a path for a directory node_ref.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8278 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0865e4b204ad72251e05d977b17b68a46bc1a491 23-May-2004 Axel Dörfler <axeld@pinc-software.de>

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


# f6a31876cec8cc0154a6be366fc623925e64e622 21-Apr-2004 Axel Dörfler <axeld@pinc-software.de>

Added system_info.h header and syscall for get_system_info().
Added support functions in sem.h and port.h that return some stats.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7289 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9e5bff5febfe5049547beaf9de6a2939782e7858 02-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

Replaced the syscall for thread_get_current_thread_id() with one for find_thread().
Renamed the thread/team syscalls to the new naming scheme.
Some other minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6867 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9289abf0e4582ef95a10c2de36b3db664fc3365c 13-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

Added _kern_debug_output() syscall.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9699c5299243829af22c00de696895b826575a7e 28-Oct-2003 Axel Dörfler <axeld@pinc-software.de>

Added the syscall for set_real_time_clock().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5187 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 188b5de0bfd8deeaf0cb0c17a8f2b4572c2191ac 30-Aug-2003 beveloper <beveloper@nowhere.fake>

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


# 50e0ce4bee6c6c87242a30935f4f9f855afa02bd 21-Aug-2003 beveloper <beveloper@nowhere.fake>

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


# f236d166058c413b55a4a58e78b2ee382f074e27 20-Aug-2003 Axel Dörfler <axeld@pinc-software.de>

Removed the vm_get_region_info() call and the vm_region_info structure -
they are now replaced by get_area_info() and the area_info structure.
get_area_info() still misses some pieces, though.
Added all missing VM user/kernel syscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4352 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9970840118262cb7409ca70354250baca9cd6b0e 19-Aug-2003 Axel Dörfler <axeld@pinc-software.de>

Renamed syscall definitions for the create/delete area calls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4312 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a9731b41c119ec606f9585d2370c0d5d5539eb53 26-Jan-2003 Axel Dörfler <axeld@pinc-software.de>

Housekeeping changes and small bug-fixes:
Added new syscall for set_thread_priority().
Replaced the userland syscall snooze_until() with snooze_etc() (the latter
has to be exported to userland and realize snooze() and snooze_until()).
Cleaned the sources - scheduler functions now have the scheduler_ prefix.
Moved signal related stuff into ksignal.h (out of thread.h).
Replaced public kernel API with direct exports (i.e. resume_thread() instead
of thread_resume_thread()).
Removed the thread_create_XXX_thread*() calls, and replaced them with a
BeOS compatible set.
Made some fields of struct thread a bit prettier.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2569 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f9bdcca59cbf81bf938cf10a6a1d5b6f050d6eee 18-Jan-2003 Axel Dörfler <axeld@pinc-software.de>

Added kernel private node_monitor.h header.
Moved definition of "struct io_context" from fd.h to vfs.h.
Introduced new fs/ directory; some cleanups to come.
Added node monitor syscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2479 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1c204d8bb9afd4f3bd0140ff7cff3800168fb22a 12-Jan-2003 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for the image API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2415 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7ed765a7f957af4e4a1bf0bee749775a2795020a 29-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for select(), and poll().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1780 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f2bc61304f09c3804c98f1ac78da87e9129083d7 28-Oct-2002 lillo <lillo@nowhere.fake>

replaced sys_kill with general thread-aimed sys_send_signal; cleaned up


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1740 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2117f0bc7f6b1a56139a510fb8d804add41122e 26-Oct-2002 lillo <lillo@nowhere.fake>

reworked snooze to work in function of the newly added (and kernel exported) snooze_etc. Activated libroot counterpart(s).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1723 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9870ddcea7ba9fea6a7fabdacb511f3f3093d57c 25-Oct-2002 lillo <lillo@nowhere.fake>

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


# 146a3000ee509a0c225deb1aa01aa50ad88b5cca 17-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for the index functions.
Corrected the prototype for fs_rewind_index_dir() (don't copy and paste...)
Also checked in the syscall definitions for the signal stuff to save Angelo
some work.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8e5ca65bc98f599f4cb9eb85c9d66d04f9205a13 16-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added a new write_stat() call to the file descriptor operations.
Renamed sys_read_stat() to sys_read_path_stat() - sys_read_stat() is now
the fd operation.
Removed the sys_write_attr_stat() call because it is no longer needed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1554 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b67f11173f803f79ad22964641803b68512ee28e 16-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Added syscalls for the attribute VFS calls.
Made some subtle changes to fs_attr.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1546 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4e3c12c0afa8bb6c5f314e5bc305cc5b6c835a5a 22-Sep-2002 Axel Dörfler <axeld@pinc-software.de>

Moved <types.h> to <sys/types.h>.
Removed dependencies on arch/x86/types.h - this file is not really used
anymore, now. Might prevent compiling on Windows, though.
Replaced "int" with "int32" for the id types.
Removed some stuff from ktypes.h because it didn't belong there.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1120 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 615a79cc3cafb8aa90ad2ee9f722d0a4700a7b59 19-Aug-2002 lillo <lillo@nowhere.fake>

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


# 4c405cbdd43a20546d1d0a71b75f7ede417fe5fc 13-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

The fs interface functions should now return a "status_t" rather than an "int".
Added syscalls for, and implemented sys_create_link(), sys_remove_dir().
Implemented link(), unlink(), rmdir().
Fixed the inconsistent path buffer handling in the user|sys vfs functions; the
path buffer is now exactly SYS_MAX_PATH_LEN from userland (incl. terminating
null byte).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@748 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 854fc92a7ccbf27a2b9bcf80e7a2ca9a0a355243 13-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

Implemented some more calls in unistd.h.
Replaced the unused syscall for getdtablesize() with one for access().
Implemented sys_access() and added it to the file system interface.
Removed the fs function interface from vfs.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@738 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 14e18e556ee62042c87e10f9612b4c3229f3b6d4 09-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

getdtablesize() no longer needs a syscall.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@667 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 854c31f835e445f5caecc8a9d6342f3677cb48c8 03-Aug-2002 lillo <lillo@nowhere.fake>

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


# ae372703ce511d5bf7e2034e44241908b012b1ee 02-Aug-2002 Axel Dörfler <axeld@pinc-software.de>

Big commit: Added symlink support to the kernel.
- added needed syscalls to access symlink support from userland
- implemented lstat(), symlink(), and readlink()
- added dev_t to ktypes.h (for now - should be in a public header anyway)
- added symlink support to the "ls" command (now calls lstat() and shows the
link target with the -l option)
- changed the sys_read_stat() call to support symlinks, and updated files
using that function (it gets an extra argument: bool traverseLink)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@560 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cfbecf1a6bfb811556eed42284ad75f9568a9fe 02-Aug-2002 lillo <lillo@nowhere.fake>

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


# 973b9ee6b70f6a8506cea31c5a0cc5d961326ce7 23-Jul-2002 Axel Dörfler <axeld@pinc-software.de>

Added the syscalls for sys_open_entry_ref(), sys_create_entry_ref(),
sys_open_dir_entry_ref(), sys_open_dir_node_ref(), sys_create_dir_entry_ref().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@394 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0ba337c0a41c6245ba204209d7b899dc03767bd6 18-Jul-2002 lillo <lillo@nowhere.fake>

adding environmental variables support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@304 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eba8b6cfb916c71aa0fd2aca63faedd2093e3b29 13-Jul-2002 Axel Dörfler <axeld@pinc-software.de>

Next update of the VFS: more posix like open/create; divided create in
sys_create(), and sys_create_dir(), open in sys_open(), and sys_open_dir().
Small cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f8d76107147f6371649c7ab2f8dd7a0cf8146c64 10-Jul-2002 Axel Dörfler <axeld@pinc-software.de>

Added the syscalls for sys_read_dir(), and sys_rewind_dir().
sys_read_dir() now has a parameter for the maximum number of dirents that
are handled by the upper layer - which is currently 1.
Added a comment in fd.h to ease the location of the sys|user prototypes
of the corresponding functions in fd.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@58 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96