Commit graph

391 commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen
6e51c1ae51 Add init groups.
Every process now has an init process like it has a session, and each
session belong to an init. Orphaned processes are reparented to its init
process. All descendent processes are SIGKILL'd when an init process exits
and creating additional processes/threads fails.

Add setinit(2) for becoming the init process for your child processes and
add getinit(2) for locating your init process.

Add TIOCSCTTY force flag that releases a terminal from its current session
and makes it the controlling terminal for the current session. This ioctl
is essential to transferring the controlling terminal to a nested init,
which has its own session.

Add TIOCUCTTY that releases the terminal as the controlling terminal for
its current session.

Remove INIT_PID as it is replaced by getinit(2).
2024-06-22 18:25:49 +02:00
Jonas 'Sortie' Termansen
81947e4f3b Kinda fix pager(1) man bullet points. 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
784481dab6 Add kernel(7) --firmware option. 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
cb5ccbec33 Add getty(8). 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
a9738417c7 Add uptime(1) -pr options. 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
2100eb369d Add iso9660 filesystem implementation. 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
19c352b8c5 Add pty(1). 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
54eedef518 Add getaddrinfo(1). 2024-06-22 18:25:48 +02:00
Jonas 'Sortie' Termansen
dc98bcf0ca Add options to kernelinfo(2). 2023-12-19 00:05:42 +01:00
Jonas 'Sortie' Termansen
6303a59439 Handle SIGTERM in chroot(8). 2023-08-26 14:15:12 +02:00
Jonas 'Sortie' Termansen
917722cf70 Add display server.
This change adds the display(1) graphical user interface and desktop
environment with basic windowing support and the graphical terminal(1)
emulator along with integrations in chkblayout(1), chvideomode(1),
sysinstall(8), sysupgrade(8), as well as the games and ports.

Adopt the Aurora procedural wallpaper in display(1) and login(8).

Remove the obsolete dispd.

Juhani contributed keyboard and video mode APIs to the display protocol
and other miscellaneous changes.

dzwdz contributed the initial functioning window buttons, improved title
bar, window tiling, and minor bug fixes

Co-authored-by: Juhani Krekelä <juhani@krekelä.fi>
Co-authored-by: dzwdz <kg67199@gmail.com>
2023-06-24 00:43:36 +02:00
Juhani Krekelä
66c4b7486a Move chkblayout(1) and chvideomode(1) into their own directories. 2023-05-16 02:25:18 +03:00
Jonas 'Sortie' Termansen
77c2e7f59e Fix chvideomode(1) --max- option parsing. 2023-05-15 23:24:33 +02:00
Jonas 'Sortie' Termansen
b029127df5 Add passwd(1) -H option. 2023-04-23 23:35:08 +02:00
Jonas 'Sortie' Termansen
c77745e447 Change chvidemode(1) to set requested mode instead of running command. 2023-04-22 19:54:40 +02:00
Jonas 'Sortie' Termansen
2799f04cad Add date(1) -drs options. 2023-03-27 00:06:33 +02:00
Jonas 'Sortie' Termansen
c57ff050e9 Add include and comment support to passwd(5) and group(5). 2023-03-19 21:53:21 +01:00
Jonas 'Sortie' Termansen
8a4548db7d Add memory statistics to struct psctl_stat.
This is an incompatible ABI change.
2023-03-09 20:27:18 +01:00
Jonas 'Sortie' Termansen
2cd7361294 Add memusage(2).
Switch xz to memusage(2) and fix native self-cross issue.

