]> Zhao Yanbai Git Server - minix.git/log
minix.git
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

19 years agoselect.h should include <sys.time.h>. Added struct svrqueryparam to svrctl.h.
Philip Homburg [Tue, 28 Jun 2005 15:01:55 +0000 (15:01 +0000)]
select.h should include <sys.time.h>. Added struct svrqueryparam to svrctl.h.

19 years agoquick hacks for select
Philip Homburg [Tue, 28 Jun 2005 14:59:00 +0000 (14:59 +0000)]
quick hacks for select

19 years agouse relative directories in makefiles.
Philip Homburg [Tue, 28 Jun 2005 14:56:30 +0000 (14:56 +0000)]
use relative directories in makefiles.

19 years agomore stack for /bin/sh.
Philip Homburg [Tue, 28 Jun 2005 14:53:38 +0000 (14:53 +0000)]
more stack for /bin/sh.

19 years agoRemoved debug statement
Ben Gras [Tue, 28 Jun 2005 13:08:52 +0000 (13:08 +0000)]
Removed debug statement

19 years agoRemoved max-inode check from mkfs because of 32-bit inode numbers in V3
Ben Gras [Tue, 28 Jun 2005 11:58:17 +0000 (11:58 +0000)]
Removed max-inode check from mkfs because of 32-bit inode numbers in V3
FS. Tested by mkfs -i 200000, fsck, file system creating with 200000
inodes, fsck again.

19 years agoFixed bug that caused /dev/null to be created as file before being created
Ben Gras [Mon, 27 Jun 2005 16:31:27 +0000 (16:31 +0000)]
Fixed bug that caused /dev/null to be created as file before being created
as special file

19 years ago(Im)port of zlib-1.2.2
Ben Gras [Mon, 27 Jun 2005 13:05:04 +0000 (13:05 +0000)]
(Im)port of zlib-1.2.2

Ran configure with minix-friendly args and committed makefile. It's
a compromise to make zlib fit nicely into the current build system.

19 years agoMade src belong to bin in release cp.
Ben Gras [Mon, 27 Jun 2005 11:59:36 +0000 (11:59 +0000)]
Made src belong to bin in release cp.
Made /usr/include belong to bin in mtree.
Fixed compiler warning in fs/pipe.c.
Added mdb (minix debugger) manual page.
Added ethernet config function in setup script.

19 years agoUnknown controllers are no longer fatal.
Philip Homburg [Mon, 27 Jun 2005 11:45:26 +0000 (11:45 +0000)]
Unknown controllers are no longer fatal.

19 years agoGave sh more space for configure scripts; connected python to build;
Ben Gras [Mon, 27 Jun 2005 10:04:55 +0000 (10:04 +0000)]
Gave sh more space for configure scripts; connected python to build;
fixed nit in python confused about select definitions

19 years agoRenamed kermit_211 to kermit-2.1.1
Ben Gras [Mon, 27 Jun 2005 09:46:55 +0000 (09:46 +0000)]
Renamed kermit_211 to kermit-2.1.1

Fixed compile bug in postmort.c

19 years agoWrote a printenv(1)
Ben Gras [Mon, 27 Jun 2005 09:41:58 +0000 (09:41 +0000)]
Wrote a printenv(1)

19 years agoFixed sh2.sh test
Ben Gras [Mon, 27 Jun 2005 09:41:38 +0000 (09:41 +0000)]
Fixed sh2.sh test

19 years agoImported BSD-licensed rev(1) from FreeBSD (uses brand new getopt())
Ben Gras [Mon, 27 Jun 2005 09:32:29 +0000 (09:32 +0000)]
Imported BSD-licensed rev(1) from FreeBSD (uses brand new getopt())

19 years agoPrototype and definitions for getopt()
Ben Gras [Mon, 27 Jun 2005 09:30:49 +0000 (09:30 +0000)]
Prototype and definitions for getopt()

19 years agoFixed a few compile warnings
Ben Gras [Mon, 27 Jun 2005 09:30:33 +0000 (09:30 +0000)]
Fixed a few compile warnings

Imported a BSD-licensed getopt() from FreeBSD

19 years agoast@ df nits
Ben Gras [Mon, 27 Jun 2005 09:02:33 +0000 (09:02 +0000)]
ast@ df nits

19 years agoFixed typo in printf() in fxp debug statement (caused delta
Ben Gras [Mon, 27 Jun 2005 08:55:34 +0000 (08:55 +0000)]
Fixed typo in printf() in fxp debug statement (caused delta
value not to be printed)

19 years agoRemoved SM server.
Jorrit Herder [Mon, 27 Jun 2005 08:11:46 +0000 (08:11 +0000)]
Removed SM server.

19 years ago*** empty log message ***
Jorrit Herder [Fri, 24 Jun 2005 16:25:12 +0000 (16:25 +0000)]
*** empty log message ***

19 years agoCleaned up process table structure: removed p_type, p_pendcount.
Jorrit Herder [Fri, 24 Jun 2005 16:24:40 +0000 (16:24 +0000)]
Cleaned up process table structure: removed p_type, p_pendcount.
Removed stop sequence when MINIX is shut down.
Disabled send mask checks --- to be replaced by proper mechanism.
Fixed bug relating to 'shutdown -x'.
Simplified clock accounting of realtime.
Updated Makefiles for mkdept script.

19 years agoNew Makefiles for mkdep script.
Jorrit Herder [Fri, 24 Jun 2005 16:21:54 +0000 (16:21 +0000)]
New Makefiles for mkdep script.