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

19 years agoChanged Makefiles for mkdep script.
Jorrit Herder [Fri, 24 Jun 2005 16:21:21 +0000 (16:21 +0000)]
Changed Makefiles for mkdep script.
Updated debugging dumps at IS server, and function key control.

NOTE: pm modified with DEBUG() output, to be removed later.

19 years agoRemoved sys_exit() kernel call.
Jorrit Herder [Fri, 24 Jun 2005 16:19:41 +0000 (16:19 +0000)]
Removed sys_exit() kernel call.

19 years agoChanged kernel process table format affected ps.
Jorrit Herder [Fri, 24 Jun 2005 16:19:21 +0000 (16:19 +0000)]
Changed kernel process table format affected ps.
New mkdep.sh script and affected Makefile.

19 years agoRemoved ununsed types cpvec_t and cpvvec_t.
Jorrit Herder [Fri, 24 Jun 2005 16:17:29 +0000 (16:17 +0000)]
Removed ununsed types cpvec_t and cpvvec_t.
Removed SYS_EXIT kernel call.

19 years agoRenamed some types Uid_t, Gid_t, Mode_t, etc. for perl5.
Philip Homburg [Thu, 23 Jun 2005 11:07:31 +0000 (11:07 +0000)]
Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5.
More space for synctree.

19 years agoNewer version of anm. Should be taken from the ACK source tree.
Philip Homburg [Thu, 23 Jun 2005 09:50:54 +0000 (09:50 +0000)]
Newer version of anm. Should be taken from the ACK source tree.

19 years agoWorkaround for fishy situation that caused checksum on outgoing packets
Ben Gras [Wed, 22 Jun 2005 15:22:34 +0000 (15:22 +0000)]
Workaround for fishy situation that caused checksum on outgoing packets
to be broken in certain cases. (Seemingly when 2 short packets sent
back-to-back.) Buffer alignment seems to fix this ...

19 years agoCorrected buffer size calculation from MAX(bufsize,realsize)
Ben Gras [Tue, 21 Jun 2005 16:18:23 +0000 (16:18 +0000)]
Corrected buffer size calculation from MAX(bufsize,realsize)
to MIN(bufsize,realsize) while copying boot params.

19 years agoFixed various GCC compiler warnings for the kernel.
Jorrit Herder [Tue, 21 Jun 2005 10:47:46 +0000 (10:47 +0000)]
Fixed various GCC compiler warnings for the kernel.
Only main() now gives a warning about the return type (GCC wants an int).

19 years agoAdded function read_cpu_flags() that returns current cpu flags as a
Ben Gras [Mon, 20 Jun 2005 14:53:13 +0000 (14:53 +0000)]
Added function read_cpu_flags() that returns current cpu flags as a
long.  This is used to check for interrupts being disabled at the time
of a lock() call, if enabled in config.h. The number of times this
happens is then counted in the kinfo structure. These events (recursive
lockings) lead to nasty race conditions.

19 years agoPrint re-locking event count if enabled.
Ben Gras [Mon, 20 Jun 2005 14:52:00 +0000 (14:52 +0000)]
Print re-locking event count if enabled.

19 years agoAdded header file that decodes the intel x86 flags register.
Ben Gras [Mon, 20 Jun 2005 14:51:38 +0000 (14:51 +0000)]
Added header file that decodes the intel x86 flags register.

Added field in kinfo that can count re-lock()ing, controlled by
ENABLE_K_LOCKCHECK in config.h.

19 years agoNew bit map manipulation header.
Jorrit Herder [Mon, 20 Jun 2005 14:29:09 +0000 (14:29 +0000)]
New bit map manipulation header.
General purpose.

19 years agoUpdated function key mapping because of possible changes to NOTIFY.
Jorrit Herder [Mon, 20 Jun 2005 14:23:31 +0000 (14:23 +0000)]
Updated function key mapping because of possible changes to NOTIFY.

The TTY driver now only notifies the IS server about function key event,
but does not tell which keys are pressed. The IS servers queries the TTY
driver to find out about this.

19 years agoFix for gzip make clean if Makefile doesn't exist..
Ben Gras [Mon, 20 Jun 2005 13:30:24 +0000 (13:30 +0000)]
Fix for gzip make clean if Makefile doesn't exist..

19 years agoconnected ps and ftpd200 to commands build
Ben Gras [Mon, 20 Jun 2005 12:01:15 +0000 (12:01 +0000)]
connected ps and ftpd200 to commands build

disabled verbose message in readclock

19 years agoRemoved unused code in proc.c. New message passing code with pointer pointers
Jorrit Herder [Mon, 20 Jun 2005 11:26:48 +0000 (11:26 +0000)]
Removed unused code in proc.c. New message passing code with pointer pointers
is now in use. Rewrote ready() and unready() fuctions.

19 years agoFixed a few quirks in misc.c
Ben Gras [Mon, 20 Jun 2005 09:35:23 +0000 (09:35 +0000)]
Fixed a few quirks in misc.c
  . MAX used where it should've been MIN
  . buffer byte too short
  . inobvious use of & with && without parantheses
  . funny length checking