FUZIX.git
9 years agoREADME: fix bin file name to fuzix.bin
Faisal Abbas [Sun, 4 Jan 2015 17:15:57 +0000 (22:15 +0500)]
README: fix bin file name to fuzix.bin

9 years agostart: Note a FIXME
Alan Cox [Sun, 4 Jan 2015 17:38:33 +0000 (17:38 +0000)]
start: Note a FIXME

9 years agopcw8256: missed a devtty.h
Alan Cox [Sun, 4 Jan 2015 17:38:22 +0000 (17:38 +0000)]
pcw8256: missed a devtty.h

9 years agotrs80: use the new keyboard defines
Alan Cox [Sun, 4 Jan 2015 17:38:02 +0000 (17:38 +0000)]
trs80: use the new keyboard defines

9 years agonc100: use the new keyboard defines
Alan Cox [Sun, 4 Jan 2015 17:37:40 +0000 (17:37 +0000)]
nc100: use the new keyboard defines

9 years agovt: Add a vt_ helper for console keyboard code input
Alan Cox [Sun, 4 Jan 2015 17:37:10 +0000 (17:37 +0000)]
vt: Add a vt_ helper for console keyboard code input

9 years agotty: make keyboard maps visible and standard names
Alan Cox [Sun, 4 Jan 2015 17:36:32 +0000 (17:36 +0000)]
tty: make keyboard maps visible and standard names

9 years agodragon: make the keyboard maps external so we can load them from apps
Alan Cox [Sun, 4 Jan 2015 17:35:16 +0000 (17:35 +0000)]
dragon: make the keyboard maps external so we can load them from apps

9 years agodevio: note FIXME on device close
Alan Cox [Sun, 4 Jan 2015 17:34:40 +0000 (17:34 +0000)]
devio: note FIXME on device close

9 years agokeycode.h: Add definitions for keycodes
Alan Cox [Sun, 4 Jan 2015 17:33:43 +0000 (17:33 +0000)]
keycode.h: Add definitions for keycodes

We encode them 0x00-0x7F: standard keycodes
0x80-0x9F: space for magic fixups in unicode
0xA0+: escape, char sequences

9 years agotrs80: correct size of shift kbd map so we don't waste memory
Alan Cox [Sun, 4 Jan 2015 14:13:33 +0000 (14:13 +0000)]
trs80: correct size of shift kbd map so we don't waste memory

9 years agoMerge pull request #45 from willsowerbutts/fixstdlib
EtchedPixels [Sun, 4 Jan 2015 12:44:06 +0000 (12:44 +0000)]
Merge pull request #45 from willsowerbutts/fixstdlib

Fixes to standard library

9 years agoMerge pull request #46 from geijoenr/toupstream
EtchedPixels [Sun, 4 Jan 2015 12:37:20 +0000 (12:37 +0000)]
Merge pull request #46 from geijoenr/toupstream

msx2: add MegaSD driver

9 years agomsx2: add MegaSD driver
geijoenr [Sun, 4 Jan 2015 01:24:28 +0000 (02:24 +0100)]
msx2: add MegaSD driver

using the generic devsd driver maybe is not the fastest option because we need
to switch slots many times when sending commands, but it works as expected and
performance is acceptable for now.

9 years agoLibrary: Remove duplicate tcflush hiding in tcflow.c -- although we
Will Sowerbutts [Sat, 3 Jan 2015 23:20:35 +0000 (23:20 +0000)]
Library: Remove duplicate tcflush hiding in tcflow.c -- although we
still don't have a tcflow()!

9 years agoLibrary: Scrub additional functions when importing the sdcc libraries.
Will Sowerbutts [Sat, 3 Jan 2015 23:09:58 +0000 (23:09 +0000)]
Library: Scrub additional functions when importing the sdcc libraries.

9 years agocmp: Use _ultoa in place of ultostr
Will Sowerbutts [Sat, 3 Jan 2015 22:49:43 +0000 (22:49 +0000)]
cmp: Use _ultoa in place of ultostr

9 years agoApplications: Remove .bin files when cleaning
Will Sowerbutts [Sat, 3 Jan 2015 22:44:30 +0000 (22:44 +0000)]
Applications: Remove .bin files when cleaning

