]> Zhao Yanbai Git Server - minix.git/log
minix.git
17 years agoUse bitwise not instead of logical not on PIE flag when disabling periodic
Ben Gras [Fri, 12 Jan 2007 16:33:41 +0000 (16:33 +0000)]
Use bitwise not instead of logical not on PIE flag when disabling periodic
interrupts to avoid clobbering register B. This seems to have fixed the
corrupting-CMOS bug when enabling profiling.

17 years agouse servers/inet/mq.[ch] to queue messages using mq_queue() in
Ben Gras [Fri, 12 Jan 2007 13:33:12 +0000 (13:33 +0000)]
use servers/inet/mq.[ch] to queue messages using mq_queue() in
libdriver.  at_wini now queues messages it can't handle it receives when
waiting for an interrupt. this way it can do receive(ANY) and timeouts
should be working again (were broken for VFS, as with the advent of VFS,
at_wini could get requests from a filesystem while it was waiting for an
interrupt - as a hack, the receive() was changed to receive(HARDWARE)).

Added mq.c to libdriver, and made libdriver an actual library that
drivers link with -L../libdriver -ldriver. (So adding files, if
necessary, is easier next time.)

17 years agoIn some configurations of non-working networking, packman will hang a
Ben Gras [Thu, 11 Jan 2007 14:35:29 +0000 (14:35 +0000)]
In some configurations of non-working networking, packman will hang a
very long time or forever retrieving the packages list. It's tricky to
test connectivity automatically, so ask every time.  Reported by
Stanislav Kapustin <kapustin_stanislav@hotmail.com>.

17 years agoZlib is now an optional package.
Ben Gras [Tue, 9 Jan 2007 17:08:31 +0000 (17:08 +0000)]
Zlib is now an optional package.

17 years agoTake arch+version specific packages List file.
Ben Gras [Mon, 8 Jan 2007 15:10:27 +0000 (15:10 +0000)]
Take arch+version specific packages List file.

17 years agoctty command without parameters to disable serial console.
Philip Homburg [Mon, 8 Jan 2007 14:30:11 +0000 (14:30 +0000)]
ctty command without parameters to disable serial console.

17 years agoVFS cleanup (mostly open).
Philip Homburg [Fri, 5 Jan 2007 16:36:55 +0000 (16:36 +0000)]
VFS cleanup (mostly open).

17 years agoDon't let rs232 code send REVIVEs.
Ben Gras [Thu, 4 Jan 2007 12:06:04 +0000 (12:06 +0000)]
Don't let rs232 code send REVIVEs.

17 years agoUse svn instead of cvs
Ben Gras [Fri, 22 Dec 2006 16:43:30 +0000 (16:43 +0000)]
Use svn instead of cvs

