Commit Graph

62 Commits

Author SHA1 Message Date
Giacomo Tesio 1e34cf5efb copyright: update 9front's url (they moved from hg to git) 2021-12-30 00:55:39 +01:00
Giacomo Tesio 0adf1b0431 new build: get rid of Go with few rc scripts. 2021-12-30 00:55:06 +01:00
Giacomo Tesio 922e993c41 libs, kernel and commands: re-enable -Werror 2020-11-15 13:30:09 +01:00
Giacomo Tesio 16c7924425 libs: get rid of libstdio (and stdio.h); `mv ctype.h chartypes.h` in /sys/include 2020-09-17 23:53:35 +02:00
Giacomo Tesio 0a325039bf gcc & system build: add `-9` and remove `--posix` from build files 2020-09-17 23:53:12 +02:00
Giacomo Tesio 2f850291d5 rename libc to libjehanne; improve libposix
This is to avoid conflicts between standards' assumptions and Jehanne's choices
2020-09-17 23:48:27 +02:00
Giacomo Tesio f104c46858 purge syscall macros 2020-09-17 23:45:23 +02:00
Giacomo Tesio ca2300aa65 usb/disk: add a 100ms sleep after ums reset 2018-05-18 00:26:13 +02:00
Giacomo Tesio 96f5c08548 cmd: hmi/pipeconsole -P serve /dev/tty instead of /dev/cons (for use with mksh) 2018-01-08 01:23:52 +01:00
Giacomo Tesio 2bf39bf38a kern: rename /dev/swap in /dev/sysmem
Jehanne has no SWAP.

And I do not want to explain to my daughters what SWAP **was**.
2018-01-07 07:14:08 +01:00
Giacomo Tesio dd9aa0e0a6 More explicit Copyright in files 2018-01-06 01:09:04 +01:00
Giacomo Tesio c7d0f621c9 Clarify Forsyth's and 9front's copyrights
I'm very grateful to Charles Forsyth for creating most of Jehanne's kernel
and to 9front's guys for all the code and ideas they freely share.

Here I make their copyrights explicit as they had been erroneusly omitted
or messed up before. Sorry.
2018-01-05 02:30:45 +01:00
Giacomo Tesio 464eee3ed8 rc: use /dev/tty as a tty (not only /dev/cons) 2017-12-18 23:02:44 +01:00
Giacomo Tesio 001069aa7b libposix: deep refactor; add sys/posixly command
With these changes, libposix (and newlib) can run MirBSD Korn Shell.
2017-12-18 23:02:36 +01:00
Giacomo Tesio 2f99fb162f hmi/console: fix file owner for screenconsole
When boot starts screenconsole, the hostowner is still empty
2017-12-15 02:58:09 +01:00
Giacomo Tesio dcbea5d48d hmi/console: fix Qroot listing 2017-12-15 02:58:09 +01:00
Giacomo Tesio 1639097200 hmi/console: fix fd leak 2017-12-15 02:58:09 +01:00
Giacomo Tesio a86e2b506a sys/ctrace: try to restart stopped processes (why does not work?) 2017-12-15 02:58:09 +01:00
Giacomo Tesio f6e3784639 sys/ctrace: restart traced process when stopped by note 2017-12-15 02:58:09 +01:00
Giacomo Tesio bdce6c7f9c sys/ctrace: keep reading on exited process till there is something to read 2017-12-15 02:58:09 +01:00
Giacomo Tesio d9345701c5 sys/ctrace: use waitstop for command started with -c (since they imply hang) 2017-12-15 02:58:09 +01:00
Giacomo Tesio 8b3be08c21 cmds: use pexec in ns/clone 2017-12-15 02:58:09 +01:00
Giacomo Tesio 3ed0e3d41a cmds: add vt to the build 2017-12-15 02:58:09 +01:00
Giacomo Tesio dc76580668 cmd/acme: removed obsolete PATH manipulation 2017-12-15 02:58:09 +01:00
Giacomo Tesio 66e9a1b676 cmd/vt: export /dev/tty as alias for /dev/cons 2017-12-15 02:58:09 +01:00
Giacomo Tesio 132f2ccee0 cmd/vt: include envvars.h 2017-12-15 02:58:09 +01:00
Giacomo Tesio 5a2f74a22c cmds: sys/ctrace -o file; fix rfork handling
Added a -o option to sys/ctrace (if provided, must be the first option)
to redirect the output to a file.
2017-12-15 02:58:09 +01:00
Giacomo Tesio fd30599a90 cmds: fix rfork handling in sys/ctrace 2017-12-15 02:58:09 +01:00
Giacomo Tesio fc2e066ca0 cmd: import pstree from 9front 2017-12-15 02:58:09 +01:00
Giacomo Tesio 2a4b3f26d6 cmds: add ns/clone
usage: ns/clone pid cmd [args...]