9 years agoLibrary: Make the string functions match the prototypes in stdlib.h
Will Sowerbutts [Sat, 3 Jan 2015 22:20:03 +0000 (22:20 +0000)]
Library: Make the string functions match the prototypes in stdlib.h

Rename single-argument ltoa and ultoa to _ltoa and _ultoa.

Rename non-standard ltostr and ultostr to __ltostr and __ultostr, change
prototypes in stdlib.h to match expected arguments.

New implementations of ltoa, ultoa based on __ltostr, __ultostr.

Change vfprintf to call __ltostr and __ultostr.

Change _itoa to call _ltoa.

Now we have:

_ltoa, _ultoa, _itoa: Take a single argument (value).

__ltostr, __ultostr: Take two arguments (value, radix).

ltoa, ultoa: Take three arguments (value, buffer, radix). Calls either
__ltostr or __ultostr and copies the result into the user-provided
buffer.

9 years agosignals: cleanup chksig a little, clear mask on ignored no-op signals
Alan Cox [Sat, 3 Jan 2015 22:20:04 +0000 (22:20 +0000)]
signals: cleanup chksig a little, clear mask on ignored no-op signals

9 years agotty: small improvements
Alan Cox [Sat, 3 Jan 2015 22:03:03 +0000 (22:03 +0000)]
tty: small improvements

Shave 90 bytes off tty_inproc (still too big!)
Fix VKILL bug
Timeout/VMIN handling

9 years agoMerge pull request #44 from willsowerbutts/buildfixes2
EtchedPixels [Sat, 3 Jan 2015 20:51:30 +0000 (20:51 +0000)]
Merge pull request #44 from willsowerbutts/buildfixes2

Fixes to build the kernel

9 years agoMerge pull request #43 from willsowerbutts/buildfixes
EtchedPixels [Sat, 3 Jan 2015 20:50:32 +0000 (20:50 +0000)]
Merge pull request #43 from willsowerbutts/buildfixes

Minor improvements to Makefiles etc

9 years agoLibrary: Do not fail when c.lib symlink already exists
Will Sowerbutts [Sat, 3 Jan 2015 17:58:05 +0000 (17:58 +0000)]
Library: Do not fail when c.lib symlink already exists

9 years agoKernel: Makefile corrections
Will Sowerbutts [Sat, 3 Jan 2015 16:38:18 +0000 (16:38 +0000)]
Kernel: Makefile corrections

9 years agoKernel: Convert final uses of c_dirty to CDIRTY flag
Will Sowerbutts [Sat, 3 Jan 2015 16:37:33 +0000 (16:37 +0000)]
Kernel: Convert final uses of c_dirty to CDIRTY flag

9 years agoKernel: Fix minor typo in timer.h
Will Sowerbutts [Sat, 3 Jan 2015 16:28:04 +0000 (16:28 +0000)]
Kernel: Fix minor typo in timer.h

9 years agoMinor Makefile fixes
Will Sowerbutts [Sat, 3 Jan 2015 16:17:37 +0000 (16:17 +0000)]
Minor Makefile fixes

Libary: Link syslib.lib to c.lib (which is the name fcc expects to use)

Applications: Use fcc to build, remove reference to env.c and uname.c
which are not present in the git repository.

9 years agoMake Library/Makefile clean and build all tools
Will Sowerbutts [Sat, 3 Jan 2015 16:05:56 +0000 (16:05 +0000)]
Make Library/Makefile clean and build all tools

9 years agofcc: Make installation directory easier to configure
Will Sowerbutts [Sat, 3 Jan 2015 16:03:24 +0000 (16:03 +0000)]
fcc: Make installation directory easier to configure

9 years agoflock: add C library pieces
Alan Cox [Sat, 3 Jan 2015 15:58:53 +0000 (15:58 +0000)]
flock: add C library pieces

9 years agoerrno: match the kernel change
Alan Cox [Sat, 3 Jan 2015 15:57:59 +0000 (15:57 +0000)]
errno: match the kernel change

We add ENOLCK but also make EAGAIN match EWOULDBLOCK as Linux does. That avoids
a whole ton of annoying problems with BSD v SYS5

9 years agoswap.c: Fix off by one
Alan Cox [Sat, 3 Jan 2015 15:49:23 +0000 (15:49 +0000)]
swap.c: Fix off by one