17 years agointerface.h is unused (remainder from Ingmar's work)
Ben Gras [Fri, 22 Dec 2006 15:50:17 +0000 (15:50 +0000)]
interface.h is unused (remainder from Ingmar's work)

17 years agoarch/i386/include/protect.h is unnecessary; add make.conf to etc/ and
Ben Gras [Fri, 22 Dec 2006 15:48:27 +0000 (15:48 +0000)]
arch/i386/include/protect.h is unnecessary; add make.conf to etc/ and
note about it in docs/UPDATING.

17 years agoSplit of architecture-dependent and -independent functions for i386,
Ben Gras [Fri, 22 Dec 2006 15:22:27 +0000 (15:22 +0000)]
Split of architecture-dependent and -independent functions for i386,
mainly in the kernel and headers. This split based on work by
Ingmar Alting <iaalting@cs.vu.nl> done for his Minix PowerPC architecture
port.

 . kernel does not program the interrupt controller directly, do any
   other architecture-dependent operations, or contain assembly any more,
   but uses architecture-dependent functions in arch/$(ARCH)/.
 . architecture-dependent constants and types defined in arch/$(ARCH)/include.
 . <ibm/portio.h> moved to <minix/portio.h>, as they have become, for now,
   architecture-independent functions.
 . int86, sdevio, readbios, and iopenable are now i386-specific kernel calls
   and live in arch/i386/do_* now.
 . i386 arch now supports even less 86 code; e.g. mpx86.s and klib86.s have
   gone, and 'machine.protected' is gone (and always taken to be 1 in i386).
   If 86 support is to return, it should be a new architecture.
 . prototypes for the architecture-dependent functions defined in
   kernel/arch/$(ARCH)/*.c but used in kernel/ are in kernel/proto.h
 . /etc/make.conf included in makefiles and shell scripts that need to
   know the building architecture; it defines ARCH=<arch>, currently only
   i386.
 . some basic per-architecture build support outside of the kernel (lib)
 . in clock.c, only dequeue a process if it was ready
 . fixes for new include files

files deleted:
 . mpx/klib.s - only for choosing between mpx/klib86 and -386
 . klib86.s - only for 86

i386-specific files files moved (or arch-dependent stuff moved) to arch/i386/:
 . mpx386.s (entry point)
 . klib386.s
 . sconst.h
 . exception.c
 . protect.c
 . protect.h
 . i8269.c

17 years ago . fsck needs more memory
Ben Gras [Fri, 22 Dec 2006 13:40:37 +0000 (13:40 +0000)]
 . fsck needs more memory
 . fsck must deal with s_max_file_size in superblock being larger
   than LONG_MAX now that off_t is signed

17 years agoMore detailed upgrade procedure.
Philip Homburg [Fri, 22 Dec 2006 13:36:18 +0000 (13:36 +0000)]
More detailed upgrade procedure.

17 years agoRemoved verbose statements from vfs and mfs
Ben Gras [Fri, 22 Dec 2006 11:54:42 +0000 (11:54 +0000)]
Removed verbose statements from vfs and mfs

17 years agoBSD versions of strcasecmp() and strncasecmp() after a bug
Ben Gras [Tue, 19 Dec 2006 13:15:16 +0000 (13:15 +0000)]
BSD versions of strcasecmp() and strncasecmp() after a bug
in strcasecmp() reported by Rogier Meurs <rogier@meurs.org>.

17 years agomake pci driver run as root, so it can call procstat
Ben Gras [Fri, 15 Dec 2006 15:56:36 +0000 (15:56 +0000)]
make pci driver run as root, so it can call procstat

17 years agoSetjmp/longjmp updates and cleanup.
David van Moolenbroek [Fri, 8 Dec 2006 16:23:18 +0000 (16:23 +0000)]
Setjmp/longjmp updates and cleanup.

17 years agoMissing lseek64 library functions.
Philip Homburg [Thu, 7 Dec 2006 20:01:43 +0000 (20:01 +0000)]
Missing lseek64 library functions.

17 years agoSome 64-bit file offset changes that were left out accidentally in the first
Philip Homburg [Wed, 6 Dec 2006 15:21:27 +0000 (15:21 +0000)]
Some 64-bit file offset changes that were left out accidentally in the first
commit.

17 years agoFirst cut at 64-bit file offsets in block devices for mkfs/fsck.
Philip Homburg [Mon, 27 Nov 2006 14:21:43 +0000 (14:21 +0000)]
First cut at 64-bit file offsets in block devices for mkfs/fsck.

17 years agoReplaced <servers/fs/...> with <servers/mfs/...>
Philip Homburg [Fri, 24 Nov 2006 14:04:01 +0000 (14:04 +0000)]
Replaced <servers/fs/...> with <servers/mfs/...>

17 years agoBetter error handling in _mount.c
Philip Homburg [Fri, 24 Nov 2006 14:01:14 +0000 (14:01 +0000)]
Better error handling in _mount.c

17 years agochmod needs more space
Philip Homburg [Fri, 24 Nov 2006 13:59:13 +0000 (13:59 +0000)]
chmod needs more space

17 years agoSmall image doesn't fit on boot floppy.
Philip Homburg [Fri, 24 Nov 2006 13:57:37 +0000 (13:57 +0000)]
Small image doesn't fit on boot floppy.

17 years agoRevert back to previous minised
Ben Gras [Fri, 17 Nov 2006 16:12:08 +0000 (16:12 +0000)]
Revert back to previous minised

18 years agoFix warnings (Ingmar Alting)
Ben Gras [Fri, 10 Nov 2006 18:19:38 +0000 (18:19 +0000)]
Fix warnings (Ingmar Alting)

18 years agoFix some warnings (by Ingmar Alting)
Ben Gras [Fri, 10 Nov 2006 18:13:02 +0000 (18:13 +0000)]
Fix some warnings (by Ingmar Alting)

18 years agoAdded missing defines in include/minix/vfsif.h
Philip Homburg [Fri, 10 Nov 2006 15:05:32 +0000 (15:05 +0000)]
Added missing defines in include/minix/vfsif.h

18 years agoGetdents implementation in library/vfs/mfs.
Philip Homburg [Thu, 9 Nov 2006 16:22:54 +0000 (16:22 +0000)]
Getdents implementation in library/vfs/mfs.
Changed readdir, etc. to use getdents

18 years agoTypo reported by ville.solarius@gmail.com
Ben Gras [Mon, 6 Nov 2006 18:02:22 +0000 (18:02 +0000)]
Typo reported by ville.solarius@gmail.com

18 years agoset $PATH so /usr/local/egrep isn't used; also exclude /var/log from package
Ben Gras [Fri, 3 Nov 2006 14:47:28 +0000 (14:47 +0000)]
set $PATH so /usr/local/egrep isn't used; also exclude /var/log from package

18 years agoNew sed manpage
Ben Gras [Thu, 2 Nov 2006 16:51:04 +0000 (16:51 +0000)]
New sed manpage

18 years agoold sed out, new sed in
Ben Gras [Thu, 2 Nov 2006 16:48:47 +0000 (16:48 +0000)]
old sed out, new sed in

18 years agoNew sed
Ben Gras [Thu, 2 Nov 2006 16:48:15 +0000 (16:48 +0000)]
New sed

18 years agoobsolete server.
Ben Gras [Wed, 1 Nov 2006 16:53:45 +0000 (16:53 +0000)]
obsolete server.

18 years agoat_wini now calls pci_reserve.
Philip Homburg [Wed, 1 Nov 2006 14:55:00 +0000 (14:55 +0000)]
at_wini now calls pci_reserve.

18 years agoExplicit conversion from O_ACCMODE to minix [RW]_BIT is clearer
Ben Gras [Wed, 1 Nov 2006 14:17:47 +0000 (14:17 +0000)]
Explicit conversion from O_ACCMODE to minix [RW]_BIT is clearer
and catches bogus values (such as 3).

18 years agors changes (also use driver configurations in the image ramdisk)
Philip Homburg [Tue, 31 Oct 2006 13:35:04 +0000 (13:35 +0000)]
rs changes (also use driver configurations in the image ramdisk)

18 years agoIgnore .svn dir as well as CVS dir.
Ben Gras [Mon, 30 Oct 2006 16:11:57 +0000 (16:11 +0000)]
Ignore .svn dir as well as CVS dir.

18 years agoSystem statistical and call profiling
Ben Gras [Mon, 30 Oct 2006 15:53:38 +0000 (15:53 +0000)]
System statistical and call profiling
support by Rogier Meurs <rogier@meurs.org>.

18 years agoMerge of VFS by Balasz Gerofi with Minix trunk.
Ben Gras [Wed, 25 Oct 2006 13:40:36 +0000 (13:40 +0000)]
Merge of VFS by Balasz Gerofi with Minix trunk.

18 years agoMore memory for these drivers
Ben Gras [Wed, 25 Oct 2006 13:39:53 +0000 (13:39 +0000)]
More memory for these drivers

18 years agoPart of wait()/waitpid() fix in revision 2629:2634 in PM - kernel
Ben Gras [Wed, 25 Oct 2006 13:38:31 +0000 (13:38 +0000)]
Part of wait()/waitpid() fix in revision 2629:2634 in PM - kernel
unblocks a process that has no priority (stopped with sys_nice()
and PRIO_STOP) and reschedules it if that gives it RTS flags of 0.

18 years agoDefault amount of memory for tests (some ran out of memory)
Ben Gras [Wed, 25 Oct 2006 13:35:03 +0000 (13:35 +0000)]
Default amount of memory for tests (some ran out of memory)

18 years agoInclude kernel/priv.h for rs/manager.h
Philip Homburg [Wed, 25 Oct 2006 13:07:58 +0000 (13:07 +0000)]
Include kernel/priv.h for rs/manager.h

18 years ago. processes stay ZOMBIE, even after wait(), to avoid wrongly seeing them
Ben Gras [Wed, 25 Oct 2006 11:29:43 +0000 (11:29 +0000)]
. processes stay ZOMBIE, even after wait(), to avoid wrongly seeing them
  as living processes  before they are cleaned up (fixes
  wait()/waitpid() hanging forever on previously-ZOMBIE processes)

. stop processes from running using sys_nice() with PRIO_STOP
  when a handled signal is delivered, before computing
  stack locations for sys_sigsend(). (fixes race condition
  when runnable processes get signals, and e.g. get scheduled
  before FS sends a reply to unpause(), which can make the
  signal stack location wrong.)

18 years agoDon't do make clean if flex Makefile doesn't exist.
Ben Gras [Tue, 24 Oct 2006 14:20:59 +0000 (14:20 +0000)]
Don't do make clean if flex Makefile doesn't exist.

18 years ago(Incomplete) support for access control in PCI (pci_set_acl).
Philip Homburg [Fri, 20 Oct 2006 15:01:32 +0000 (15:01 +0000)]
(Incomplete) support for access control in PCI (pci_set_acl).
-script argument to service for crash recovery scripts
-config argument to service for driver resource configuration
restart command in service to restart a driver after a crash (for use in
crash recovery scripts).
down and refresh now take labels instead of pids.
verious changes in rs to make this work.

18 years agoAccess control in do_sdevio and do_vdevio
Philip Homburg [Fri, 20 Oct 2006 14:46:55 +0000 (14:46 +0000)]
Access control in do_sdevio and do_vdevio

18 years agoInitialize priv from user supplied priv structure in SYS_PRIV_INIT.
Philip Homburg [Fri, 20 Oct 2006 14:42:48 +0000 (14:42 +0000)]
Initialize priv from user supplied priv structure in SYS_PRIV_INIT.
Added SYS_PRIV_USER call to downgrade a privileged process to a user process.

18 years agoAdditional ptrace commands for fault injection.
Philip Homburg [Fri, 20 Oct 2006 14:14:08 +0000 (14:14 +0000)]
Additional ptrace commands for fault injection.

18 years agoNice(3) implementation
Philip Homburg [Fri, 20 Oct 2006 14:10:53 +0000 (14:10 +0000)]
Nice(3) implementation

18 years agoBigger ramdisk
Philip Homburg [Fri, 20 Oct 2006 13:59:42 +0000 (13:59 +0000)]
Bigger ramdisk

18 years agoUse /usr/tmp as temp dir for compiling imgrd_s.s
Philip Homburg [Fri, 20 Oct 2006 13:58:45 +0000 (13:58 +0000)]
Use /usr/tmp as temp dir for compiling imgrd_s.s

18 years agoMore stack for the log driver.
Philip Homburg [Fri, 20 Oct 2006 13:54:14 +0000 (13:54 +0000)]
More stack for the log driver.

18 years agoUse size-dependant no. of words, with OPEN_MAX as default for fd_set size.
Ben Gras [Fri, 6 Oct 2006 15:45:13 +0000 (15:45 +0000)]
Use size-dependant no. of words, with OPEN_MAX as default for fd_set size.

18 years agoFix for clean target.
Ben Gras [Fri, 6 Oct 2006 15:44:41 +0000 (15:44 +0000)]
Fix for clean target.

18 years agoRemove objects in aes subdir too
Ben Gras [Thu, 5 Oct 2006 09:58:50 +0000 (09:58 +0000)]
Remove objects in aes subdir too

18 years agomake clean in ibm subdir too
Ben Gras [Thu, 5 Oct 2006 09:56:17 +0000 (09:56 +0000)]
make clean in ibm subdir too

18 years agoLeftover junk
Ben Gras [Thu, 5 Oct 2006 09:55:29 +0000 (09:55 +0000)]
Leftover junk

18 years agoDon't include this in the distribution.
Ben Gras [Thu, 5 Oct 2006 09:53:42 +0000 (09:53 +0000)]
Don't include this in the distribution.

18 years agoChange select() so that only as many words as necessary for the 'nfds'
Ben Gras [Wed, 4 Oct 2006 13:28:38 +0000 (13:28 +0000)]
Change select() so that only as many words as necessary for the 'nfds'
argument from the fd bitmasks are copied from and back to userspace. This
solves an ABI dependency on OPEN_MAX. If nfds is too big for the current
OPEN_MAX, select() fails (but that's relatively easy to fix by 'just'
recompiling the system and not the application binaries), but if it's
smaller, binaries keep working.

18 years agoDon't install progressbar suid.
Ben Gras [Wed, 27 Sep 2006 15:40:10 +0000 (15:40 +0000)]
Don't install progressbar suid.

18 years agoReorder for port order, and add svn (Subversion) as service (port 3690)
Ben Gras [Wed, 27 Sep 2006 13:55:54 +0000 (13:55 +0000)]
Reorder for port order, and add svn (Subversion) as service (port 3690)

18 years ago_NSIG is supposed to be highest signal number plus one, not highest
Ben Gras [Wed, 27 Sep 2006 08:56:37 +0000 (08:56 +0000)]
_NSIG is supposed to be highest signal number plus one, not highest
signal number.

18 years agoMissing negation in comment
Philip Homburg [Thu, 21 Sep 2006 13:33:23 +0000 (13:33 +0000)]
Missing negation in comment

18 years agoAdded EOPNOTSUPP and better error handling in accept.
Philip Homburg [Thu, 14 Sep 2006 13:48:41 +0000 (13:48 +0000)]
Added EOPNOTSUPP and better error handling in accept.

18 years agoDisabled /etc/rc.rescue
Philip Homburg [Fri, 8 Sep 2006 13:20:57 +0000 (13:20 +0000)]
Disabled /etc/rc.rescue

18 years agoNUL terminate timingdata[cat].names instead of timingdata[0].names. Reported
Philip Homburg [Mon, 28 Aug 2006 15:30:14 +0000 (15:30 +0000)]
NUL terminate timingdata[cat].names instead of timingdata[0].names. Reported
by <devel@pop3.ru>.

18 years agoAlso clear word 6 in the ATAPI SCSI_READ10 command packet (in atapi_transfer).
Philip Homburg [Mon, 28 Aug 2006 15:10:10 +0000 (15:10 +0000)]
Also clear word 6 in the ATAPI SCSI_READ10 command packet (in atapi_transfer).

18 years agofirst commit of extra ptrace code for fault injection.
Philip Homburg [Mon, 28 Aug 2006 15:03:03 +0000 (15:03 +0000)]
first commit of extra ptrace code for fault injection.

18 years agofirst commit of extra ptrace code for fault injection
Philip Homburg [Mon, 28 Aug 2006 14:59:56 +0000 (14:59 +0000)]
first commit of extra ptrace code for fault injection

18 years agoRemoved superfluous assignment to text_base. Reported by Ildar Ismagilov.
Philip Homburg [Mon, 28 Aug 2006 14:59:55 +0000 (14:59 +0000)]
Removed superfluous assignment to text_base. Reported by Ildar Ismagilov.

18 years agoNo need for .depend files in CVS.
Philip Homburg [Mon, 28 Aug 2006 14:32:24 +0000 (14:32 +0000)]
No need for .depend files in CVS.

18 years agoDo not abort/panic when an ethernet driver does something unexpected.
Philip Homburg [Mon, 28 Aug 2006 12:59:36 +0000 (12:59 +0000)]
Do not abort/panic when an ethernet driver does something unexpected.

18 years agoTTY should not panic when it is impossible to reply. A driver may crash
Philip Homburg [Mon, 28 Aug 2006 12:16:15 +0000 (12:16 +0000)]
TTY should not panic when it is impossible to reply. A driver may crash
before receiving the reply from TTY.

18 years agoNew UPDATING file with hints for source updating.
Ben Gras [Fri, 18 Aug 2006 16:18:54 +0000 (16:18 +0000)]
New UPDATING file with hints for source updating.

18 years agoUndo configure script regeneration - not using --libdir
Ben Gras [Fri, 18 Aug 2006 16:16:06 +0000 (16:16 +0000)]
Undo configure script regeneration - not using --libdir

18 years agoInstalling in build file sidesteps problems installing as bin
Ben Gras [Thu, 17 Aug 2006 14:21:10 +0000 (14:21 +0000)]
Installing in build file sidesteps problems installing as bin

18 years agoset $PATH to avoid (e.g.) /usr/local/bin/grep (gnu grep) being found
Ben Gras [Thu, 17 Aug 2006 14:03:06 +0000 (14:03 +0000)]
set $PATH to avoid (e.g.) /usr/local/bin/grep (gnu grep) being found
which has unexpected return codes compared to minix grep.

18 years agoLet installing work as bin
Ben Gras [Thu, 17 Aug 2006 10:10:42 +0000 (10:10 +0000)]
Let installing work as bin

18 years agoFixes to build and install flex as bin.
Ben Gras [Thu, 17 Aug 2006 09:53:26 +0000 (09:53 +0000)]
Fixes to build and install flex as bin.

18 years agonew command 'dumpcore' that can write core files of running processes.
Ben Gras [Tue, 15 Aug 2006 15:59:38 +0000 (15:59 +0000)]
new command 'dumpcore' that can write core files of running processes.

18 years agoForce yacc to be /usr/bin/yacc, in case someone has /usr/local/bin/yacc
Ben Gras [Tue, 15 Aug 2006 15:59:04 +0000 (15:59 +0000)]
Force yacc to be /usr/bin/yacc, in case someone has /usr/local/bin/yacc
(bison) before /usr/bin/yacc in $PATH

18 years ago/usr/local/gnu removed as prefix; gcc libs go into /usr/local/lib/gcc now
Ben Gras [Tue, 15 Aug 2006 15:58:24 +0000 (15:58 +0000)]
/usr/local/gnu removed as prefix; gcc libs go into /usr/local/lib/gcc now

18 years agoNo separate beta dir
Ben Gras [Tue, 15 Aug 2006 15:57:13 +0000 (15:57 +0000)]
No separate beta dir

18 years agoMake packman minix-version-aware
Ben Gras [Tue, 15 Aug 2006 15:56:42 +0000 (15:56 +0000)]
Make packman minix-version-aware

18 years agoadd xxl to usage
Ben Gras [Tue, 15 Aug 2006 15:56:09 +0000 (15:56 +0000)]
add xxl to usage

don't touch non-compiler binaries

18 years agoCode for 'service run'
Ben Gras [Tue, 15 Aug 2006 15:55:04 +0000 (15:55 +0000)]
Code for 'service run'

18 years agoAdded 'service run' to run a service without restart.
Ben Gras [Tue, 15 Aug 2006 15:54:51 +0000 (15:54 +0000)]
Added 'service run' to run a service without restart.

18 years agoPass 'service' instead of 'argv[1]' to servxcheck.
Philip Homburg [Thu, 10 Aug 2006 14:13:28 +0000 (14:13 +0000)]
Pass 'service' instead of 'argv[1]' to servxcheck.

18 years agoUse syslog for logging.
Philip Homburg [Thu, 10 Aug 2006 14:11:25 +0000 (14:11 +0000)]
Use syslog for logging.

18 years ago . fix for wild store at startup time by calling dev_io without fp
Ben Gras [Thu, 10 Aug 2006 11:51:11 +0000 (11:51 +0000)]
 . fix for wild store at startup time by calling dev_io without fp
   initialized
 . fix for writing exactly PIPE_SIZE to a pipe with O_NONBLOCK blocking
   anyway because of incomplete logic in pipe_check

18 years agoImproved access checks in system.c. Grant drivers and FS the rights they need.
Philip Homburg [Thu, 10 Aug 2006 10:56:16 +0000 (10:56 +0000)]
Improved access checks in system.c. Grant drivers and FS the rights they need.

18 years agoreport driver source of grant mismatch
Ben Gras [Fri, 4 Aug 2006 13:31:06 +0000 (13:31 +0000)]
report driver source of grant mismatch

18 years agoClarify du units.
Ben Gras [Fri, 4 Aug 2006 13:26:05 +0000 (13:26 +0000)]
Clarify du units.

18 years agoStart calling it 3.1.3rc1
Ben Gras [Fri, 4 Aug 2006 12:12:06 +0000 (12:12 +0000)]
Start calling it 3.1.3rc1

18 years agoAt least 8k stack for all drivers so that malloc() works, for grants,
Ben Gras [Wed, 2 Aug 2006 22:51:47 +0000 (22:51 +0000)]
At least 8k stack for all drivers so that malloc() works, for grants,
for printf().

18 years agolance needs 8k in order for safecopies to work (malloc()).
Ben Gras [Wed, 2 Aug 2006 22:42:10 +0000 (22:42 +0000)]
lance needs 8k in order for safecopies to work (malloc()).