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

18 years agoTurn off prototypes for readv and writev until they're defined
Ben Gras [Wed, 2 Aug 2006 15:18:49 +0000 (15:18 +0000)]
Turn off prototypes for readv and writev until they're defined
(properly) in the library.

18 years agoFix by Joren for setjmp to not clobber %ebx.
Ben Gras [Wed, 2 Aug 2006 12:03:02 +0000 (12:03 +0000)]
Fix by Joren for setjmp to not clobber %ebx.

18 years agoMake includes for gcc 4.1.1 too if found.
Ben Gras [Tue, 1 Aug 2006 09:17:43 +0000 (09:17 +0000)]
Make includes for gcc 4.1.1 too if found.

18 years agoActually make top suid root
Ben Gras [Mon, 31 Jul 2006 15:06:53 +0000 (15:06 +0000)]
Actually make top suid root

18 years agomake top suid root to do getsysinfo.
Ben Gras [Mon, 31 Jul 2006 14:37:56 +0000 (14:37 +0000)]
make top suid root to do getsysinfo.

18 years ago/usr/local/src for easypack-fetched sources.
Ben Gras [Mon, 31 Jul 2006 11:40:14 +0000 (11:40 +0000)]
/usr/local/src for easypack-fetched sources.

18 years agoIntroduced unprivileged getsysinfo variant, to retrieve harmless data
Ben Gras [Thu, 27 Jul 2006 16:23:01 +0000 (16:23 +0000)]
Introduced unprivileged getsysinfo variant, to retrieve harmless data
in formats that don't change (or is upwards compatible).

18 years agobig for big commands
Ben Gras [Thu, 27 Jul 2006 16:05:17 +0000 (16:05 +0000)]
big for big commands

18 years agoBigger bigsh for gcc and binutils
Ben Gras [Thu, 27 Jul 2006 08:51:08 +0000 (08:51 +0000)]
Bigger bigsh for gcc and binutils

18 years agoForce minix install
Ben Gras [Wed, 26 Jul 2006 14:26:26 +0000 (14:26 +0000)]
Force minix install

18 years agoMake ps suid root instead of sguid kmem. This makes getsysinfo
Ben Gras [Wed, 26 Jul 2006 11:34:26 +0000 (11:34 +0000)]
Make ps suid root instead of sguid kmem. This makes getsysinfo
work for it.

18 years agoFix for 'cleanup: not idle: 2313' bug.
Philip Homburg [Tue, 25 Jul 2006 14:13:09 +0000 (14:13 +0000)]
Fix for 'cleanup: not idle: 2313' bug.

18 years agoTaught log driver to return REP_IO_GRANT on revive events, makes revive
Ben Gras [Tue, 25 Jul 2006 11:01:54 +0000 (11:01 +0000)]
Taught log driver to return REP_IO_GRANT on revive events, makes revive
work again.

18 years agoIntroduction of a 'big' ioctl, with more bits (20) reserved for encoding the
Ben Gras [Tue, 25 Jul 2006 09:41:40 +0000 (09:41 +0000)]
Introduction of a 'big' ioctl, with more bits (20) reserved for encoding the
size field. The TIOCSFON ioctl size (8192) didn't get encoded properly,
as there weren't enough bits for it (12) in the regular format.

The new format has only one type field, and an extra flag (_IOC_BIG)
turned on. FS checks for this flag and uses the alternative decoding
of the ioctl codes to determine the size when doing grants.

This unbreaks loadfont, although that still uses a phys copy in tty.

18 years agoflex build fix - can't build and install separately with two different
Ben Gras [Tue, 25 Jul 2006 09:39:13 +0000 (09:39 +0000)]
flex build fix - can't build and install separately with two different
compilers.

18 years agoMore stack for system.
Ben Gras [Tue, 25 Jul 2006 09:38:24 +0000 (09:38 +0000)]
More stack for system.

18 years agoDon't give an error message for usage.
Ben Gras [Mon, 24 Jul 2006 13:27:17 +0000 (13:27 +0000)]
Don't give an error message for usage.

