Commit graph

1329 commits

Author SHA1 Message Date
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
0d3e35bd82 Add symbol size to SYSCALL_FUNCTION macro assembly. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
dbd07b6ade Update <sys/syscall.h> to current coding conventions. 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
d43a044575 Refactor assert(3). 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
b9e463965b Split libc/stdlib/on_exit.cpp into multiple files. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
8018a85a30 Fix wrong base parsing in strtol(3). 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
db185ece7d Add <ar.h> header. 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
e31b98c5a1 Improve standards conformance of asctime_r(3). 2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
011ea58176 Rewrite vprintf_callback(3). 2013-12-17 14:30:44 +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
8961a99280 Add AF_LOCAL and PF_LOCAL. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
3166413eef Properly implement memmove(3). 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
2f261b3848 Port column(1) to GNU and POSIX systems. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
0738e9bf3c Add du(1). 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
51d965d6eb Add wc(1). 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
3e5a6644c8 Improve implementation of pwd(1). 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
a7b03af9cc Improve implementation of cat(1). 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
97621d4661 Use getlogin(3) in the shell instead of the USERNAME variable. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
ca2de62ea7 Use the <pwd.h> API in getlogin_r(3). 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
dd5a59e5f6 Expand variables before running shell builtins. 2013-12-17 14:30:44 +01:00
Jonas 'Sortie' Termansen
3785beb7f5 Implement the <grp.h> API properly. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
a7e1207e0f Implement the <pwd.h> API properly. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
69f2a3ef91 Add ENOGROUP. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
dd269e9d51 Add ENOUSER. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
396765eaba Remove getdtablesize(3).
This interface has been replaced with sysconf(_SC_OPEN_MAX). Note that this
implementation currently reports this as 0x10000, but there really is no
such limit in Sortix at this time.
2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
bae68066eb Add struct iovec to sys/socket.h. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
5933ac5210 Rename O_CREAT to O_CREATE. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
e901ad8105 Move the declaration of the FILE structure into its own header. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen
a212ec0ee3 Split libc/unistd/ioleast.cpp into multiple files. 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
4e520c8c36 Remove sortix_gets(3). 2013-12-17 14:30:43 +01:00