Commit graph

550 commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen
7518b5da12 Remove ASLFAGS from kernel Makefile. 2014-02-16 12:38:05 +01:00
Jonas 'Sortie' Termansen
73e44a5ff5 Fix wrong return type of ModeToDT kernel function. 2014-02-16 12:38:05 +01:00
Jonas 'Sortie' Termansen
0235fc3a62 Fix wrong return value for fcntl(F_SETFL, ...). 2014-02-16 12:38:05 +01:00
Jonas 'Sortie' Termansen
d4e7934828 Fix insecure user-space pointer dereferences in sys_kernelinfo. 2014-01-19 22:47:52 +01:00
Jonas 'Sortie' Termansen
8f8f09ac82 Fix insecure user-space pointer dereferences in sys_tfork. 2014-01-19 22:47:52 +01:00
Jonas 'Sortie' Termansen
08c11ee45c Fix insecure user-space pointer dereferences in sys_waitpid. 2014-01-19 22:47:52 +01:00
Jonas 'Sortie' Termansen
08df67eef2 Fix insecure user-space pointer dereferences in sys_memstat. 2014-01-19 22:47:51 +01:00
Jonas 'Sortie' Termansen
cab62b77d5 Fix fcntl(fd, F_SETFL, x) not setting the descriptor flags properly. 2014-01-19 00:32:11 +01:00
Jonas 'Sortie' Termansen
021256ad8e Fix struct kernel_dirent::d_namlen being called d_namelen. 2014-01-18 16:30:56 +01:00
Jonas 'Sortie' Termansen
ffff20be35 Fix unode readdirents not setting struct kernel_dirent::d_type. 2014-01-18 16:30:56 +01:00
Jonas 'Sortie' Termansen
a4220d5b5f Fix incorrect usage of __is_sortix_foo macros in preprocessor conditionals.
These macros might not be defined, in which case this usage would have
generated warnings had they not been in system headers.
2014-01-18 16:30:55 +01:00
Jonas 'Sortie' Termansen
2f02d5287e Add missing includes to <sortix/display.h>. 2013-12-30 20:46:22 +01:00
Jonas 'Sortie' Termansen
7fbd8cdfa6 Fix Sortix::Process::GetParentProcessId forward declaration return type. 2013-12-30 20:46:22 +01:00
Jonas 'Sortie' Termansen
500d3bb38b Add symlink(2) and symlinkat(2) stub. 2013-12-19 17:42:08 +01:00
Jonas 'Sortie' Termansen
a0e2934c8c Recover kernel log during emergencies. 2013-12-19 17:42:08 +01:00
Jonas 'Sortie' Termansen
eb831479fb Implement AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW. 2013-12-19 17:42:08 +01:00
Jonas 'Sortie' Termansen
2311d634ac Add O_SYMLINK_NOFOLLOW. 2013-12-19 17:42:08 +01:00
Jonas 'Sortie' Termansen
c407a24863 Allow the kernel to write to harddisks by default. 2013-12-19 17:42:07 +01:00
Jonas 'Sortie' Termansen
951ecb625b Improve error message in case the initrd is too big. 2013-12-19 17:42:07 +01:00
Jonas 'Sortie' Termansen
6a9eee3238 Add brand.h. 2013-12-17 14:30:46 +01:00
Jonas 'Sortie' Termansen
caa1b7455c Add /dev/full. 2013-12-17 14:30:46 +01:00
Jonas 'Sortie' Termansen
5293d91808 Add /dev/zero. 2013-12-17 14:30:46 +01:00
Jonas 'Sortie' Termansen
616ef6c963 Add /dev/null. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
33bf0d93ad Avoid libc conflicts with libstdc++. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
358f2c4524 Remove unnecessary includes from <sortix/kernel/kernel.h> 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
291bb7afb3 Add missing includes to x86/process and x64/process.cpp. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
2302350d78 Remove <sortix/kernel/platform.h>. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
42d267793b Add missing includes to <sortix/kernel/interrupt.h>. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
e16edd71b5 Add missing includes to <sortix/kernel/crc32.h>. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
b09267c622 Add missing includes to <sortix/kernel/kthread.h>. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
d02b3422c1 Add missing includes to <sortix/kernel/cpu.h>. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
2110ce2651 Add missing includes to <sortix/kernel/decl.h>. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
f6f861a72e Remove JSSORTIX reference from sortix/uart.cpp. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
9d4bc2a15f Grow kernel heap upwards.
Previously the kernel heap grew downwards for historical reasons. There is no
reason for this and it simplifies the heap implementation if it only grows
upwards. This also rearranges how the kernel virtual memory is allocated to
suit an upwards-growing heap.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
26add4c111 Update sortix/kernel.cpp to current coding conventions. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
9d48de4035 Remove <sortix/kernel/endian.h>. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
d0c7ca3c02 Port sortix/pci.h from <sortix/kernel/endian.h> to <endian.h>. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
984397565f Link crtbegin.o and crtend.o into the kernel. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
30a95dfa1e Split parts of <features.h> into <sys/cdefs.h>. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
6f5989614e Add SIGPROF. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
ad9a90926d Add O_NOFOLLOW. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
5933ac5210 Rename O_CREAT to O_CREATE. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
defa74d7ec Add F_DUPFD, F_DUPFD_CLOEXEC, F_DUPFD_CLOFORK. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
42f00f5d79 Refactor file descriptor allocation. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
8c0e0235d6 Refactor fcntl(2) ABI.
This is an incompatible ABI change.
2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
1f2902ecfd Make system call functions static. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
eac602c9a1 Remove print_string(2).
This wasn't being used by anyone and was a security risk.
2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
ebef48ed61 Update kernel log to current coding conventions. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
9bb2ea78ac Remove obsolete PC-Speaker sound driver. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
8975c75c61 Update sortix/kernelinfo.cpp to current coding conventions. 2013-12-17 14:30:43 +01:00