18 years agoAllow holes in executables.
Philip Homburg [Mon, 24 Jul 2006 13:07:25 +0000 (13:07 +0000)]
Allow holes in executables.

18 years agoMake /usr/local/lib/{ack,gcc} for ack and gcc format libraries.
Ben Gras [Fri, 21 Jul 2006 16:09:05 +0000 (16:09 +0000)]
Make /usr/local/lib/{ack,gcc} for ack and gcc format libraries.

18 years agodistclean first, then install
Ben Gras [Fri, 21 Jul 2006 14:56:23 +0000 (14:56 +0000)]
distclean first, then install

18 years agoOnly install.
Ben Gras [Fri, 21 Jul 2006 14:55:33 +0000 (14:55 +0000)]
Only install.

18 years agoUse grant address type in loadfont ioctl.
Ben Gras [Fri, 21 Jul 2006 14:39:48 +0000 (14:39 +0000)]
Use grant address type in loadfont ioctl.

18 years agoMore stack for env to build g++.
Ben Gras [Fri, 21 Jul 2006 12:51:56 +0000 (12:51 +0000)]
More stack for env to build g++.

18 years agoManpage bug fix reported by Matej Kosik.
Ben Gras [Fri, 21 Jul 2006 11:19:32 +0000 (11:19 +0000)]
Manpage bug fix reported by Matej Kosik.

18 years agoFix for %#02x bug (shouldn't print 0x, but junk was printed) found by
Ben Gras [Fri, 21 Jul 2006 10:08:47 +0000 (10:08 +0000)]
Fix for %#02x bug (shouldn't print 0x, but junk was printed) found by
Joren l'Ami.  Also fixes %p when arg is 0 (printed 0 instead of 0x0).

18 years agoSwitch to vc 0 and softscrolling when /dev/video is opened and switch back
Philip Homburg [Wed, 19 Jul 2006 11:50:18 +0000 (11:50 +0000)]
Switch to vc 0 and softscrolling when /dev/video is opened and switch back
at the close. This should prevent problems with X on (emulated) Cirrus
cards.

18 years agoDon't call X 'X Windows'.
Ben Gras [Wed, 19 Jul 2006 10:51:30 +0000 (10:51 +0000)]
Don't call X 'X Windows'.

18 years agoBuild gcc library of libfl.
Ben Gras [Tue, 18 Jul 2006 14:52:53 +0000 (14:52 +0000)]
Build gcc library of libfl.

18 years ago'zmodem' is 'big'. remove unused bits from autopart. This unbreaks
Ben Gras [Mon, 17 Jul 2006 17:05:54 +0000 (17:05 +0000)]
'zmodem' is 'big'. remove unused bits from autopart. This unbreaks
the commands build.

18 years agoPrototypes for send and recv. Fixed send (pass null address) and sendto
Philip Homburg [Fri, 14 Jul 2006 14:34:00 +0000 (14:34 +0000)]
Prototypes for send and recv. Fixed send (pass null address) and sendto
(fail when a null address is passed to a socket that is not connected).

18 years agoClear NONBLOCK flag after probing ethernet device.
Philip Homburg [Fri, 14 Jul 2006 13:35:21 +0000 (13:35 +0000)]
Clear NONBLOCK flag after probing ethernet device.

18 years agoFixed ruserok not to required /etc/hosts.equiv.
Philip Homburg [Fri, 14 Jul 2006 12:48:01 +0000 (12:48 +0000)]
Fixed ruserok not to required /etc/hosts.equiv.

18 years ago<minix/ds.h> - ds definitions.
Ben Gras [Fri, 14 Jul 2006 12:40:32 +0000 (12:40 +0000)]
<minix/ds.h> - ds definitions.

18 years agoMore stack for in.rshd.
Philip Homburg [Fri, 14 Jul 2006 11:22:37 +0000 (11:22 +0000)]
More stack for in.rshd.