9 years agoptab_end: redo the various process table scans
Alan Cox [Sat, 3 Jan 2015 15:41:36 +0000 (15:41 +0000)]
ptab_end: redo the various process table scans

Currently we do a compare with &ptab[maxproc], which generates a pile of
maths to scale maxproc each time around the loop. This is *silly* and its
repeated in various places where it takes space, time and registers.

Instead in start.c evaluate &ptab[maxproc] once after maxproc is computed
and save it as ptab_end. Our comparisons now now don't do the math. This
saves us 180 bytes, or nearly half the cost of adding flock support.

9 years agosyscall_fs2: correct version of staticfast fix
Alan Cox [Sat, 3 Jan 2015 15:38:12 +0000 (15:38 +0000)]
syscall_fs2: correct version of staticfast fix

9 years agoflock: fix wrong assignment due to staticfast conversion
Alan Cox [Sat, 3 Jan 2015 15:36:39 +0000 (15:36 +0000)]
flock: fix wrong assignment due to staticfast conversion

9 years agosyscall_fs2: fix inode reference count error on chmod/chown failure
Alan Cox [Sat, 3 Jan 2015 15:21:04 +0000 (15:21 +0000)]
syscall_fs2: fix inode reference count error on chmod/chown failure

9 years agoflock: Add BSD flock functionality to FUZIX
Alan Cox [Sat, 3 Jan 2015 15:14:05 +0000 (15:14 +0000)]
flock: Add BSD flock functionality to FUZIX

System 5 has its own rather more convoluted locking so for once we'll favour
BSD over System 5.

This is an initial patch for testing.

Theory:

We recover spare bits from the inode c_busy, which is now a set of flags not
a bool with 7 wasted bits. Z80 has cheap bit ops, and the dirty bit is the top
bit which is cheap on most other processors too.

The file can be in one of 16 lock states kept in four of the recovered bits
(CFLOCK bits)

     0 - unlocked
     1 - 14 that many shared locks (15+ gives you an ENOLCKS error)
     15 - exclusive

We use one of the spare O_ bits in each file object to keep a single bit
telling us this handle has a lock. The BSD API only allows one lock per file
table entry so that one bit is sufficient because we know that

       - if our lock bit is set and the file handle is exclusive lock
         then we must own the lock (as its exclusive) so we drop to 0 locks
       - if our lock bit is set and the handle is not exclusive locked
         then we can't own an exclusive lock so we must therefore be one of
         the shared locks

Total cost about 450 bytes of kernel memory and no extra data.

9 years agoutime: Add the Unix API weirdnesses for utime(filename, NULL);
Alan Cox [Sat, 3 Jan 2015 13:49:23 +0000 (13:49 +0000)]
utime: Add the Unix API weirdnesses for utime(filename, NULL);

9 years agoinode: rearrange NET bits so netd can also use them
Alan Cox [Sat, 3 Jan 2015 13:39:20 +0000 (13:39 +0000)]
inode: rearrange NET bits so netd can also use them

This lets us borrow the pipe read code for processes and the pipe write code
for the net daemon to queue data into a socket.

9 years agoMakefile: build strcasestr
Alan Cox [Sat, 3 Jan 2015 13:38:56 +0000 (13:38 +0000)]
Makefile: build strcasestr

9 years agofcc: fix typo
Alan Cox [Sat, 3 Jan 2015 13:38:31 +0000 (13:38 +0000)]
fcc: fix typo

9 years agotimer: note which sdcc version the bug affects
Alan Cox [Sat, 3 Jan 2015 13:38:01 +0000 (13:38 +0000)]
timer: note which sdcc version the bug affects

9 years agoMerge pull request #42 from geijoenr/toupstream
EtchedPixels [Sat, 3 Jan 2015 00:28:48 +0000 (00:28 +0000)]
Merge pull request #42 from geijoenr/toupstream

more msx2 patches

9 years agoMakefile: tidy up levee Makefile
Alan Cox [Sat, 3 Jan 2015 00:28:22 +0000 (00:28 +0000)]
Makefile: tidy up levee Makefile

9 years agolevee: A very small vi editor
Alan Cox [Sat, 3 Jan 2015 00:18:41 +0000 (00:18 +0000)]
levee: A very small vi editor

