FUZIX.git
8 years agowall.c: make open utmp file in /var, not /etc
Brett Gordon [Fri, 22 Apr 2016 06:01:28 +0000 (02:01 -0400)]
wall.c: make open utmp file in /var, not /etc

8 years ago/v7/cmd: add makefile for 6809
Brett Gordon [Fri, 22 Apr 2016 05:29:28 +0000 (01:29 -0400)]
/v7/cmd: add makefile for 6809

8 years agobuild.mk: add missing opendir_r/closedir_r
Alan Cox [Thu, 21 Apr 2016 15:01:17 +0000 (16:01 +0100)]
build.mk: add missing opendir_r/closedir_r

Reported by Dmitri (DinkaM)

8 years agonet_wiznet: initial sketch of driver
Alan Cox [Fri, 15 Apr 2016 19:21:15 +0000 (20:21 +0100)]
net_wiznet: initial sketch of driver

8 years agoplatform: add the platform param hook
Alan Cox [Mon, 11 Apr 2016 13:06:17 +0000 (14:06 +0100)]
platform: add the platform param hook

8 years agoFwd: [PATCH] dragon-nx32: Sane defaults for keyboard repeat rates
Tormod Volden [Sat, 9 Apr 2016 19:18:49 +0000 (21:18 +0200)]
Fwd: [PATCH] dragon-nx32: Sane defaults for keyboard repeat rates

This patch is still outstanding, unless you have fixed it in some general code.

Tormod

---------- Forwarded message ----------
From: Tormod Volden <lists.tormod@gmail.com>
Date: Sun, Mar 6, 2016 at 11:48 PM
Subject: [PATCH] dragon-nx32: Sane defaults for keyboard repeat rates
To: Alan Cox <alan@etchedpixels.co.uk>

From: Tormod Volden <debian.tormod@gmail.com>

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoMerge pull request #337 from beretta42/param
EtchedPixels [Sat, 9 Apr 2016 16:09:54 +0000 (17:09 +0100)]
Merge pull request #337 from beretta42/param

coco3: add dummy platform_param()

8 years agoplatforms: add needed platform_param() helper
Alan Cox [Sat, 9 Apr 2016 16:09:20 +0000 (17:09 +0100)]
platforms: add needed platform_param() helper

8 years agoutent: Fix casting
Alan Cox [Sat, 9 Apr 2016 16:07:28 +0000 (17:07 +0100)]
utent: Fix casting

sizeof is an size_t (unsigned 16bit in some cases), we therefore need to cast
it to 32bit signed *before* negation.

8 years agoinit: allow initgroups to fail
Alan Cox [Sat, 9 Apr 2016 16:01:23 +0000 (17:01 +0100)]
init: allow initgroups to fail

8 years agoMerge pull request #339 from beretta42/IGNCR
EtchedPixels [Sat, 9 Apr 2016 15:59:39 +0000 (16:59 +0100)]
Merge pull request #339 from beretta42/IGNCR

tty.c: add IGNCR. (helps with TCP connections)

8 years agodragon-nx32: Fix CoCo keymap wrangling
Tormod Volden [Sun, 3 Apr 2016 07:33:01 +0000 (09:33 +0200)]
dragon-nx32: Fix CoCo keymap wrangling

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodragon-nx32: Add empty platform_param()
Tormod Volden [Wed, 30 Mar 2016 15:56:46 +0000 (17:56 +0200)]
dragon-nx32: Add empty platform_param()

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodragon-nx32: Update build instructions with more applications
Tormod Volden [Wed, 30 Mar 2016 15:56:44 +0000 (17:56 +0200)]
dragon-nx32: Update build instructions with more applications

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodw: Use 6809 link script from util
Tormod Volden [Wed, 30 Mar 2016 15:56:43 +0000 (17:56 +0200)]
dw: Use 6809 link script from util

Since it is identical anyway.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agolevee: Build with optimization on 6809
Tormod Volden [Wed, 30 Mar 2016 15:56:42 +0000 (17:56 +0200)]
levee: Build with optimization on 6809

Works with the latest gcc6809 patch.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agotty.c: add IGNCR. (helps with TCP connections)
Brett Gordon [Tue, 5 Apr 2016 16:17:09 +0000 (12:17 -0400)]
tty.c: add IGNCR. (helps with TCP connections)

8 years agococo3: add dummy platform_param()
Brett Gordon [Tue, 29 Mar 2016 12:53:53 +0000 (08:53 -0400)]
coco3: add dummy platform_param()