18 years ago . DS understands publishing and subscribing where keys are in string
Ben Gras [Thu, 13 Jul 2006 14:50:23 +0000 (14:50 +0000)]
 . DS understands publishing and subscribing where keys are in string
   form. Subscriptions are regular expressions.
 . different types are stored per key; currently u32 and/or string.
   the same key can be referenced (publish, subscribe, check) as any type.
 . notify()s are sent when subscriptions are triggered (publishing or
   updating of matching keys); optionally, a subscribe flag sends
   updates for all matching keys at subscription time, instead of only
   after updates after subscribing
 . all interfacing to ds is in /usr/src/lib/syslib/ds.c.
 . subscribe is ds_subscribe
   publish functions are ds_publish_<type>
   retrieve functions are ds_retrieve_<type> (one-time retrieval of a value)
   check functions are ds_check_<type> (check for updated key caller
      subscribes to not yet checked for, or ESRCH for none)
 . ramdisk driver updated with new ds interface

18 years agoDo not report non-safe sys_sdevio calls when the address is 'SELF'
Philip Homburg [Thu, 13 Jul 2006 14:46:53 +0000 (14:46 +0000)]
Do not report non-safe sys_sdevio calls when the address is 'SELF'

18 years agoLeft consistency checks enabled in INET in the previous commit.
Philip Homburg [Thu, 13 Jul 2006 13:25:55 +0000 (13:25 +0000)]
Left consistency checks enabled in INET in the previous commit.

18 years agoMore stack for tcpd.
Philip Homburg [Thu, 13 Jul 2006 13:19:48 +0000 (13:19 +0000)]
More stack for tcpd.
Safecopies renders the NWIOQUERYPARAM ioctl useless. This functionality
is now replaced with /dev/ipstat. Write the request to the device and
read the answer in one read request.

18 years agoWhen installing in a free partition larger than the maximum, don't align
Ben Gras [Thu, 13 Jul 2006 12:43:47 +0000 (12:43 +0000)]
When installing in a free partition larger than the maximum, don't align
on cylinder boundary.

18 years agoJoren's proposed fix for a too-conservative split point selection.
Ben Gras [Mon, 10 Jul 2006 15:05:33 +0000 (15:05 +0000)]
Joren's proposed fix for a too-conservative split point selection.
(Making building packages with long filenames difficult.)

18 years agoSafecopy support for INET.
Philip Homburg [Mon, 10 Jul 2006 12:55:33 +0000 (12:55 +0000)]
Safecopy support for INET.

18 years agoSupport for SI_CALL_STATS (counting systemcalls).
Philip Homburg [Mon, 10 Jul 2006 12:44:43 +0000 (12:44 +0000)]
Support for SI_CALL_STATS (counting systemcalls).

18 years agoSafecopy support in ethernet drivers.
Philip Homburg [Mon, 10 Jul 2006 12:43:38 +0000 (12:43 +0000)]
Safecopy support in ethernet drivers.

18 years agoUse safecopy version to get log messages from TTY.
Philip Homburg [Mon, 10 Jul 2006 12:42:31 +0000 (12:42 +0000)]
Use safecopy version to get log messages from TTY.

18 years agoFixed a bug that would report a device more than once. Added safecopy
Philip Homburg [Mon, 10 Jul 2006 12:39:54 +0000 (12:39 +0000)]
Fixed a bug that would report a device more than once. Added safecopy
version of do_dev_name and do_slot_name.

18 years agoChanged to use sys_readbios to get screen parameters. Added safecopy version
Philip Homburg [Mon, 10 Jul 2006 12:37:39 +0000 (12:37 +0000)]
Changed to use sys_readbios to get screen parameters. Added safecopy version
to get log messages.

18 years agoChanged to use sys_readbios get the 'machine ID'.
Philip Homburg [Mon, 10 Jul 2006 12:35:55 +0000 (12:35 +0000)]
Changed to use sys_readbios get the 'machine ID'.

18 years agoChanged to use sys_readbios to get BIOS parameters.
Philip Homburg [Mon, 10 Jul 2006 12:34:41 +0000 (12:34 +0000)]
Changed to use sys_readbios to get BIOS parameters.

