]> Zhao Yanbai Git Server - minix.git/log
minix.git
19 years agoFixed bug in PM that caused update program not to be scheduled, so that
Jorrit Herder [Wed, 20 Jul 2005 15:27:42 +0000 (15:27 +0000)]
Fixed bug in PM that caused update program not to be scheduled, so that
sync was not periodically run. Chain of timers was accidentially broken.

Kernel sends SIGKSTOP signal on shutdown. FS calls sync to clean up.

19 years agoVarious fixes and improvements.
Jorrit Herder [Wed, 20 Jul 2005 15:25:38 +0000 (15:25 +0000)]
Various fixes and improvements.
- fixed bug that caused IDLE to panic (irq hook inconsistency);
- kprintf() now accepts multiple arguments; moved to utility.c;
- prepare_shutdown() signals system processes with SIGKSTOP;
- phys_fill() renamed to phys_memset(), argument order changed;
- kmemset() removed in favor of phys_kmemset();
- kstrncpy() removed in favor of phys_copy();
- katoi, kstrncmp replaced by normal library procedure again;
- rm_irq_handler() interface changed (simply pass hook pointer);

19 years agoFixed bug that caused booting being aborted in some cases (e.g. after ls).
Ben Gras [Wed, 20 Jul 2005 15:16:53 +0000 (15:16 +0000)]
Fixed bug that caused booting being aborted in some cases (e.g. after ls).

19 years agoUninitialised field at init
Ben Gras [Wed, 20 Jul 2005 14:04:19 +0000 (14:04 +0000)]
Uninitialised field at init

19 years agoAnother test case for select - ptys (when implemented)
Ben Gras [Tue, 19 Jul 2005 16:03:39 +0000 (16:03 +0000)]
Another test case for select - ptys (when implemented)

19 years agoOpenpty() manpage
Ben Gras [Tue, 19 Jul 2005 16:02:39 +0000 (16:02 +0000)]
Openpty() manpage

19 years agonew -lutil, only openpty() for now
Ben Gras [Tue, 19 Jul 2005 16:01:37 +0000 (16:01 +0000)]
new -lutil, only openpty() for now

19 years agoHeader file for new -lutil (naming from freebsd)
Ben Gras [Tue, 19 Jul 2005 16:01:20 +0000 (16:01 +0000)]
Header file for new -lutil (naming from freebsd)