8 years agosocktest: remove hardcoded /test path
Alan Cox [Sat, 26 Mar 2016 14:50:18 +0000 (14:50 +0000)]
socktest: remove hardcoded /test path

We now ask for the path specified and save to the matching local basename.

8 years agokernel.h: dummy in_group for level 1 boxes
Alan Cox [Sat, 26 Mar 2016 14:26:59 +0000 (14:26 +0000)]
kernel.h: dummy in_group for level 1 boxes

8 years agoLibrary: build initgroups on 6502 and 6809
Alan Cox [Sat, 26 Mar 2016 14:26:31 +0000 (14:26 +0000)]
Library: build initgroups on 6502 and 6809

8 years agofortune: add a small efficient implementation of fortune
Alan Cox [Sat, 26 Mar 2016 00:27:19 +0000 (00:27 +0000)]
fortune: add a small efficient implementation of fortune

8 years agoopendir: remove unused variable
Alan Cox [Fri, 25 Mar 2016 22:29:27 +0000 (22:29 +0000)]
opendir: remove unused variable

8 years agostart; update comment
Alan Cox [Fri, 25 Mar 2016 22:27:16 +0000 (22:27 +0000)]
start; update comment

8 years agosyscall_fs3: correct EROFS handling for devices on a read-only fs
Alan Cox [Fri, 25 Mar 2016 22:22:51 +0000 (22:22 +0000)]
syscall_fs3: correct EROFS handling for devices on a read-only fs

With this you can now boot up into a shell with r/o root so once we fix up
the native fsck to do fuzix and fit in the memory space you'll be able to
rescue the root fs natively

8 years agostart: allow for argument parsing by system and platform
Alan Cox [Fri, 25 Mar 2016 22:21:26 +0000 (22:21 +0000)]
start: allow for argument parsing by system and platform

Note: this re-orders a few bits of input and device_init(). Hopefully that
won't break anyone. It's needed so that we can make device_init depend upon
the parsed parameters on the command line.

We also accept ro/rw for the root mount type and we pass unknown arguments on
to init.

It's not entirely useful as we don't yet support remounting!

8 years agoalloc_socket: interrupt lock
Alan Cox [Fri, 25 Mar 2016 21:07:07 +0000 (21:07 +0000)]
alloc_socket: interrupt lock

In the normal case this is safe because we always allocate from in kernel.
Likewise it's safe for accept with the native TCP/IP. However it's not safe
if we have a hardware TCP/IP and it implements accept() and thus allocates
accepting sockets from an interrupt.

So block IRQs for the brief scan.

[noted by Brett]

8 years agoincludes: add shutdown
Alan Cox [Fri, 25 Mar 2016 20:52:41 +0000 (20:52 +0000)]
includes: add shutdown

8 years agosyscall_name: one more syscall
Alan Cox [Fri, 25 Mar 2016 20:51:29 +0000 (20:51 +0000)]
syscall_name: one more syscall

8 years agokdata: one more syscall
Alan Cox [Fri, 25 Mar 2016 20:50:47 +0000 (20:50 +0000)]
kdata: one more syscall

8 years agosyscall_net: add shutdown()
Alan Cox [Fri, 25 Mar 2016 20:50:20 +0000 (20:50 +0000)]
syscall_net: add shutdown()

8 years agodev/net: shutdown hooks
Alan Cox [Fri, 25 Mar 2016 20:49:54 +0000 (20:49 +0000)]
dev/net: shutdown hooks

8 years agosyscall_fs2: chown rules
Alan Cox [Fri, 25 Mar 2016 20:24:41 +0000 (20:24 +0000)]
syscall_fs2: chown rules

Under non-historic unix you don't get to chown a file to a group you are not
a member of

8 years agoinit: set groups on L2 system
Alan Cox [Fri, 25 Mar 2016 20:20:57 +0000 (20:20 +0000)]
init: set groups on L2 system

8 years agogroups: trivial tidy
Alan Cox [Fri, 25 Mar 2016 20:20:30 +0000 (20:20 +0000)]
groups: trivial tidy

8 years agoinitgroups: final I hope fix
Alan Cox [Fri, 25 Mar 2016 20:19:26 +0000 (20:19 +0000)]
initgroups: final I hope fix