This is a compatible ABI change.
2023-03-09 20:27:17 +01:00
Jonas 'Sortie' Termansen
4056332747 Fix missing nc.1 file. 2023-02-23 11:08:42 +01:00
Jonas 'Sortie' Termansen
f875555e3e Add nc(1). 2023-02-23 01:25:15 +01:00
Jonas 'Sortie' Termansen
c3a3ff86ec Add -p option to time(1). 2022-12-04 23:18:17 +01:00
Jonas 'Sortie' Termansen
71edc766e7 Add halt(8), poweroff(8), and reboot(8). 2022-10-20 23:28:48 +02:00
Juhani Krekelä
184f99e1ee Add -u option to date(1).
Co-authored-by: Dennis Wölfing <denniswoelfing@gmx.de>
2022-06-17 00:33:53 +03:00
Jonas 'Sortie' Termansen
4e56b01e9e Fix getopt error handling in pstree(1). 2022-04-26 01:08:28 +02:00
Jonas 'Sortie' Termansen
14960319a6 Fix find(1) always failing on exec plus. 2022-03-05 19:28:08 +01:00
auronandace
292aeb3fe7 Rename CLOCK_BOOT to CLOCK_BOOTTIME. 2022-02-22 18:01:57 +00:00
Jonas 'Sortie' Termansen
4ed2bb1c50 Fix unused variable warning in pstree(1). 2021-12-12 22:13:05 +01:00
Jonas 'Sortie' Termansen
cd8dcdec55 Add -gp options to pstree(1). 2021-12-12 19:47:38 +01:00
Juhani Krekelä
2e193b6014 Fix possible overflow when resizing buffers and remove unncessary casts.
A line longer than 2G might overflow the size_t containing the buffer
length on 32-bit platform. Fix is to use reallocarray with second
parameter twice the size of the element to double the buffer size, since
it will error out if there was an overflow.
2021-11-02 02:11:18 +02:00
Juhani Krekelä
cb4a631524 Fix indentation in switch-statement in utils/tail.c.
Sortix coding style does not indent the cases of a switch statement.
2021-10-31 00:46:13 +03:00
Juhani Krekelä
d605911ddc Make command-not-found(1) data-driven.
Previously command-not-found(1) encoded all its suggestions in code.
This changes it to use a data table to make it easier to understand and
to modify with new suggestions.
2021-10-06 23:37:08 +03:00
Juhani Krekelä
79799b0084 Support historical syntax in head(1) and tail(1). 2021-08-17 00:03:32 +03:00
Juhani Krekelä
198c54ed25 Rewrite tail(1). 2021-08-15 16:16:19 +03:00
Juhani Krekelä
42c94ee36b Mark install(1) dependant on utils/cp.c and head(1) on utils/tail.c 2021-07-29 00:40:49 +03:00
Jonas 'Sortie' Termansen
63ce55e7e9 Fix reading directories not failing with EISDIR. 2021-07-28 22:21:41 +02:00
Jonas 'Sortie' Termansen
23ddc536bc Add -bdfgikhMnt options to sort(1). 2021-06-13 12:51:18 +02:00
Jonas 'Sortie' Termansen
280ba8d64d Rewrite find(1). 2021-05-29 01:04:53 +02:00
Juhani Krekelä
73e42780f4 Add more keybinds for scrolling in pager(1)
b commonly corresponds to Page Up, and f is added to match.

j and k for lines, ^F and ^B for pages, and g and G for home/end are from vi.

C-n and C-p for lines and C-v and M-v for pages are from Emacs.

< and > for home/end allow using Emacs M-< and M->, tho they are from less(1).
2021-05-04 22:14:47 +00:00
Jonas 'Sortie' Termansen
b52bfa5978 Add nl(1). 2021-04-21 22:30:21 +02:00
Jonas 'Sortie' Termansen
a8f8b4cfd6 Add format support to date(1). 2021-04-06 23:22:22 +02:00
Jonas 'Sortie' Termansen
7139de4a53 Add stty(1). 2020-11-25 20:47:19 +01:00
Jonas 'Sortie' Termansen
eb70062331 Fix utils/chown not being gitignored. 2020-10-28 12:47:35 +01:00
Jonas 'Sortie' Termansen
8337947058 Add chown(1). 2020-10-18 00:31:06 +02:00
Jonas 'Sortie' Termansen
6774df5756 Modernize chmod(1). 2020-10-18 00:31:06 +02:00
Jonas 'Sortie' Termansen
11ababec90 Add -h option to ln(1). 2020-04-13 15:00:25 +02:00
Jonas 'Sortie' Termansen
90180a614f Fix ln(1) behavior on empty paths and indentation. 2020-04-12 21:08:57 +02:00
Jonas 'Sortie' Termansen
ff1a90c331 Rewrite ln(1) to be standards compliant. 2020-04-12 00:04:16 +02:00
Jonas 'Sortie' Termansen
8467102662 Fix ls(1) not checking stat_record()'s error correctly. 2018-08-06 23:59:34 +02:00
Jonas 'Sortie' Termansen
db90720c01 Fix code relying on <stdio.h> including <stdarg.h>. 2018-08-06 23:59:34 +02:00