18 years agoAdded do_readbios. Added debugging output for unexpected use of unsafe copy
Philip Homburg [Mon, 10 Jul 2006 12:27:26 +0000 (12:27 +0000)]
Added do_readbios. Added debugging output for unexpected use of unsafe copy
functions.

18 years agoAdded sys_readbios.
Philip Homburg [Mon, 10 Jul 2006 12:17:16 +0000 (12:17 +0000)]
Added sys_readbios.
Changed pci_dev_name and pci_slot_name to use safecopies.
Mae it possible to disable the use of safecopies in kputc for debugging.

18 years agoAdded SI_CALL_STATS and ENABLE_SYSCALL_STATS for system call statistics.
Philip Homburg [Mon, 10 Jul 2006 12:13:29 +0000 (12:13 +0000)]
Added SI_CALL_STATS and ENABLE_SYSCALL_STATS for system call statistics.
Added BUSC_PCI_DEV_NAME_S and BUSC_PCI_SLOT_NAME_S to support safecopies in PCI.
Added DL_WRITEV_S, DL_READV_S, DL_GETSTAT_S, DL_GRANT, and iovec_s_t to support
safecopies in ethernet drviers. Renamed DL_INIT to DL_CONF, and DL_INIT_REPLY
to DL_CONF_REPLY.
Added SYS_READBIOS and sys_readbios to read from BIOS data areas.
Added GET_KMESS_S for safecopy support in LOG.
Added sys_safe_insb and sys_safe_outsb.

18 years agoClean ramdisk image .s too
Ben Gras [Thu, 6 Jul 2006 14:09:54 +0000 (14:09 +0000)]
Clean ramdisk image .s too

18 years agoBigger BUFSIZ for bigger fs block size.
Ben Gras [Thu, 6 Jul 2006 10:02:25 +0000 (10:02 +0000)]
Bigger BUFSIZ for bigger fs block size.

18 years agoGrant system dynamic-only.
Ben Gras [Fri, 30 Jun 2006 14:40:29 +0000 (14:40 +0000)]
Grant system dynamic-only.

18 years agoGive pm its own brk() so malloc() works in pm. pm needs more stack for this.
Ben Gras [Fri, 30 Jun 2006 14:36:11 +0000 (14:36 +0000)]
Give pm its own brk() so malloc() works in pm. pm needs more stack for this.

18 years agoSplit do_brk in a stub and a function that does the real work, so that
Ben Gras [Fri, 30 Jun 2006 14:35:38 +0000 (14:35 +0000)]
Split do_brk in a stub and a function that does the real work, so that
the real work can be called from elsewhere too. Specifically, to allow PM
its own brk().

18 years ago3rd fix for improper behaviour on crashing driver with safe_io_conversion
Ben Gras [Thu, 29 Jun 2006 14:24:07 +0000 (14:24 +0000)]
3rd fix for improper behaviour on crashing driver with safe_io_conversion

18 years agoCompile fix
Ben Gras [Thu, 29 Jun 2006 14:23:33 +0000 (14:23 +0000)]
Compile fix

18 years agoMake stack traces on exceptions possible.
Ben Gras [Thu, 29 Jun 2006 13:35:27 +0000 (13:35 +0000)]
Make stack traces on exceptions possible.

18 years agoFix another bug related to trying i/o more than once
Ben Gras [Wed, 28 Jun 2006 12:20:30 +0000 (12:20 +0000)]
Fix another bug related to trying i/o more than once

18 years agoDon't print cloexec
Ben Gras [Wed, 28 Jun 2006 10:04:32 +0000 (10:04 +0000)]
Don't print cloexec

18 years agoFix bug where safe conversion doesn't happen after 1st time in loop
Ben Gras [Wed, 28 Jun 2006 10:03:18 +0000 (10:03 +0000)]
Fix bug where safe conversion doesn't happen after 1st time in loop

18 years agoAdded _select() stub for select().
Ben Gras [Tue, 27 Jun 2006 18:28:33 +0000 (18:28 +0000)]
Added _select() stub for select().

