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

19 years agoConnected ps to build
Ben Gras [Mon, 20 Jun 2005 09:23:55 +0000 (09:23 +0000)]
Connected ps to build

19 years agoFixed bug that caused the PM to brutalize the contents of the 'memory'
Ben Gras [Sun, 19 Jun 2005 23:16:08 +0000 (23:16 +0000)]
Fixed bug that caused the PM to brutalize the contents of the 'memory'
variable. Parsing worked, but future requests for the variable (such as
by the sysenv command) returned truncated data. This caused the system
(e.g. setup script) to think the amount of memory was tiny, and caused
the enabling of swapspace, while it is unnecessary.

19 years agoselect-test-set compile fixes.
Ben Gras [Sun, 19 Jun 2005 23:13:57 +0000 (23:13 +0000)]
select-test-set compile fixes.

19 years agoFixed nasty bug that would cause FS to loop forever in rw_scattered (while
Ben Gras [Sun, 19 Jun 2005 22:33:49 +0000 (22:33 +0000)]
Fixed nasty bug that would cause FS to loop forever in rw_scattered (while
syncing, for instance) if blocks are unwritable. This could happen if:

  . write goes beyond device boundary to a block device
  . write is done for a complete block or more; thus the
    block is not retrieved first (at which point it would be noticed
    it doesn't exist), but the buffer is simply allocated
  . at write time, the device i/o doesn't succeed, but rw_scattered
    doesn't understand this and loops forever trying to get the block
    written.

Currently, if no blocks can be written, the loop aborts, leaving all
buffers intact but potentially dirty. When invalidate() is called on the
device, the buffers will disappear (even if dirty). Same story for if
the buffer is removed due to rmed from lru chain. There's not much we
can do about this, however - we can't keep these blocks around, forever
occupying a buffer in the buffer cache.

The second part of the solution is not to let unwritable buffers be
created in the first place. How to do this, however, without doing a
wasteful read first?

It looks like this code was in 2.0.4 too.

19 years agoMade mkfs a little smarter about how to report empty devices.
Ben Gras [Sun, 19 Jun 2005 22:28:05 +0000 (22:28 +0000)]
Made mkfs a little smarter about how to report empty devices.

Also a little smarter about manually specified number of blocks that is
larger than the device capacity.

19 years agoMade libpci recognize my pci controller at home (again)
Ben Gras [Sun, 19 Jun 2005 22:11:04 +0000 (22:11 +0000)]
Made libpci recognize my pci controller at home (again)

19 years agoFixed various nits in the make/release process.
Ben Gras [Fri, 17 Jun 2005 16:28:36 +0000 (16:28 +0000)]
Fixed various nits in the make/release process.

19 years agoPart of fs timers library, forgot to add this in previous commit.
Ben Gras [Fri, 17 Jun 2005 13:49:56 +0000 (13:49 +0000)]
Part of fs timers library, forgot to add this in previous commit.

19 years agoFixes for /root homedir.
Ben Gras [Fri, 17 Jun 2005 13:48:16 +0000 (13:48 +0000)]
Fixes for /root homedir.

19 years agoAdded (fake) readlink().
Ben Gras [Fri, 17 Jun 2005 13:47:29 +0000 (13:47 +0000)]
Added (fake) readlink().

Compile fix for fslib (BITS_PER_BLOCK was renamed to FS_BITS_PER_BLOCK).

Added extra arg to various timer functions.

19 years agoSelect test-set imported from the minix contributions, with permission
Ben Gras [Fri, 17 Jun 2005 13:45:40 +0000 (13:45 +0000)]
Select test-set imported from the minix contributions, with permission
to modify and distribute from Jose Manuel Gomez, the author
(jmgomez@linuxmail.org).

19 years agoVarious compile fixes.
Ben Gras [Fri, 17 Jun 2005 13:42:53 +0000 (13:42 +0000)]
Various compile fixes.

Imported gzip.

Changed setup script not to insist cwd is / when running from cd.

19 years agoRenamed commands to cmds - make is confused that the commands directory
Ben Gras [Fri, 17 Jun 2005 13:42:06 +0000 (13:42 +0000)]
Renamed commands to cmds - make is confused that the commands directory
exists.

19 years agoStarted select() implementation.
Ben Gras [Fri, 17 Jun 2005 13:41:12 +0000 (13:41 +0000)]
Started select() implementation.

Added interface to select() for pipes (also named pipes), and select()
stubs for regular files.

Added timer library in FS that select() is the first customer of.

This is unfinished, but committed anyway to get a new release out to
Al and testers.

19 years agoChanged timer library function args.
Ben Gras [Fri, 17 Jun 2005 13:37:41 +0000 (13:37 +0000)]
Changed timer library function args.

Added select() support for tty fd's (not ptys yet).

19 years agoChanged arguments of timer library functions.
Ben Gras [Fri, 17 Jun 2005 13:36:01 +0000 (13:36 +0000)]
Changed arguments of timer library functions.

19 years agoStarted select() manpage.
Ben Gras [Fri, 17 Jun 2005 13:35:21 +0000 (13:35 +0000)]
Started select() manpage.

Added lstat() comment to stat().

19 years agoVarious select() support flags, prototypes, definitions.
Ben Gras [Fri, 17 Jun 2005 13:34:47 +0000 (13:34 +0000)]
Various select() support flags, prototypes, definitions.

Major numbers for inet, tty, ctty.

Defined _MINIX_VERSION to check for major minix version in applications.

Prototype for (fake) readlink().

19 years agoAdded back boot banner for CD
Ben Gras [Fri, 17 Jun 2005 13:25:06 +0000 (13:25 +0000)]
Added back boot banner for CD

19 years agoApplied MINIX 2.0.4 pathes provides by Al Woodhull.
Jorrit Herder [Fri, 17 Jun 2005 13:00:04 +0000 (13:00 +0000)]
Applied MINIX 2.0.4 pathes provides by Al Woodhull.

19 years agoUpdated boot monitor help menu.
Jorrit Herder [Fri, 17 Jun 2005 11:52:55 +0000 (11:52 +0000)]
Updated boot monitor help menu.

19 years agoAdded dummy readlink() call that returns an error (we don't have symlinks
Ben Gras [Fri, 17 Jun 2005 11:43:24 +0000 (11:43 +0000)]
Added dummy readlink() call that returns an error (we don't have symlinks
yet)

also select() stub

19 years agoRemoved unnecessary call to unlock() from exception().
Jorrit Herder [Fri, 17 Jun 2005 09:50:12 +0000 (09:50 +0000)]
Removed unnecessary call to unlock() from exception().

19 years agoFixed code passed to boot monitor after shutdown.
Jorrit Herder [Fri, 17 Jun 2005 09:40:02 +0000 (09:40 +0000)]
Fixed code passed to boot monitor after shutdown.

19 years agoRemoved duplicate 'done' output after calling readall.
Jorrit Herder [Fri, 17 Jun 2005 09:36:08 +0000 (09:36 +0000)]
Removed duplicate 'done' output after calling readall.