8 years agosyscall_level2: fix set/getgroups
Alan Cox [Fri, 25 Mar 2016 20:18:23 +0000 (20:18 +0000)]
syscall_level2: fix set/getgroups

8 years agoinitgroups: bug fix
Alan Cox [Fri, 25 Mar 2016 19:59:42 +0000 (19:59 +0000)]
initgroups: bug fix

8 years agoinitgroups: add to library and headers
Alan Cox [Fri, 25 Mar 2016 19:36:34 +0000 (19:36 +0000)]
initgroups: add to library and headers

8 years agoinitgroups: clean up so we can use it
Alan Cox [Fri, 25 Mar 2016 19:36:13 +0000 (19:36 +0000)]
initgroups: clean up so we can use it

8 years agogroups: add command
Alan Cox [Fri, 25 Mar 2016 19:30:16 +0000 (19:30 +0000)]
groups: add command

8 years agosocktest: turns into a tool for fetching files via http
Alan Cox [Fri, 25 Mar 2016 17:40:02 +0000 (17:40 +0000)]
socktest: turns into a tool for fetching files via http

Handy for debugging

8 years agosocket: add missing bits to include headers
Alan Cox [Fri, 25 Mar 2016 17:39:09 +0000 (17:39 +0000)]
socket: add missing bits to include headers

8 years agoMakefile: add Z80 hton* to mix and an install rule
Alan Cox [Fri, 25 Mar 2016 17:38:46 +0000 (17:38 +0000)]
Makefile: add Z80 hton* to mix and an install rule

8 years agohtonl/s: Z80 implementation
Alan Cox [Fri, 25 Mar 2016 17:38:28 +0000 (17:38 +0000)]
htonl/s: Z80 implementation

8 years agonet_z80pack: work around SDCC funny and remove debug
Alan Cox [Fri, 25 Mar 2016 17:37:35 +0000 (17:37 +0000)]
net_z80pack: work around SDCC funny and remove debug

8 years agoadventures: push generated fixes
Alan Cox [Wed, 23 Mar 2016 10:44:55 +0000 (10:44 +0000)]
adventures: push generated fixes

Mostly nop insertions on condition only lines

8 years agoadventures: update the generator files to remove debug comments
Alan Cox [Tue, 22 Mar 2016 22:45:36 +0000 (22:45 +0000)]
adventures: update the generator files to remove debug comments

8 years agofcc: support -o option with -c
Alan Cox [Sun, 20 Mar 2016 21:03:20 +0000 (21:03 +0000)]
fcc: support -o option with -c

8 years agokill: use _itoa and also fix some formatting
Alan Cox [Sun, 20 Mar 2016 19:36:02 +0000 (19:36 +0000)]
kill: use _itoa and also fix some formatting