18 years ago . satisfy some gcc warnings (uninitialized/unused variables)
Ben Gras [Tue, 27 Jun 2006 16:47:35 +0000 (16:47 +0000)]
 . satisfy some gcc warnings (uninitialized/unused variables)
 . change cloexec mask from long to fd_set to remove 32 fd's per
   process restriction (from cloexec at least)

18 years agoStopgap for tar creating insane group ownerships due to tiny gid_t.
Ben Gras [Tue, 27 Jun 2006 16:30:46 +0000 (16:30 +0000)]
Stopgap for tar creating insane group ownerships due to tiny gid_t.

18 years agolet dynamic allocation of table work
Ben Gras [Tue, 27 Jun 2006 14:15:47 +0000 (14:15 +0000)]
let dynamic allocation of table work

18 years agoAdd a flag to grants system indicating a slot is VALID; so a slot
Ben Gras [Tue, 27 Jun 2006 12:19:45 +0000 (12:19 +0000)]
Add a flag to grants system indicating a slot is VALID; so a slot
can be reserved (USED), while toggling VALID on and off.

18 years ago. expanded grant manipulation interface to more direct
Ben Gras [Mon, 26 Jun 2006 16:08:42 +0000 (16:08 +0000)]
. expanded grant manipulation interface to more direct
  manipulation
. made fs allocate a grant for every ioctl, even if no data
  is being copied, in order to disambiguate concurrent ioctls
  on the same minor

18 years agoMove inet to safe copies.
Philip Homburg [Mon, 26 Jun 2006 16:03:35 +0000 (16:03 +0000)]
Move inet to safe copies.

18 years agoFix to let elle understand window size.
Ben Gras [Mon, 26 Jun 2006 15:15:40 +0000 (15:15 +0000)]
Fix to let elle understand window size.

18 years agoVectored safe copies for inet.
Philip Homburg [Mon, 26 Jun 2006 14:20:11 +0000 (14:20 +0000)]
Vectored safe copies for inet.

18 years agoFirst cut at safe copies for inet. Breaks tcpstat.
Philip Homburg [Mon, 26 Jun 2006 11:17:19 +0000 (11:17 +0000)]
First cut at safe copies for inet. Breaks tcpstat.

18 years agoA backup of the readclock command that shouldn't have been imported into cvs.
Ben Gras [Mon, 26 Jun 2006 08:58:11 +0000 (08:58 +0000)]
A backup of the readclock command that shouldn't have been imported into cvs.

18 years agoRename paramctl to setgrant.
Ben Gras [Fri, 23 Jun 2006 15:35:05 +0000 (15:35 +0000)]
Rename paramctl to setgrant.

18 years agoget_sys_bits
Philip Homburg [Fri, 23 Jun 2006 15:32:24 +0000 (15:32 +0000)]
get_sys_bits

18 years agoNew kernel call, SYS_PARAMCTL, that sets parameters of the caller
Ben Gras [Fri, 23 Jun 2006 15:07:41 +0000 (15:07 +0000)]
New kernel call, SYS_PARAMCTL, that sets parameters of the caller
and is therefore unprivileged. Used to set grant tables.

18 years agoPrint ipc_to in hex. Also print the 'system' call mask.
Philip Homburg [Fri, 23 Jun 2006 13:27:03 +0000 (13:27 +0000)]
Print ipc_to in hex. Also print the 'system' call mask.

18 years agoEveryone's endpoint number
Ben Gras [Fri, 23 Jun 2006 12:16:22 +0000 (12:16 +0000)]
Everyone's endpoint number

18 years agouse malloc() + copy + free() instead of realloc()
Ben Gras [Fri, 23 Jun 2006 12:07:41 +0000 (12:07 +0000)]
use malloc() + copy + free() instead of realloc()

18 years agoNew option -E for ps that prints endpoint numbers instead of pids.
Ben Gras [Fri, 23 Jun 2006 11:59:20 +0000 (11:59 +0000)]
New option -E for ps that prints endpoint numbers instead of pids.