19 years agoMade phys_fill fill its 4-byte pattern any number of bytes (instead of
Ben Gras [Tue, 19 Jul 2005 16:00:25 +0000 (16:00 +0000)]
Made phys_fill fill its 4-byte pattern any number of bytes (instead of
rounded down to a 4-byte multiple)

Fixed dependency omission

19 years ago*** empty log message ***
Jorrit Herder [Tue, 19 Jul 2005 15:01:47 +0000 (15:01 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jorrit Herder [Tue, 19 Jul 2005 14:03:21 +0000 (14:03 +0000)]
*** empty log message ***

19 years agoRenamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util
Jorrit Herder [Tue, 19 Jul 2005 13:21:51 +0000 (13:21 +0000)]
Renamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util

19 years agoAdded new signal types for kernel events:
Jorrit Herder [Tue, 19 Jul 2005 12:24:51 +0000 (12:24 +0000)]
Added new signal types for kernel events:
- SIGKMESS: new kernel message (sent to TTY, IS, or LOG)
- SIGKSTOP: MINIX is shut down (sent to TTY-> switch to primary console)
- SIGKSIG: kernel signals pending (sent to PM)

Renamed SYS_SETPRIORITY to SYS_NICE.

19 years agoSystem processes can be signaled; signals are transformed in SYS_EVENT message
Jorrit Herder [Tue, 19 Jul 2005 12:21:36 +0000 (12:21 +0000)]
System processes can be signaled; signals are transformed in SYS_EVENT message
that passes signal map along. This mechanisms is also used for nonuser signals
like SIGKMESS, SIGKSTOP, SIGKSIG.

Revised comments of many system call handlers. Renamed setpriority to nice.

19 years agoSmall update to random number generator
Philip Homburg [Tue, 19 Jul 2005 12:16:55 +0000 (12:16 +0000)]
Small update to random number generator

19 years agoSystem processes started via servers=... boot monitor parameter
Jorrit Herder [Tue, 19 Jul 2005 12:14:10 +0000 (12:14 +0000)]
System processes started via servers=... boot monitor parameter
are now daemonized (instead of SIGNON procedure at PM).

19 years agoChanged Makefiles: drivers are now installed in /usr/sbin.
Jorrit Herder [Tue, 19 Jul 2005 12:12:48 +0000 (12:12 +0000)]
Changed Makefiles: drivers are now installed in /usr/sbin.
TTY now gets SYS_EVENT message with sigset (e.g., SIGKMESS, SIGKSTOP).

19 years agoRemoved PM signon for INET. Now daemonized in /usr/etc/rc.
Jorrit Herder [Tue, 19 Jul 2005 12:11:11 +0000 (12:11 +0000)]
Removed PM signon for INET. Now daemonized in /usr/etc/rc.
SIGTRAP generated in PM (where it belongs / no longer in kernel).
Updated Makefiles: servers are now installed in /usr/sbin.

19 years agoRandom number generator
Philip Homburg [Mon, 18 Jul 2005 15:40:24 +0000 (15:40 +0000)]
Random number generator

19 years agoFixed two uninitialized-data bugs.
Ben Gras [Mon, 18 Jul 2005 13:44:39 +0000 (13:44 +0000)]
Fixed two uninitialized-data bugs.

19 years agoMade memset system call listen to character argument
Ben Gras [Mon, 18 Jul 2005 12:31:11 +0000 (12:31 +0000)]
Made memset system call listen to character argument

19 years agoChanged phys_zero to phys_fill, which accepts a 4-byte argument saying what
Ben Gras [Mon, 18 Jul 2005 12:18:16 +0000 (12:18 +0000)]
Changed phys_zero to phys_fill, which accepts a 4-byte argument saying what
to fill with. Changed prototype and call to match.

19 years agoNit in compress about filenames; backup patched to use opendir() and
Ben Gras [Mon, 18 Jul 2005 09:33:27 +0000 (09:33 +0000)]
Nit in compress about filenames; backup patched to use opendir() and
readdir() (old dir format didn't work)

19 years agoMade dirent filename len a macro; corrected comment bug in bios.h reported
Ben Gras [Mon, 18 Jul 2005 09:11:48 +0000 (09:11 +0000)]
Made dirent filename len a macro; corrected comment bug in bios.h reported
by Andrew Schilt <aschilt@cox.net>.

19 years agoVerbose tar option was for debugging, shouldn't have been commited. Undone.
Ben Gras [Fri, 15 Jul 2005 11:49:34 +0000 (11:49 +0000)]
Verbose tar option was for debugging, shouldn't have been commited. Undone.

19 years agoNew alarm(2) timers mechanism.
Jorrit Herder [Thu, 14 Jul 2005 15:30:12 +0000 (15:30 +0000)]
New alarm(2) timers mechanism.
Kernel no longer keeps track of user alarms on behalf of the PM.
Instead, the PM maintains its own list of watchdog timers, and
uses one synchronous alarm (at the kernel) to get notifications
for expired user timers.

19 years agoRenamed file.
Jorrit Herder [Thu, 14 Jul 2005 15:27:40 +0000 (15:27 +0000)]
Renamed file.

19 years ago*** empty log message ***
Jorrit Herder [Thu, 14 Jul 2005 15:26:26 +0000 (15:26 +0000)]
*** empty log message ***

19 years agoRenamed system library functionality.
Jorrit Herder [Thu, 14 Jul 2005 15:16:12 +0000 (15:16 +0000)]
Renamed system library functionality.
Updated debug dumps of IS server.

19 years agoRenamed some system library functionality.
Jorrit Herder [Thu, 14 Jul 2005 15:15:18 +0000 (15:15 +0000)]
Renamed some system library functionality.

19 years agoUpdated system call library.
Jorrit Herder [Thu, 14 Jul 2005 15:14:44 +0000 (15:14 +0000)]
Updated system call library.
Updated various header files for consistency.
Remove some unused stuff ... better check to be done.

19 years agoRenamed various system calls.
Jorrit Herder [Thu, 14 Jul 2005 15:13:33 +0000 (15:13 +0000)]
Renamed various system calls.
Cleaned up system call library.
Added new alert() trap to replace notify() --- current notify will be removed
and alert() will be called notify() later.

19 years agoReorganized system call library; uses separate file per call now.
Jorrit Herder [Thu, 14 Jul 2005 15:12:12 +0000 (15:12 +0000)]
Reorganized system call library; uses separate file per call now.
New configuration header file to include/ exclude functionality.
Extracted privileged features from struct proc and create new struct priv.
Renamed various system calls for readability.

19 years ago..
Ben Gras [Wed, 13 Jul 2005 15:08:59 +0000 (15:08 +0000)]
..

19 years agoMinor improvements for autopart and setupcd
Ben Gras [Wed, 13 Jul 2005 14:59:43 +0000 (14:59 +0000)]
Minor improvements for autopart and setupcd

19 years agoMakefile fixes.
Ben Gras [Wed, 13 Jul 2005 14:59:04 +0000 (14:59 +0000)]
Makefile fixes.

19 years agoMade timeout and no. of errors in at_wini dynamically settable
Ben Gras [Wed, 13 Jul 2005 14:58:21 +0000 (14:58 +0000)]
Made timeout and no. of errors in at_wini dynamically settable
by ioctl; made catch-all function in driver table also called when
unrecognized ioctl called, so drivers can add their own ioctl codes.

19 years agoFixed a bug in kstrncpy() that caused mayhem whenever the buffer to be
Ben Gras [Wed, 13 Jul 2005 14:46:11 +0000 (14:46 +0000)]
Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be
copied into was the same size as the source string - it will keep on
filling with zeroes forever. This was a signed/unsigned bug, fixed by
making the kstrncpy argument ssize_t instead of size_t. This bug was
triggered by Chris Young <teddga@earthlink.net>, by dazzling coincedence -
changing OS_VERSION into something with one more character (exactly the
same size as the buffer in the kinfo struct).

Also noticed that the kstrncpy() call didn't null-terminate the strings
if necessary, also fixed.

19 years agosetup -> setupcd
Ben Gras [Wed, 13 Jul 2005 13:04:56 +0000 (13:04 +0000)]
setup -> setupcd

19 years agoIncreased timeout to avoid 'CU does not accept command' panic..
Ben Gras [Wed, 13 Jul 2005 11:50:30 +0000 (11:50 +0000)]
Increased timeout to avoid 'CU does not accept command' panic..

19 years agoFixed some warnings in dosread.c; initial version of autopart
Ben Gras [Wed, 13 Jul 2005 10:02:14 +0000 (10:02 +0000)]
Fixed some warnings in dosread.c; initial version of autopart
(don't try it yet ;))

19 years agoMisc fixes and additions
Ben Gras [Tue, 12 Jul 2005 13:10:06 +0000 (13:10 +0000)]
Misc fixes and additions

19 years ago..
Ben Gras [Mon, 11 Jul 2005 14:16:53 +0000 (14:16 +0000)]
..

19 years agoAdded sync() after logfile i/o to reduce risk of losing log entries after
Ben Gras [Mon, 11 Jul 2005 13:19:29 +0000 (13:19 +0000)]
Added sync() after logfile i/o to reduce risk of losing log entries after
e.g. crashes.

19 years agoIncreased mii_read timeout.
Philip Homburg [Mon, 11 Jul 2005 13:09:44 +0000 (13:09 +0000)]
Increased mii_read timeout.

19 years agoUsleep implementation based on select.
Philip Homburg [Mon, 11 Jul 2005 13:08:00 +0000 (13:08 +0000)]
Usleep implementation based on select.

19 years agoAdded random, strdup, and strtok_r.
Philip Homburg [Mon, 11 Jul 2005 13:06:27 +0000 (13:06 +0000)]
Added random, strdup, and strtok_r.

19 years agoSelect patches for TCP read and write. TCP support for FIONREAD.
Philip Homburg [Mon, 11 Jul 2005 13:02:59 +0000 (13:02 +0000)]
Select patches for TCP read and write. TCP support for FIONREAD.

19 years agoMany changes to simplify porting applications.
Philip Homburg [Mon, 11 Jul 2005 13:00:43 +0000 (13:00 +0000)]
Many changes to simplify porting applications.

19 years agoFlex-2.5.4.
Philip Homburg [Mon, 11 Jul 2005 12:54:10 +0000 (12:54 +0000)]
Flex-2.5.4.

19 years agoEnable debug output
Philip Homburg [Mon, 11 Jul 2005 12:49:24 +0000 (12:49 +0000)]
Enable debug output

19 years agoMore stack for tar
Philip Homburg [Mon, 11 Jul 2005 12:47:43 +0000 (12:47 +0000)]
More stack for tar

19 years agoMore stack for make
Philip Homburg [Mon, 11 Jul 2005 12:46:27 +0000 (12:46 +0000)]
More stack for make

19 years agoMore stack for acd.
Philip Homburg [Mon, 11 Jul 2005 12:45:57 +0000 (12:45 +0000)]
More stack for acd.

19 years agoMore stack for aal.
Philip Homburg [Mon, 11 Jul 2005 12:44:39 +0000 (12:44 +0000)]
More stack for aal.

19 years agokernel and servers send diagnostic messages to IS; IS sends them to TTY
Ben Gras [Fri, 8 Jul 2005 17:30:01 +0000 (17:30 +0000)]
kernel and servers send diagnostic messages to IS; IS sends them to TTY
and the new log driver if enabled.

new usyslogd is started from /usr/etc/rc. New device created by
MAKEDEV.sh. /var/log created by etc/mtree/minix.tree (on root for
now). Made select() slightly more generic, with less code duplication.

19 years agoAdded some data for the new log device.
Ben Gras [Fri, 8 Jul 2005 17:24:49 +0000 (17:24 +0000)]
Added some data for the new log device.

19 years agoNew log driver; buffers messages and makes them available to userland.
Ben Gras [Fri, 8 Jul 2005 17:23:44 +0000 (17:23 +0000)]
New log driver; buffers messages and makes them available to userland.
Added some fields in the generic device table to support this driver
using libdriver. Updated other drivers to fill these fields with nops
and NULLs.

19 years agousyslogd - microsyslogd that has a hard-coded configuration (read from
Ben Gras [Fri, 8 Jul 2005 17:21:50 +0000 (17:21 +0000)]
usyslogd - microsyslogd that has a hard-coded configuration (read from
/dev/klog and write to /var/log/messages). It's written so that more
sources and outputs could be added easily though.

19 years agoFixed annoying compile warnings.
Jorrit Herder [Fri, 8 Jul 2005 12:25:13 +0000 (12:25 +0000)]
Fixed annoying compile warnings.

19 years agoChanged FD_* select() fd set manipulation functions to macros. Also
Ben Gras [Wed, 6 Jul 2005 07:22:21 +0000 (07:22 +0000)]
Changed FD_* select() fd set manipulation functions to macros. Also
made FD_SETSIZE pre-#include-definable, with OPEN_MAX as default if unset.

19 years agocomplete, tick-resolution gettimeofday() implementation
Ben Gras [Wed, 6 Jul 2005 07:08:36 +0000 (07:08 +0000)]
complete, tick-resolution gettimeofday() implementation

19 years agofixed small operator priority bug; ! has higher precedence than & in
Ben Gras [Tue, 5 Jul 2005 11:08:15 +0000 (11:08 +0000)]
fixed small operator priority bug; ! has higher precedence than & in
(!flags & FLAGCHECK)

19 years agoA "fix" for bug no. 2 is to check if the process slot has disappeared.
Ben Gras [Mon, 4 Jul 2005 15:20:46 +0000 (15:20 +0000)]
A "fix" for bug no. 2 is to check if the process slot has disappeared.
Not a really good solution (as it might not catch situations in which this
is caused by another bug), but the forrest of checks necessary might be worse
than this quick fix - because when looking for the cause, I found some other
cases in which the PM would panic as well. See info in bug 2 for details.

Another fix is to delay notification of PM by SYSTASK of signals delivered
internally until after the reply (e.g. of exec()), because the reply would
be messed up otherwise (receiving the notify instead of reply). This caused
SIGTRAP not to be delivered properly with traced processes.

19 years ago . fsck has A for yes-to-all response
Ben Gras [Mon, 4 Jul 2005 13:34:24 +0000 (13:34 +0000)]
 . fsck has A for yes-to-all response
 . mkfs makes filesystems on devices >4GB, but truncates them at 4GB

19 years agoGuard /usr/adm/wtmp for shutdown -C check
Ben Gras [Mon, 4 Jul 2005 13:30:55 +0000 (13:30 +0000)]
Guard /usr/adm/wtmp for shutdown -C check

19 years ago. Added printing of ppid to PM dump output
Ben Gras [Mon, 4 Jul 2005 09:36:16 +0000 (09:36 +0000)]
. Added printing of ppid to PM dump output
. made PM pid 0, own parent (so ppid 0) instead of -1

19 years ago>4GB device detection; mkfs can make it, but FS can't use it...
Ben Gras [Mon, 4 Jul 2005 09:20:03 +0000 (09:20 +0000)]
>4GB device detection; mkfs can make it, but FS can't use it...

19 years agowarning about <4GB filesystems
Ben Gras [Mon, 4 Jul 2005 09:19:31 +0000 (09:19 +0000)]
warning about <4GB filesystems

19 years agoformat prettifictions; better task/server/user process detection logic
Ben Gras [Mon, 4 Jul 2005 09:19:15 +0000 (09:19 +0000)]
format prettifictions; better task/server/user process detection logic

19 years agoget/setpriority() and fsync() system calls
Ben Gras [Fri, 1 Jul 2005 18:01:33 +0000 (18:01 +0000)]
get/setpriority() and fsync() system calls

19 years agoNew nice utility, imported from FreeBSD, used to run processes at a different
Ben Gras [Fri, 1 Jul 2005 18:00:10 +0000 (18:00 +0000)]
New nice utility, imported from FreeBSD, used to run processes at a different
priority.

19 years agoCallnumbers and prototypes for get/setpriority() and fsync().
Ben Gras [Fri, 1 Jul 2005 17:58:57 +0000 (17:58 +0000)]
Callnumbers and prototypes for get/setpriority() and fsync().

19 years agoCalls and functionality for get/setpriority() and fsync().
Ben Gras [Fri, 1 Jul 2005 17:58:29 +0000 (17:58 +0000)]
Calls and functionality for get/setpriority() and fsync().

19 years agoSmall select manpage update.
Ben Gras [Fri, 1 Jul 2005 17:57:51 +0000 (17:57 +0000)]
Small select manpage update.
manpages for sync and getpriority/setpriority system calls.
manpage for nice utility.

19 years agoFix stupid assumption that caused headache.
Jorrit Herder [Fri, 1 Jul 2005 17:17:13 +0000 (17:17 +0000)]
Fix stupid assumption that caused headache.
Timers lib now seems to work fine again.

19 years agoAdded <sys/resource.h> for [gs]etpriority() call.
Ben Gras [Fri, 1 Jul 2005 09:59:49 +0000 (09:59 +0000)]
Added <sys/resource.h> for [gs]etpriority() call.

19 years agoFix to check for RDTSC instruction (above 486), and call another timing
Ben Gras [Fri, 1 Jul 2005 09:39:47 +0000 (09:39 +0000)]
Fix to check for RDTSC instruction (above 486), and call another timing
function instead if RDTSC is unavailable. This makes minix run on 486
again :) (presumably lower as well).

19 years agoLittle mkfs diagnostic help
Ben Gras [Fri, 1 Jul 2005 09:38:45 +0000 (09:38 +0000)]
Little mkfs diagnostic help

19 years agoChanges scheduling priorities for nice().
Jorrit Herder [Fri, 1 Jul 2005 09:08:41 +0000 (09:08 +0000)]
Changes scheduling priorities for nice().

19 years ago*** empty log message ***
Jorrit Herder [Thu, 30 Jun 2005 15:56:19 +0000 (15:56 +0000)]
*** empty log message ***

19 years agoChanged debug dumps of kernel process table (F1)
Jorrit Herder [Thu, 30 Jun 2005 15:55:43 +0000 (15:55 +0000)]
Changed debug dumps of kernel process table (F1)

19 years agoRewrite of process scheduling:
Jorrit Herder [Thu, 30 Jun 2005 15:55:19 +0000 (15:55 +0000)]
Rewrite of process scheduling:
- current and maximum priority per process;
- quantum size and current ticks left per process;
- max number of full quantums in a row allow
  (otherwise current priority is decremented)

19 years agoAdded formatting fixes for larger numbers in fsck and df; made mkfs
Ben Gras [Thu, 30 Jun 2005 13:04:57 +0000 (13:04 +0000)]
Added formatting fixes for larger numbers in fsck and df; made mkfs
test for devices larger than 4GB, so it won't try to test them (and print
a warning message), but it will write the FS.

19 years agoBasic fixes to make de start to read v3 filesystems. (Not complete.)
Ben Gras [Thu, 30 Jun 2005 12:59:49 +0000 (12:59 +0000)]
Basic fixes to make de start to read v3 filesystems. (Not complete.)

19 years agochanged ash to use pid_t
Philip Homburg [Thu, 30 Jun 2005 12:58:26 +0000 (12:58 +0000)]
changed ash to use pid_t

19 years agochanged max pid back to 30000
Philip Homburg [Thu, 30 Jun 2005 12:56:34 +0000 (12:56 +0000)]
changed max pid back to 30000

19 years agoAdded fchdir() system call, with corresponding manpage, Changelog and
Ben Gras [Wed, 29 Jun 2005 19:28:26 +0000 (19:28 +0000)]
Added fchdir() system call, with corresponding manpage, Changelog and
system include modifications.

19 years agoAdded mkstemp function. Should use a secure random number generator.
Philip Homburg [Wed, 29 Jun 2005 15:29:08 +0000 (15:29 +0000)]
Added mkstemp function. Should use a secure random number generator.

19 years agoMore stack for chown
Philip Homburg [Wed, 29 Jun 2005 15:27:12 +0000 (15:27 +0000)]
More stack for chown

19 years agoUse relative paths for make depend
Philip Homburg [Wed, 29 Jun 2005 15:26:10 +0000 (15:26 +0000)]
Use relative paths for make depend

19 years agoDisabled assertion
Philip Homburg [Wed, 29 Jun 2005 15:25:21 +0000 (15:25 +0000)]
Disabled assertion

19 years agoAdded some diagnostic
Ben Gras [Wed, 29 Jun 2005 12:04:10 +0000 (12:04 +0000)]
Added some diagnostic

19 years agoFix by Joren l'Ami <jwlami@cs.vu.nl> to make block devices work beyond
Ben Gras [Wed, 29 Jun 2005 11:56:56 +0000 (11:56 +0000)]
Fix by Joren l'Ami <jwlami@cs.vu.nl> to make block devices work beyond
2GB (e.g. for 'large' mkfs).

19 years agoLast inet change incomplete
Ben Gras [Wed, 29 Jun 2005 11:47:40 +0000 (11:47 +0000)]
Last inet change incomplete

19 years agoDisabled funny broadcast address complaint from inet
Ben Gras [Wed, 29 Jun 2005 11:42:53 +0000 (11:42 +0000)]
Disabled funny broadcast address complaint from inet

19 years agoFixed bug in AT driver: don't receive from HARDWARE, but use ANY.
Jorrit Herder [Wed, 29 Jun 2005 10:27:23 +0000 (10:27 +0000)]
Fixed bug in AT driver: don't receive from HARDWARE, but use ANY.
Timeouts are sent by the CLOCK.

19 years agoImport of dpeth 3c501/3c509b/.. ethernet driver by
Ben Gras [Wed, 29 Jun 2005 10:16:46 +0000 (10:16 +0000)]
Import of dpeth 3c501/3c509b/.. ethernet driver by
Giovanni Falzoni <fgalzoni@inwind.it>.

19 years ago_POSIX_SOURCE doesn't make sense in <sys/select.h>
Ben Gras [Tue, 28 Jun 2005 16:02:58 +0000 (16:02 +0000)]
_POSIX_SOURCE doesn't make sense in <sys/select.h>

19 years agoNew inet with partial select implementation
Philip Homburg [Tue, 28 Jun 2005 15:19:58 +0000 (15:19 +0000)]
New inet with partial select implementation