Fixes Z80 build fail as reported by Arielle Albon

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sat, 19 Mar 2016 18:54:16 +0000 (18:54 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agogames: Add the Scott Adams and Brian Howarth games
Alan Cox [Sat, 19 Mar 2016 18:53:49 +0000 (18:53 +0000)]
games: Add the Scott Adams and Brian Howarth games

8 years agofcc: fix mishandling of extension trimming
Alan Cox [Sat, 19 Mar 2016 17:59:12 +0000 (17:59 +0000)]
fcc: fix mishandling of extension trimming

8 years agolibs: fix build rules for curses
Alan Cox [Sat, 19 Mar 2016 17:58:59 +0000 (17:58 +0000)]
libs: fix build rules for curses

8 years agoMerge pull request #334 from beretta42/kill
EtchedPixels [Sat, 19 Mar 2016 11:32:06 +0000 (11:32 +0000)]
Merge pull request #334 from beretta42/kill

kill: more text signals, print list.

8 years agobcpl: README typo
Alan Cox [Sat, 19 Mar 2016 11:28:39 +0000 (11:28 +0000)]
bcpl: README typo

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sat, 19 Mar 2016 11:19:08 +0000 (11:19 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoicint: speed up initial load and put a debug item back
Alan Cox [Sat, 19 Mar 2016 11:18:23 +0000 (11:18 +0000)]
icint: speed up initial load and put a debug item back

8 years agoBCPL: The pieces needed to run the BCPL 2 kit on Fuzix
Alan Cox [Fri, 18 Mar 2016 18:11:08 +0000 (18:11 +0000)]
BCPL: The pieces needed to run the BCPL 2 kit on Fuzix

You will need a bit over 50K of TPA at the moment in order to run this,
but that is sufficient to actually recompile the compiler.

See the README

8 years agoMerge pull request #332 from beretta42/adventure
EtchedPixels [Thu, 17 Mar 2016 23:36:19 +0000 (23:36 +0000)]
Merge pull request #332 from beretta42/adventure

Adventure: makefile for gcc6809

8 years agoadvent: remove old comment in 6809 makefile.
Brett Gordon [Thu, 17 Mar 2016 21:47:31 +0000 (17:47 -0400)]
advent: remove old comment in 6809 makefile.

8 years agoadvent: compile with optimizations off for gcc6809 :(
Brett Gordon [Thu, 17 Mar 2016 21:46:12 +0000 (17:46 -0400)]
advent: compile with optimizations off for gcc6809 :(

8 years agoadvent: add makefile for 6809
Brett Gordon [Thu, 17 Mar 2016 15:22:09 +0000 (11:22 -0400)]
advent: add makefile for 6809

8 years agoinit: Remove unsafe memory freeup
Alan Cox [Thu, 17 Mar 2016 13:25:01 +0000 (13:25 +0000)]
init: Remove unsafe memory freeup

As per Brett's note

8 years agoadvent: fix crash with long texts due to undersized buffers
Alan Cox [Thu, 17 Mar 2016 12:47:43 +0000 (12:47 +0000)]
advent: fix crash with long texts due to undersized buffers

8 years agoadvgen.c: fix some odd formatting
Alan Cox [Thu, 17 Mar 2016 12:47:33 +0000 (12:47 +0000)]
advgen.c: fix some odd formatting

8 years agoadvgen: support generating a cross endian database
Alan Cox [Thu, 17 Mar 2016 12:35:43 +0000 (12:35 +0000)]
advgen: support generating a cross endian database

Before Brett & Tormod notice it's broken on 6809 at the moment ;-)

8 years agodatabase.c: Fix crash in dark rooms
Alan Cox [Wed, 16 Mar 2016 22:01:20 +0000 (22:01 +0000)]
database.c: Fix crash in dark rooms

8 years agoadventure: as required by all 8bit micros
Alan Cox [Wed, 16 Mar 2016 21:42:00 +0000 (21:42 +0000)]
adventure: as required by all 8bit micros

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 16 Mar 2016 13:56:40 +0000 (13:56 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoinit: fix bug noted by Brett
Alan Cox [Wed, 16 Mar 2016 13:55:51 +0000 (13:55 +0000)]
init: fix bug noted by Brett

This should sort out clear_utmp misbehaving

8 years agokill: more text signals, print list.
Brett Gordon [Wed, 16 Mar 2016 06:15:59 +0000 (02:15 -0400)]
kill: more text signals, print list.

8 years agoMerge pull request #329 from beretta42/ucp
EtchedPixels [Tue, 15 Mar 2016 15:43:19 +0000 (15:43 +0000)]
Merge pull request #329 from beretta42/ucp

ucp: add "ln" command.

8 years agoucp: add "ln" command.
Brett Gordon [Tue, 15 Mar 2016 15:07:14 +0000 (11:07 -0400)]
ucp: add "ln" command.

8 years agoMerge pull request #327 from beretta42/umount
EtchedPixels [Tue, 8 Mar 2016 17:20:53 +0000 (17:20 +0000)]
Merge pull request #327 from beretta42/umount

bugfix: umount

8 years agoumount.c: fix formatting
Brett Gordon [Tue, 8 Mar 2016 16:40:55 +0000 (11:40 -0500)]
umount.c: fix formatting

8 years agoumount.c: bugfix: not rewriting /etc/mtab correctly.
Brett Gordon [Tue, 8 Mar 2016 16:38:25 +0000 (11:38 -0500)]
umount.c: bugfix: not rewriting /etc/mtab correctly.

8 years agoumount.c: remove pointless tokification: mntpt not used to re-write mtab.
Brett Gordon [Tue, 8 Mar 2016 16:32:27 +0000 (11:32 -0500)]
umount.c: remove pointless tokification: mntpt not used to re-write mtab.

8 years agoMerge pull request #325 from beretta42/keyrepeat2
EtchedPixels [Mon, 7 Mar 2016 16:05:28 +0000 (16:05 +0000)]
Merge pull request #325 from beretta42/keyrepeat2

coco3: Match other platforms keyrepeating code.

8 years agoMerge pull request #326 from beretta42/tar
EtchedPixels [Mon, 7 Mar 2016 16:04:47 +0000 (16:04 +0000)]
Merge pull request #326 from beretta42/tar

tar.c: don't archive the archive file

8 years agotar.c: don't archive the archive file
Brett Gordon [Mon, 7 Mar 2016 14:46:25 +0000 (09:46 -0500)]
tar.c: don't archive the archive file

8 years agococo3: Match other platforms keyrepeating code.
Brett Gordon [Mon, 7 Mar 2016 14:12:28 +0000 (09:12 -0500)]
coco3: Match other platforms keyrepeating code.

8 years agodevtty: propogate Brett's keyboard repeat all over the place
Alan Cox [Sun, 6 Mar 2016 21:33:31 +0000 (21:33 +0000)]
devtty: propogate Brett's keyboard repeat all over the place

8 years agodragon: add devtty, bring in line with current link set
Alan Cox [Sun, 6 Mar 2016 20:10:26 +0000 (20:10 +0000)]
dragon: add devtty, bring in line with current link set

8 years agotrs80: keyboard repeat support
Alan Cox [Sun, 6 Mar 2016 20:06:56 +0000 (20:06 +0000)]
trs80: keyboard repeat support

8 years agovt: keyboard repeat rate ioctls
Alan Cox [Sun, 6 Mar 2016 20:06:38 +0000 (20:06 +0000)]
vt: keyboard repeat rate ioctls

8 years agoMerge pull request #322 from beretta42/keyrepeat2
EtchedPixels [Sun, 6 Mar 2016 19:39:32 +0000 (19:39 +0000)]
Merge pull request #322 from beretta42/keyrepeat2

coco3: Add key repeating for keyboard driver

8 years agoMerge pull request #324 from beretta42/discard
EtchedPixels [Sun, 6 Mar 2016 19:32:31 +0000 (19:32 +0000)]
Merge pull request #324 from beretta42/discard

coco3: move bunch of init stuff to .discard

8 years agococo3: move devtty_init() to .discard section, clean up whitespace.
Brett Gordon [Sun, 6 Mar 2016 18:53:41 +0000 (13:53 -0500)]
coco3: move devtty_init() to .discard section, clean up whitespace.

8 years agococo3: add video_init() to .discard
Brett Gordon [Sun, 6 Mar 2016 18:49:47 +0000 (13:49 -0500)]
coco3: add video_init() to .discard

8 years agococo3: put sdc init code in .discard
Brett Gordon [Sun, 6 Mar 2016 18:02:30 +0000 (13:02 -0500)]
coco3: put sdc init code in .discard

8 years agococo3: force devide_discard to discard section.
Brett Gordon [Sun, 6 Mar 2016 17:51:31 +0000 (12:51 -0500)]
coco3: force devide_discard to discard section.

8 years agococo3: move basic system initialization to .discard section
Brett Gordon [Sun, 6 Mar 2016 15:21:00 +0000 (10:21 -0500)]
coco3: move basic system initialization to .discard section

8 years agoMerge pull request #323 from beretta42/opendir
EtchedPixels [Sat, 5 Mar 2016 16:43:24 +0000 (16:43 +0000)]
Merge pull request #323 from beretta42/opendir

opendir_r: bugfix: bad first iteration of readdir

8 years agoopendir_r: bugfix: bad first iteration of readdir
Brett Gordon [Sat, 5 Mar 2016 14:55:08 +0000 (09:55 -0500)]
opendir_r: bugfix: bad first iteration of readdir

8 years agococo3: Add key repeating for keyboard driver
Brett Gordon [Thu, 3 Mar 2016 20:49:51 +0000 (15:49 -0500)]
coco3: Add key repeating for keyboard driver

8 years agoinet: First pass fixing up the inet_ functions
Alan Cox [Thu, 3 Mar 2016 13:46:41 +0000 (13:46 +0000)]
inet: First pass fixing up the inet_ functions

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Thu, 3 Mar 2016 13:45:55 +0000 (13:45 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoLibrary: Add an install to put the headers in the right place
Alan Cox [Thu, 3 Mar 2016 13:43:45 +0000 (13:43 +0000)]
Library: Add an install to put the headers in the right place

8 years agoMerge pull request #321 from beretta42/core
EtchedPixels [Thu, 3 Mar 2016 13:42:18 +0000 (13:42 +0000)]
Merge pull request #321 from beretta42/core

coredump: clear u_error for new batch of calls.