18 years agolibrary interface for vectored safecopy variant.
Ben Gras [Fri, 23 Jun 2006 11:54:35 +0000 (11:54 +0000)]
library interface for vectored safecopy variant.

18 years agoAdded vectored variant of sys_safecopy*.
Ben Gras [Fri, 23 Jun 2006 11:54:03 +0000 (11:54 +0000)]
Added vectored variant of sys_safecopy*.

18 years ago. leave out dead code from device.c
Ben Gras [Fri, 23 Jun 2006 11:51:56 +0000 (11:51 +0000)]
. leave out dead code from device.c
. don't loop doing a receive() after sendrec() - chance of recovering is not
  high, and can lead to receive()ing a notify() (which can't happen in sendrec()),
  which is terrible
. return status from device when DEV_CANCEL is done on a signal; hardcode EAGAIN to
  become EINTR though

18 years agoNo longer build Michael Temari's httpd. Install a httpd from ports.
Philip Homburg [Thu, 22 Jun 2006 11:53:03 +0000 (11:53 +0000)]
No longer build Michael Temari's httpd. Install a httpd from ports.

18 years agoAdded strlcat and strlcpy.
Philip Homburg [Thu, 22 Jun 2006 11:47:18 +0000 (11:47 +0000)]
Added strlcat and strlcpy.

18 years agoAdded prototype for inet_aton.
Philip Homburg [Thu, 22 Jun 2006 11:45:59 +0000 (11:45 +0000)]
Added prototype for inet_aton.

18 years agoAdded __minix3 to make it easier to figure out that we are compiling on/for
Philip Homburg [Thu, 22 Jun 2006 11:44:17 +0000 (11:44 +0000)]
Added __minix3 to make it easier to figure out that we are compiling on/for
Minix 3.

18 years ago<minix/safecopies>
Ben Gras [Tue, 20 Jun 2006 14:25:42 +0000 (14:25 +0000)]
<minix/safecopies>

18 years agoMore space for rs
Ben Gras [Tue, 20 Jun 2006 10:59:45 +0000 (10:59 +0000)]
More space for rs

18 years agoChanged order of -lsys and -lsysutil for printf()
Ben Gras [Tue, 20 Jun 2006 10:50:29 +0000 (10:50 +0000)]
Changed order of -lsys and -lsysutil for printf()

18 years agoorder changed for printf()
Ben Gras [Tue, 20 Jun 2006 10:47:25 +0000 (10:47 +0000)]
order changed for printf()

18 years agoThere is no lex.
Ben Gras [Tue, 20 Jun 2006 10:14:25 +0000 (10:14 +0000)]
There is no lex.

18 years agoFixes for usb and bios.
Ben Gras [Tue, 20 Jun 2006 10:13:56 +0000 (10:13 +0000)]
Fixes for usb and bios.

18 years agoFix for KERNEL definition.
Ben Gras [Tue, 20 Jun 2006 10:13:32 +0000 (10:13 +0000)]
Fix for KERNEL definition.

18 years agoFix for losing REVIVE
Ben Gras [Tue, 20 Jun 2006 10:12:30 +0000 (10:12 +0000)]
Fix for losing REVIVE

18 years agoFS support for grant-based i/o.
Ben Gras [Tue, 20 Jun 2006 10:12:09 +0000 (10:12 +0000)]
FS support for grant-based i/o.

For character device i/o, FS does a so-called 'magic' grant to let the
driver copy from or to user space. As this is done in FS address space,
the driver is told to do this in FS address space. The redirection to
the right user process then happens at copy-time in the kernel, using the
FS grant table. This also happens for DEV_READ and DEV_WRITE on block
devices.

For other block device i/o, which happens from/to FS buffers, FS does
a 'direct' grant to its own address space for the driver.

After the i/o returns, this access has to be K-I-L-L-E-D, revoked.
Sometimes this is after a SUSPEND and DEV_REVIVE, in which case the
revoking happens in pipe.c.

This conversion happens in safe_io_conversion() in device.c, called
by dev_io and dev_bio.

FS has to pre-allocate its own space for these grant tables. This happens
in main.c.