Still a bit large but with some clean up and tweaking ought to be ok on bigger
boxes, if a bit tight on a 48K bank.

9 years agofcc: fix bug introduced with multiple -c support
Alan Cox [Sat, 3 Jan 2015 00:12:30 +0000 (00:12 +0000)]
fcc: fix bug introduced with multiple -c support

9 years agotimer: reverse order of assigment in set_timer_duration
geijoenr [Fri, 2 Jan 2015 12:05:17 +0000 (13:05 +0100)]
timer: reverse order of assigment in set_timer_duration

  sdcc picks up wrong 'duration' from the
  stack if done the other way around

9 years agomsx2: add slot mapping
geijoenr [Fri, 2 Jan 2015 22:59:15 +0000 (23:59 +0100)]
msx2: add slot mapping

some hardware is accessed using memory mapped ports, we need to
map the slot containing the hw before doing IO, and switch back
when finished.

9 years agomsx2: fix boot from 64kb roms
geijoenr [Fri, 2 Jan 2015 22:56:12 +0000 (23:56 +0100)]
msx2: fix boot from 64kb roms

adding more stuff can make the COMMONMEM to extend beyond bank2,
in that case we need a 64Kb rom and also copy over rom bank3.

9 years agostrcasestr: another BSDism
Alan Cox [Fri, 2 Jan 2015 23:06:15 +0000 (23:06 +0000)]
strcasestr: another BSDism

9 years agosys/types.h: ssize_t
Alan Cox [Fri, 2 Jan 2015 23:00:18 +0000 (23:00 +0000)]
sys/types.h: ssize_t

9 years agoerr: Add the extended BSD errc/warnc/verrc/warnc stuff
Alan Cox [Fri, 2 Jan 2015 22:59:40 +0000 (22:59 +0000)]
err: Add the extended BSD errc/warnc/verrc/warnc stuff

9 years agosignal.h: add sig_atomic_t
Alan Cox [Fri, 2 Jan 2015 22:43:27 +0000 (22:43 +0000)]
signal.h: add sig_atomic_t

9 years agoutimes: Add utimes as a wrapper around utime
Alan Cox [Fri, 2 Jan 2015 22:41:02 +0000 (22:41 +0000)]
utimes: Add utimes as a wrapper around utime

9 years agostrlcpy/strlcat: Add these newer BSD string functions
Alan Cox [Fri, 2 Jan 2015 22:33:59 +0000 (22:33 +0000)]
strlcpy/strlcat: Add these newer BSD string functions

9 years agoerr.h: include stdarg
Alan Cox [Fri, 2 Jan 2015 22:28:08 +0000 (22:28 +0000)]
err.h: include stdarg

9 years agolibc: add BSD err/warn/errx/warnx interfaces
Alan Cox [Fri, 2 Jan 2015 22:22:06 +0000 (22:22 +0000)]
libc: add BSD err/warn/errx/warnx interfaces

9 years agotime: threadsafe functions
Alan Cox [Fri, 2 Jan 2015 21:50:47 +0000 (21:50 +0000)]
time: threadsafe functions

Not much use at the moment but since many modern apps favour them anyway we
might as well provide them given they are pretty much zero cost.

9 years agoclock: Fix up all the clock 1 handling
Alan Cox [Fri, 2 Jan 2015 20:39:02 +0000 (20:39 +0000)]
clock: Fix up all the clock 1 handling

We can't do things simply because clock 1 runs at 10HZ (as from the last
kernel fixes). Instead try and avoid divides, and also pull a few cunning
tricks for fixed division by ten functions

9 years agotimer: Make the ticks timer run at 10hz not at a platform rate
Alan Cox [Fri, 2 Jan 2015 20:00:03 +0000 (20:00 +0000)]
timer: Make the ticks timer run at 10hz not at a platform rate

We now get a sensible time between rollovers and more importantly we can
do much better in the C library with division by 10 than random per platform
numbers.

9 years agohz: add __hz to get HZ value
Alan Cox [Fri, 2 Jan 2015 19:30:59 +0000 (19:30 +0000)]
hz: add __hz to get HZ value

We need this to fix the CLOCK_MONOTONIC timer which is in HZ sized ticks not
seconds