It starts cmd with provided arguments in a clone of the namespace
available to pid.
2017-10-25 01:02:32 +02:00
Giacomo Tesio 9d04fba8f2 cmds: rename `ns` to `ns/cat` 2017-10-25 00:22:26 +02:00
Giacomo Tesio 9202b04504 rc: use some uppercase variables (PATH, USER...) 2017-10-22 13:22:37 +02:00
Giacomo Tesio fab9c1d80f libc: introduce <envvars.h>
The new header envvars.h contains the names of commonly used
environment variables, such as $user, $ifs, $path and so on.

These defines are useful for Jehanne core applications that
use them to comunicate some values.

They are not strictly required, but having such defines we
can easily change the naming convention (from lowercase to uppercase).
2017-10-20 01:22:48 +02:00
Giacomo Tesio 65d37f432f rc: rename $cflag in $rccmd 2017-10-20 00:14:43 +02:00
Giacomo Tesio 9b0b9794c3 rc: write ENV_PATH and ENV_CDPATH as a colon separated string 2017-10-19 00:25:34 +02:00
Giacomo Tesio a5c14e60d7 rc: replace forgotten ENV_RCARGLIST 2017-10-19 00:16:19 +02:00
Giacomo Tesio d33221de34 rc: allow colons as separator in $path and $cdpath 2017-10-18 23:48:42 +02:00
Giacomo Tesio 0ef55939e8 rc: rm plan9.c (fix previous commit) 2017-10-18 22:41:31 +02:00
Giacomo Tesio 4017b73ab2 rc: define constants for rc variable names 2017-10-18 22:38:30 +02:00
Giacomo Tesio b42f8bd4a8 rc: mv plan9.c jehanne.c 2017-10-18 01:20:52 +02:00
Giacomo Tesio 085f5dfa34 rc: import 9front's improvements 2017-10-18 01:10:06 +02:00
Giacomo Tesio 3e533d234a cmds: port vt from 9front 2017-08-30 23:07:07 +02:00
Giacomo Tesio 330b7cc217 awk: don't get into a infinite loop with eof while in string (thanks BurnZeZ) 2017-08-11 05:51:10 +02:00
Giacomo Tesio 6d242b3aa0 hjfs: import improvements from 9front 2017-08-11 05:09:34 +02:00
Giacomo Tesio fa0a121f17 cmds.json: remove mc.c 2017-08-11 04:19:59 +02:00
Giacomo Tesio 34950f084e cmds: remove old ms tool 2017-08-11 03:18:32 +02:00
Giacomo Tesio a0f7e71d41 rc: do not mess up argv 2017-08-11 03:18:32 +02:00
Giacomo Tesio 93dde48355 kernel: deep refactoring and cleanup
This large commit address several issues
- removed 386 directory: Jehanne is 64bit only
- simplified kernel options management
- rewritten boot process
- ported memory related stuff from 9front's 9/pc64
- removed devacpi
- removed old code
- deep refactor of awake syscall
- removed MCACHE support for mount
- fix libc's setjmp/longjmp
2017-08-11 03:18:32 +02:00
Giacomo Tesio c45cffeaf5 cmd: fix ancient bug on consolefs flush 2017-05-30 00:11:34 +02:00
Giacomo Tesio 3b4af1e4d8 gcc: enable -O2 compilation
To enable -O2 compilation we have to disable some optimizations:

- strict-aliasing (TODO: introduce required unions to enable this)
- aggressive-loop-optimizations
- array-bounds

Affected builds are

- sys/src/cmd/dossrv/build.json
- sys/src/cmd/ip/build.json
- sys/src/lib/authsrv/build.json
- sys/src/lib/memdraw/build.json
2017-05-19 01:15:34 +02:00