]> Zhao Yanbai Git Server - minix.git/log
minix.git
18 years agoIntroduced global sys_call_code to check in called kernel call
Ben Gras [Tue, 20 Jun 2006 09:58:58 +0000 (09:58 +0000)]
Introduced global sys_call_code to check in called kernel call
implementation functions.

Changed check in system.c to check compile-time-sized bitmap of
kernel calls.

Added SYS_SAFECOPYFROM and SYS_SAFECOPYTO, both mapping to
do_safecopy (that's what sys_call_code is used for).

18 years agoUse endpoint_t. New prototypes for related to grants and safecopy functions.
Ben Gras [Tue, 20 Jun 2006 09:57:00 +0000 (09:57 +0000)]
Use endpoint_t. New prototypes for related to grants and safecopy functions.

18 years agoChange allowed kernel call bitmap to an array of bitmaps to allow
Ben Gras [Tue, 20 Jun 2006 09:56:06 +0000 (09:56 +0000)]
Change allowed kernel call bitmap to an array of bitmaps to allow
any number of kernel calls.

Allowed kernel calls are stored in table.c for every image process as a
variably-sized array of allowed calls. This is used to fill the bitmap
of size determined at compile time by the number of kernel calls. This
filling is done by main.c. There is a special call called SYS_ALL_CALLS
which fills the bitmap of allowed calls completely, if that is the only
entry in the array.

18 years agoRename protected to prot for g++
Ben Gras [Tue, 20 Jun 2006 09:52:11 +0000 (09:52 +0000)]
Rename protected to prot for g++

18 years agoUse endpoint_t type
Ben Gras [Tue, 20 Jun 2006 09:51:49 +0000 (09:51 +0000)]
Use endpoint_t type

18 years agoMove bitmap manipulation macros to <minix/bitmap.h>
Ben Gras [Tue, 20 Jun 2006 09:50:26 +0000 (09:50 +0000)]
Move bitmap manipulation macros to <minix/bitmap.h>

18 years agoConversion to safe calls, and returning grant in DEV_REVIVE messages
Ben Gras [Tue, 20 Jun 2006 09:49:02 +0000 (09:49 +0000)]
Conversion to safe calls, and returning grant in DEV_REVIVE messages

18 years agoFix for new *_ins* i/o functions
Ben Gras [Tue, 20 Jun 2006 09:48:26 +0000 (09:48 +0000)]
Fix for new *_ins* i/o functions

18 years agoKick out REVIVE
Ben Gras [Tue, 20 Jun 2006 09:47:23 +0000 (09:47 +0000)]
Kick out REVIVE

18 years agosafe conversion
Ben Gras [Tue, 20 Jun 2006 09:46:57 +0000 (09:46 +0000)]
safe conversion

18 years ago. Safe I/O, ioctl() and DIAGNOSTICS variants conversion - safe copies,
Ben Gras [Tue, 20 Jun 2006 09:02:54 +0000 (09:02 +0000)]
. Safe I/O, ioctl() and DIAGNOSTICS variants conversion - safe copies,
  include grant id in DEV_REVIVE messages.
. Removal of TTY_FLAGS field (and so O_NONBLOCK support).
. Fixed CANCEL behaviour and return code on blocking I/O,
  previously handled by O_NONBLOCK
. Totally removed REVIVE replies, previously still possible on
  blocking ioctls (REVIVE directly called) and ptys (missing TTY_REVIVE
  check), removes deadlock bug with FS
. Removed obsolete *COMPAT options and associated code

18 years agosafe conversion
Ben Gras [Tue, 20 Jun 2006 08:56:58 +0000 (08:56 +0000)]
safe conversion

18 years agoSafe I/O and ioctl functions
Ben Gras [Tue, 20 Jun 2006 08:56:15 +0000 (08:56 +0000)]
Safe I/O and ioctl functions

18 years agoUnderstand *_S variants: DIAGNOSTICS_S, DEV_{READ,WRITE,IOCTL}_S,
Ben Gras [Tue, 20 Jun 2006 08:55:35 +0000 (08:55 +0000)]
Understand *_S variants: DIAGNOSTICS_S, DEV_{READ,WRITE,IOCTL}_S,
include grant id in DEV_REVIVE messages

18 years agoChange to 'safe' copy variant
Ben Gras [Tue, 20 Jun 2006 08:54:22 +0000 (08:54 +0000)]
Change to 'safe' copy variant

18 years agoUnderstand *_S variants
Ben Gras [Tue, 20 Jun 2006 08:52:26 +0000 (08:52 +0000)]
Understand *_S variants

18 years agoChange for safe copies, and DEV_REVIVE message including grant id
Ben Gras [Tue, 20 Jun 2006 08:52:11 +0000 (08:52 +0000)]
Change for safe copies, and DEV_REVIVE message including grant id

18 years agoChange at driver to understand 'safe' transfers and ioctls; do corresponding
Ben Gras [Tue, 20 Jun 2006 08:51:24 +0000 (08:51 +0000)]
Change at driver to understand 'safe' transfers and ioctls; do corresponding
safe copy and safe sys_insw and sys_outsw calls.

18 years ago. made libdriver understand *_S variants
Ben Gras [Tue, 20 Jun 2006 08:49:51 +0000 (08:49 +0000)]
. made libdriver understand *_S variants
. ioctl, transfer and 'other' functions get an extra parameter: 'safe', int
  is nonzero if function is called with *_S variant ('other' if ioctl)

18 years ago. flex moved back into the base system, so prefix is /usr
Ben Gras [Tue, 20 Jun 2006 08:46:45 +0000 (08:46 +0000)]
. flex moved back into the base system, so prefix is /usr
. sysenv.c and umount.c need <minix/type.h> now

18 years ago/CD check unnecessary
Ben Gras [Tue, 20 Jun 2006 08:46:09 +0000 (08:46 +0000)]
/CD check unnecessary

18 years ago. removed const from putenv() for g++
Ben Gras [Tue, 20 Jun 2006 08:45:04 +0000 (08:45 +0000)]
. removed const from putenv() for g++
. added safecopies.c:
  these are library functions to maintain grant tables in own address space
. sys_safecopy.c:
  interfaces to kernel calls to perform safe copy functions in from or to
  foreign process
. changes in i/o fields (type merged with request) reflected in
  library functions (sys_out.c, sys_vinb.c, sys_vinl.c, sys_vinw.c,
  sys_voutb.c, sys_voutl.c, sys_voutw.c)
. type merged with request in sys_sdevio, also now accepts offset which
  is used when a grant is specified (the _DIO_SAFE subtype)
. system printf() function changed to send DIAGNOSTICS_S messages, which
  specify a grant id instead of a direct address for the buffer to be
  printed; tty and log can then safecopy the buffer

18 years ago. renamed __str to __makestr to allow for g++
Ben Gras [Tue, 20 Jun 2006 08:40:26 +0000 (08:40 +0000)]
. renamed __str to __makestr to allow for g++
. changed some CMOS ioctl codes to have correct sizes (struct tm instead
  of u32_t), a disk ioctl code from W to RW, and memory ioctl codes from R
  to W, needed for proper matching of grant in FS

18 years ago. introduced DEV_READ_S, DEV_WRITE_S, DEV_SCATTER_S, DEV_GATHER_S
Ben Gras [Tue, 20 Jun 2006 08:38:15 +0000 (08:38 +0000)]
. introduced DEV_READ_S, DEV_WRITE_S, DEV_SCATTER_S, DEV_GATHER_S
  and DEV_IOCTL_S as replacements for DEV_READ, DEV_WRITE, DEV_SCATTER,
  DEV_GATHER and DEV_IOCTL. Instead of a direct address, the *_S commands
  pass 'grant ids' to the drivers which are referenced through a new set
  of copy calls (sys_safecopyfrom and sys_safecopyto). in order for this
  copy to succeed, the grant must have previously been created in the
  address space of the granter.
. bitmap manipulation functions moved to <minix/bitmap.h>
. HIGHPOS introduced as field containing high 32 bits of position in
  device I/O message; TTY_FLAGS no longer used
. IO_GRANT field introduced for GRANTs, to replace ADDRESS
. REP_IO_GRANT field for un-SUSPEND messages introduced to indicate
  grant for which I/O was done to disambiguate messages
. SYS_SAFECOPYFROM and SYS_SAFECOPYTO introduced as new calls
. SYS_PRIV_SET_GRANTS code introduced as a code to set the address and
  size of the grant table in a process' own address space
. 'type' and 'direction' field of _ins* and _outs* I/O functions
  are merged into one by ORing _DIO_INPUT/_DIO_OUTPUT and _DIO_BYTE/_DIO_WORD
  etc. This allows for an additional parameter, _DIO_SAFE, which indicates
  the address in another address space isn't actually an address, but
  a grant id. Also needs an offset, for which fields had to be merged.
. SCP_* are field names for SYS_SAFECOPY* functions
. DIAGNOSTICS and GET_KMESS moved to their own range above DIAG_BASE,
  added DIAGNOSTICS_S which is a grant-based variant of DIAGNOSTICS
. removed obsolete BINCOMPAT and SRCCOMPAT options
. added GRANT_SEG type for use in vircopy - allows copying to a grant
  id (without offset)
. added _MINIX_IOCTL_* macros that decode information encoded by
  _IO* macros in ioctl codes, used to check which grants are necessary
  for an ioctl
. introduced the type endpoint_t for process endpoints, changed some
  prototypes and struct field types to match
. renamed protected to prot for g++

18 years ago. flex back into the base system
Ben Gras [Mon, 19 Jun 2006 14:58:20 +0000 (14:58 +0000)]
. flex back into the base system
. imports of Michael Temari's httpd and ftp

18 years agoInitial revision
Ben Gras [Mon, 19 Jun 2006 14:55:09 +0000 (14:55 +0000)]
Initial revision

18 years agoAl Woodhull's new manual pages
Ben Gras [Mon, 19 Jun 2006 14:51:41 +0000 (14:51 +0000)]
Al Woodhull's new manual pages

18 years agoPrototype for readline.
Philip Homburg [Wed, 14 Jun 2006 13:19:48 +0000 (13:19 +0000)]
Prototype for readline.

18 years agoRetry read after EINTR.
Philip Homburg [Wed, 14 Jun 2006 13:18:53 +0000 (13:18 +0000)]
Retry read after EINTR.

18 years agoWake up writer when selecting for read on an empty pipe.
Philip Homburg [Wed, 14 Jun 2006 13:17:41 +0000 (13:17 +0000)]
Wake up writer when selecting for read on an empty pipe.
Set fp_revived to NOT_REVIVING when decrementing reviving.

18 years agoForgot include some Minix 3 specific changes.
Philip Homburg [Wed, 7 Jun 2006 15:03:42 +0000 (15:03 +0000)]
Forgot include some Minix 3 specific changes.

18 years agoFixed some select bugs related to pipes. Removed SELFD_* because they were
Philip Homburg [Wed, 7 Jun 2006 14:41:47 +0000 (14:41 +0000)]
Fixed some select bugs related to pipes. Removed SELFD_* because they were
bogus and unused.

18 years agoA bigger ramdisk is needed for the new version of ash.
Philip Homburg [Wed, 7 Jun 2006 14:39:50 +0000 (14:39 +0000)]
A bigger ramdisk is needed for the new version of ash.

18 years agoImportant BSD version of setenv, added killpg, replaced _sigsetjmp.c with
Philip Homburg [Wed, 7 Jun 2006 14:38:39 +0000 (14:38 +0000)]
Important BSD version of setenv, added killpg, replaced _sigsetjmp.c with
an assembler jump to longjmp.

18 years agoAdded killpg to signal.h, rearranged getloadavg, putenv, and setenv in
Philip Homburg [Wed, 7 Jun 2006 14:36:35 +0000 (14:36 +0000)]
Added killpg to signal.h, rearranged getloadavg, putenv, and setenv in
stdlib.h and added unsetenv, added declaration of optreset to unistd.h.

18 years agoMake sure that line editing is disabled when the shell is not connected to a
Philip Homburg [Mon, 29 May 2006 13:20:28 +0000 (13:20 +0000)]
Make sure that line editing is disabled when the shell is not connected to a
tty.

18 years agoParsing of '-OT' and '-OS' failed in acd.descr.
Philip Homburg [Mon, 29 May 2006 12:29:25 +0000 (12:29 +0000)]
Parsing of '-OT' and '-OS' failed in acd.descr.

18 years agoInstall /usr/lib/descr from the source tree.
Philip Homburg [Mon, 29 May 2006 12:25:44 +0000 (12:25 +0000)]
Install /usr/lib/descr from the source tree.

18 years agoNew version of ash. From FreeBSD 5.4 via Minix-vmd.
Philip Homburg [Tue, 23 May 2006 12:59:34 +0000 (12:59 +0000)]
New version of ash. From FreeBSD 5.4 via Minix-vmd.

18 years agoActually remove allocmem and freemem sources from the library.
Philip Homburg [Fri, 19 May 2006 12:45:55 +0000 (12:45 +0000)]
Actually remove allocmem and freemem sources from the library.

18 years agoDisabled building rescue driver (no longer needed). Moved allocmem from
Philip Homburg [Fri, 19 May 2006 12:19:37 +0000 (12:19 +0000)]
Disabled building rescue driver (no longer needed). Moved allocmem from
library to the memory driver. Always put output from within TTY directly on
the console. Removed second include of driver.h from tty.c. Made tty_inrepcode
bigger. First step to move PM and FS calls that are not regular (API)
system calls out of callnr.h (renumbered them, and removed them from the
table.c files). Imported the Minix-vmd uname implementation. This provides
a more stable ABI than the current implementation. Added a bit of security
checking. Unfortunately not nearly enough to get a secure system. Fixed a
bug related to the sizes of the programs in the image (in PM patch_mem_chunks).

18 years agoFixed off by one error in backoff code. Limit backoff to 1 second for
Philip Homburg [Mon, 15 May 2006 12:08:43 +0000 (12:08 +0000)]
Fixed off by one error in backoff code. Limit backoff to 1 second for
disk drivers.

18 years agoUnpause requests (to FS) can be generated in parallel to other requests.
Philip Homburg [Mon, 15 May 2006 12:06:19 +0000 (12:06 +0000)]
Unpause requests (to FS) can be generated in parallel to other requests.

18 years agoDo not unmap a driver when the driver dies (it interferes with restarting
Philip Homburg [Mon, 15 May 2006 11:43:06 +0000 (11:43 +0000)]
Do not unmap a driver when the driver dies (it interferes with restarting
disk drivers). Fixed accounting for REVIVING/reviving.

18 years agoThe new service command managed to escape.
Philip Homburg [Thu, 11 May 2006 15:30:56 +0000 (15:30 +0000)]
The new service command managed to escape.

18 years agoInit need more space (the results of removing the special case for init in
Philip Homburg [Thu, 11 May 2006 15:00:46 +0000 (15:00 +0000)]
Init need more space (the results of removing the special case for init in
adjust in PM). Better flags dump in IS.

18 years agoSpecial code for restarting disk drivers (-c flag in service).
Philip Homburg [Thu, 11 May 2006 14:58:33 +0000 (14:58 +0000)]
Special code for restarting disk drivers (-c flag in service).

18 years agoNew interface between PM and FS.
Philip Homburg [Thu, 11 May 2006 14:57:23 +0000 (14:57 +0000)]
New interface between PM and FS.

18 years agoPass -c flags to service for disk device drivers.
Philip Homburg [Thu, 11 May 2006 14:53:20 +0000 (14:53 +0000)]
Pass -c flags to service for disk device drivers.

18 years agoIgnore SIGHUP in floppy driver.
Philip Homburg [Thu, 11 May 2006 14:52:40 +0000 (14:52 +0000)]
Ignore SIGHUP in floppy driver.

18 years agoBetter initialization of the memory map of processes that are part of the
Philip Homburg [Thu, 11 May 2006 14:49:46 +0000 (14:49 +0000)]
Better initialization of the memory map of processes that are part of the
image. Removed NO_MAP flag.

18 years agoChanges for restarting disk drivers and new interface between PM and FS.
Philip Homburg [Thu, 11 May 2006 14:47:31 +0000 (14:47 +0000)]
Changes for restarting disk drivers and new interface between PM and FS.

18 years agocall cons_stop() before sys_abort() to not break tty on shutdown
Ben Gras [Thu, 11 May 2006 14:01:44 +0000 (14:01 +0000)]
call cons_stop() before sys_abort() to not break tty on shutdown

18 years agoBalance curly braces.
Philip Homburg [Wed, 10 May 2006 15:39:52 +0000 (15:39 +0000)]
Balance curly braces.

18 years agoFix for service formatting bug reported by Jaap Weel <weel@ugcs.caltech.edu>
Ben Gras [Mon, 8 May 2006 22:04:05 +0000 (22:04 +0000)]
Fix for service formatting bug reported by Jaap Weel <weel@ugcs.caltech.edu>

18 years agoAdded fchmod() and fchown()
Ben Gras [Tue, 18 Apr 2006 11:26:04 +0000 (11:26 +0000)]
Added fchmod() and fchown()

18 years ago*** empty log message ***
Ben Gras [Thu, 13 Apr 2006 18:12:33 +0000 (18:12 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Ben Gras [Thu, 13 Apr 2006 18:07:42 +0000 (18:07 +0000)]
*** empty log message ***

18 years agoinstall motd as motd.install
Ben Gras [Thu, 13 Apr 2006 18:06:22 +0000 (18:06 +0000)]
install motd as motd.install

18 years agoUndo issue
Ben Gras [Thu, 13 Apr 2006 17:49:54 +0000 (17:49 +0000)]
Undo issue

18 years agoremove issue
Ben Gras [Thu, 13 Apr 2006 17:48:21 +0000 (17:48 +0000)]
remove issue

18 years agoInstall dinks
Ben Gras [Thu, 13 Apr 2006 17:47:51 +0000 (17:47 +0000)]
Install dinks

18 years agoTweak
Ben Gras [Thu, 13 Apr 2006 17:15:58 +0000 (17:15 +0000)]
Tweak

18 years agoFixes for image.
Ben Gras [Thu, 13 Apr 2006 17:15:40 +0000 (17:15 +0000)]
Fixes for image.

18 years agoInstall dinks
Ben Gras [Thu, 13 Apr 2006 15:09:39 +0000 (15:09 +0000)]
Install dinks

18 years agomessage
Ben Gras [Thu, 13 Apr 2006 14:38:16 +0000 (14:38 +0000)]
message

18 years agofiX
Ben Gras [Thu, 13 Apr 2006 14:36:11 +0000 (14:36 +0000)]
fiX

18 years agoNewline fix
Ben Gras [Thu, 13 Apr 2006 14:30:05 +0000 (14:30 +0000)]
Newline fix

18 years agoAndy's issue.
Ben Gras [Thu, 13 Apr 2006 14:29:11 +0000 (14:29 +0000)]
Andy's issue.

18 years agoAndy's motd
Ben Gras [Thu, 13 Apr 2006 14:27:16 +0000 (14:27 +0000)]
Andy's motd

18 years agoAndy's install message.
Ben Gras [Thu, 13 Apr 2006 14:24:59 +0000 (14:24 +0000)]
Andy's install message.

18 years agosigh
Ben Gras [Thu, 13 Apr 2006 14:18:23 +0000 (14:18 +0000)]
sigh

18 years agoSum wrong way round
Ben Gras [Thu, 13 Apr 2006 13:49:08 +0000 (13:49 +0000)]
Sum wrong way round

18 years agoFor packages.
Ben Gras [Thu, 13 Apr 2006 12:44:06 +0000 (12:44 +0000)]
For packages.

18 years agoMore packages - more usr
Ben Gras [Thu, 13 Apr 2006 02:00:54 +0000 (02:00 +0000)]
More packages - more usr

18 years ago2nd is sum.
Ben Gras [Thu, 13 Apr 2006 01:59:43 +0000 (01:59 +0000)]
2nd is sum.

18 years agoInstall ls in /bin too
Ben Gras [Wed, 12 Apr 2006 21:51:01 +0000 (21:51 +0000)]
Install ls in /bin too

18 years agoInstall elvis as elvis, not vi
Ben Gras [Wed, 12 Apr 2006 20:22:42 +0000 (20:22 +0000)]
Install elvis as elvis, not vi

18 years agoNo beta
Ben Gras [Wed, 12 Apr 2006 15:53:37 +0000 (15:53 +0000)]
No beta

18 years agoCompute 1440k for mkboot
Ben Gras [Wed, 12 Apr 2006 15:53:19 +0000 (15:53 +0000)]
Compute 1440k for mkboot

18 years agoBigger root.
Ben Gras [Wed, 12 Apr 2006 11:33:07 +0000 (11:33 +0000)]
Bigger root.

18 years agoFixes for bios emulation (image names)
Ben Gras [Wed, 12 Apr 2006 11:32:49 +0000 (11:32 +0000)]
Fixes for bios emulation (image names)

18 years agoAdded PCI_IDE_PRI_NATIVE and PCI_IDE_SEC_NATIVE.
Philip Homburg [Wed, 12 Apr 2006 11:26:20 +0000 (11:26 +0000)]
Added PCI_IDE_PRI_NATIVE and PCI_IDE_SEC_NATIVE.

18 years agoDo not record BARs for IDE controllers in compatibility mode.
Philip Homburg [Wed, 12 Apr 2006 11:18:13 +0000 (11:18 +0000)]
Do not record BARs for IDE controllers in compatibility mode.

18 years agoMaybe one more beta
Ben Gras [Wed, 12 Apr 2006 09:33:53 +0000 (09:33 +0000)]
Maybe one more beta

18 years agoLess stack for tar - a bit cramped installing binary packages
Ben Gras [Wed, 12 Apr 2006 00:10:17 +0000 (00:10 +0000)]
Less stack for tar - a bit cramped installing binary packages
on 16MB machines otherwise.

18 years agoStart nonamed in local mode by default
Ben Gras [Tue, 11 Apr 2006 13:42:58 +0000 (13:42 +0000)]
Start nonamed in local mode by default

18 years agoadded -L option that makes nonamed ignore queries that don't come from
Ben Gras [Tue, 11 Apr 2006 13:42:29 +0000 (13:42 +0000)]
added -L option that makes nonamed ignore queries that don't come from
localhost.

18 years agoNew version
Ben Gras [Tue, 11 Apr 2006 12:03:06 +0000 (12:03 +0000)]
New version

18 years ago(1) remove ftpd in favour of ftpd200
Ben Gras [Tue, 11 Apr 2006 11:55:45 +0000 (11:55 +0000)]
(1) remove ftpd in favour of ftpd200
(2) add /etc/rc.daemons.dist, can be copied to /etc/rc.daemons
    if user wants the standard daemons to run, which are no longer run
    by default

18 years agoExtra debug output for iogap.
Philip Homburg [Tue, 11 Apr 2006 11:50:29 +0000 (11:50 +0000)]
Extra debug output for iogap.

18 years agossh port
Ben Gras [Mon, 10 Apr 2006 15:36:48 +0000 (15:36 +0000)]
ssh port

18 years ago-p option to not include packages
Ben Gras [Mon, 10 Apr 2006 14:18:54 +0000 (14:18 +0000)]
-p option to not include packages

Fix usage kb issue - don't count packages

18 years agoKill everyone even in tinyhalt. This causes tty to important clean up.
Ben Gras [Mon, 10 Apr 2006 00:29:34 +0000 (00:29 +0000)]
Kill everyone even in tinyhalt. This causes tty to important clean up.

18 years agoLittle bug in tinyhalt causing it not to recognize when called as reboot.
Ben Gras [Sun, 9 Apr 2006 23:24:37 +0000 (23:24 +0000)]
Little bug in tinyhalt causing it not to recognize when called as reboot.

18 years agoPatches by Jeff Bailey for posixifications.
Ben Gras [Sun, 9 Apr 2006 23:16:13 +0000 (23:16 +0000)]
Patches by Jeff Bailey for posixifications.

18 years agoHack to mask 1586 ('extended family') as 686
Ben Gras [Wed, 5 Apr 2006 20:57:18 +0000 (20:57 +0000)]
Hack to mask 1586 ('extended family') as 686

18 years agoDisable debug log
Ben Gras [Wed, 5 Apr 2006 14:25:21 +0000 (14:25 +0000)]
Disable debug log

18 years agoinstall elvis as /bin/vi and /usr/bin/vi
Ben Gras [Wed, 5 Apr 2006 12:01:48 +0000 (12:01 +0000)]
install elvis as /bin/vi and /usr/bin/vi

18 years agoKludge for 1586 processor id.
Ben Gras [Wed, 5 Apr 2006 11:56:05 +0000 (11:56 +0000)]
Kludge for 1586 processor id.