9 years agosleep: use the monotonic timer
Alan Cox [Fri, 2 Jan 2015 18:06:51 +0000 (18:06 +0000)]
sleep: use the monotonic timer

9 years agoMakefile: build the new APIs
Alan Cox [Fri, 2 Jan 2015 18:06:41 +0000 (18:06 +0000)]
Makefile: build the new APIs

9 years agolibc: More of the POSIX time APIs
Alan Cox [Fri, 2 Jan 2015 18:06:27 +0000 (18:06 +0000)]
libc: More of the POSIX time APIs

9 years agoincludes: Add more of the POSIX time interfaces
Alan Cox [Fri, 2 Jan 2015 18:05:35 +0000 (18:05 +0000)]
includes: Add more of the POSIX time interfaces

9 years agosyscall_proc: fix _pause() with timeout return
Alan Cox [Fri, 2 Jan 2015 18:05:06 +0000 (18:05 +0000)]
syscall_proc: fix _pause() with timeout return

9 years agoinode: socket hooks
Alan Cox [Fri, 2 Jan 2015 12:09:08 +0000 (12:09 +0000)]
inode: socket hooks

On read we use the pipe logic for sockets, on write they work rather like a
device. This slightly odd set up means that we can buffer incoming packets
through the disk cache and thus onto disk if needed. It's also very cheap
from a code size point of view.

9 years agofcc: Support fcc -c 1.c 2.c 3.c
Alan Cox [Fri, 2 Jan 2015 11:57:00 +0000 (11:57 +0000)]
fcc: Support fcc -c 1.c 2.c 3.c

9 years agolibs: build regexp with lower optimisation
Alan Cox [Fri, 2 Jan 2015 11:56:13 +0000 (11:56 +0000)]
libs: build regexp with lower optimisation

SDCC will build regexp but for some reason takes hours to do so when optimising
any more

9 years agoMakefile: add a special rule for sed
Alan Cox [Fri, 2 Jan 2015 11:33:25 +0000 (11:33 +0000)]
Makefile: add a special rule for sed

sed needs to be built with lower optimisation or sdcc runs for hours

9 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Fri, 2 Jan 2015 11:28:28 +0000 (11:28 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

Backmerge

9 years agoman,sort,df: prototypes
Alan Cox [Fri, 2 Jan 2015 11:27:48 +0000 (11:27 +0000)]
man,sort,df: prototypes

Line us back up with the now more correct headers

9 years agolibclean: honour an environment variable for the SDCC libs
Alan Cox [Fri, 2 Jan 2015 11:15:13 +0000 (11:15 +0000)]
libclean: honour an environment variable for the SDCC libs

9 years agoKernel: allow the user to set an environment variable for the sdcc libs
Alan Cox [Fri, 2 Jan 2015 11:14:50 +0000 (11:14 +0000)]
Kernel: allow the user to set an environment variable for the sdcc libs

9 years agocurses: we don't actually have a curses yet but use termios not sgtty
Alan Cox [Fri, 2 Jan 2015 10:49:00 +0000 (10:49 +0000)]
curses: we don't actually have a curses yet but use termios not sgtty

9 years agolibs/Makefile: build the syscalls
Alan Cox [Fri, 2 Jan 2015 10:48:45 +0000 (10:48 +0000)]
libs/Makefile: build the syscalls

9 years agofuzix.h: remove old stale file
Alan Cox [Fri, 2 Jan 2015 10:37:14 +0000 (10:37 +0000)]
fuzix.h: remove old stale file

9 years agops.c: Update code to build with FUZIX userland
Alan Cox [Fri, 2 Jan 2015 10:35:30 +0000 (10:35 +0000)]
ps.c: Update code to build with FUZIX userland
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

(Removed fuzix.h: Alan Cox)

FIXME:
The proc size depends upon a kernel only define
Should resize the proctab properly not hard code a max size
(or print as it reads)

9 years agotypes: Add clock_t into sys/types.h, and include the types.h in proc.h
Alan Cox [Fri, 2 Jan 2015 10:35:05 +0000 (10:35 +0000)]
types: Add clock_t into sys/types.h, and include the types.h in proc.h

9 years agoincludes: Add proc.h with process related definitions
Alan Cox [Fri, 2 Jan 2015 10:30:38 +0000 (10:30 +0000)]
includes: Add proc.h with process related definitions
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agosys/stat.h: fix S_ISBLK macro
Alan Cox [Fri, 2 Jan 2015 10:24:01 +0000 (10:24 +0000)]
sys/stat.h: fix S_ISBLK macro

From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agotime.h: clock should return clock_t
Alan Cox [Fri, 2 Jan 2015 10:22:57 +0000 (10:22 +0000)]
time.h: clock should return clock_t
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agoinit: sighandler argument is signed int.
Alan Cox [Fri, 2 Jan 2015 10:22:19 +0000 (10:22 +0000)]
init: sighandler argument is signed int.
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agodf.c: Add explicit cast to char * for fsys
Alan Cox [Fri, 2 Jan 2015 10:21:36 +0000 (10:21 +0000)]
df.c: Add explicit cast to char * for fsys
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agostring.h: fix bzero declaration.
Alan Cox [Fri, 2 Jan 2015 10:20:26 +0000 (10:20 +0000)]
string.h: fix bzero declaration.
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agosyscalls: _getfsys takes a uint16_t not an int.
Alan Cox [Fri, 2 Jan 2015 10:17:08 +0000 (10:17 +0000)]
syscalls: _getfsys takes a uint16_t not an int.

From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agoutils: don't try and build termcap using code yet (we have no libtermcap)
Alan Cox [Fri, 2 Jan 2015 10:16:03 +0000 (10:16 +0000)]
utils: don't try and build termcap using code yet (we have no libtermcap)

From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agosgtty: stale UZI file - remove
Alan Cox [Fri, 2 Jan 2015 10:15:14 +0000 (10:15 +0000)]
sgtty: stale UZI file - remove

FUZIX has termios

9 years agosys/wait.h: remove stray ^Z
Alan Cox [Fri, 2 Jan 2015 10:12:06 +0000 (10:12 +0000)]
sys/wait.h: remove stray ^Z

9 years agotimes: correct returned type to be clock_t
Alan Cox [Fri, 2 Jan 2015 10:09:18 +0000 (10:09 +0000)]
times: correct returned type to be clock_t

From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agosignal: correct handler prototype, removed bogus SIG_HOLD
Alan Cox [Fri, 2 Jan 2015 10:06:18 +0000 (10:06 +0000)]
signal: correct handler prototype, removed bogus SIG_HOLD

From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agolibclean: Search for SDCC in the same places as kernel/Makefile
Alan Cox [Fri, 2 Jan 2015 10:03:27 +0000 (10:03 +0000)]
libclean: Search for SDCC in the same places as kernel/Makefile

From: Sergio L. Pascual <https://github.com/slp/FUZIX>

9 years agoz80pack: createdrives should use mktemp
Alan Cox [Fri, 2 Jan 2015 09:41:28 +0000 (09:41 +0000)]
z80pack: createdrives should use mktemp

9 years agoMerge pull request #41 from slp/filesys_fix
EtchedPixels [Fri, 2 Jan 2015 09:32:33 +0000 (09:32 +0000)]
Merge pull request #41 from slp/filesys_fix

Filesys fix

9 years agoMerge pull request #40 from slp/noninteractive_ucp
EtchedPixels [Fri, 2 Jan 2015 09:21:11 +0000 (09:21 +0000)]
Merge pull request #40 from slp/noninteractive_ucp

Noninteractive UCP

9 years agocreatedrives: delete drives if already exist.
Sergio L. Pascual [Fri, 2 Jan 2015 01:28:52 +0000 (02:28 +0100)]
createdrives: delete drives if already exist.

9 years agofilesys.c: on getdev, fail if s_mounted == 0.
Sergio L. Pascual [Fri, 2 Jan 2015 01:12:53 +0000 (02:12 +0100)]
filesys.c: on getdev, fail if s_mounted == 0.

9 years agofilesys.c: on newfstab, search for entries where m_dev == NO_DEVICE
Sergio L. Pascual [Fri, 2 Jan 2015 01:10:52 +0000 (02:10 +0100)]
filesys.c: on newfstab, search for entries where m_dev == NO_DEVICE

9 years agostart.c: initialize global fs_tab structure.
Sergio L. Pascual [Fri, 2 Jan 2015 01:07:47 +0000 (02:07 +0100)]
start.c: initialize global fs_tab structure.