Commit graph

328 commits

Author SHA1 Message Date
Ben Gras
c24f72d433 Made phys_fill fill its 4-byte pattern any number of bytes (instead of
rounded down to a 4-byte multiple)

Fixed dependency omission
2005-07-19 16:00:25 +00:00
Jorrit Herder
1d7bdd4ab1 *** empty log message *** 2005-07-19 15:01:47 +00:00
Jorrit Herder
b3a28466bb *** empty log message *** 2005-07-19 14:03:21 +00:00
Jorrit Herder
5594b767c0 Renamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util 2005-07-19 13:21:51 +00:00
Jorrit Herder
0129d98ae1 Added new signal types for kernel events:
- SIGKMESS: new kernel message (sent to TTY, IS, or LOG)
- SIGKSTOP: MINIX is shut down (sent to TTY-> switch to primary console)
- SIGKSIG: kernel signals pending (sent to PM)

Renamed SYS_SETPRIORITY to SYS_NICE.
2005-07-19 12:24:51 +00:00
Jorrit Herder
198c976f7e System processes can be signaled; signals are transformed in SYS_EVENT message
that passes signal map along. This mechanisms is also used for nonuser signals
like SIGKMESS, SIGKSTOP, SIGKSIG.

Revised comments of many system call handlers. Renamed setpriority to nice.
2005-07-19 12:21:36 +00:00
Philip Homburg
f8c380c195 Small update to random number generator 2005-07-19 12:16:55 +00:00
Jorrit Herder
488b2afc12 System processes started via servers=... boot monitor parameter
are now daemonized (instead of SIGNON procedure at PM).
2005-07-19 12:14:10 +00:00
Jorrit Herder
8c024e28a1 Changed Makefiles: drivers are now installed in /usr/sbin.
TTY now gets SYS_EVENT message with sigset (e.g., SIGKMESS, SIGKSTOP).
2005-07-19 12:12:48 +00:00
Jorrit Herder
f2e16763e7 Removed PM signon for INET. Now daemonized in /usr/etc/rc.
SIGTRAP generated in PM (where it belongs / no longer in kernel).
Updated Makefiles: servers are now installed in /usr/sbin.
2005-07-19 12:11:11 +00:00
Philip Homburg
7d4e914618 Random number generator 2005-07-18 15:40:24 +00:00
Ben Gras
3eb405c3bf Fixed two uninitialized-data bugs. 2005-07-18 13:44:39 +00:00
Ben Gras
1f756d377a Made memset system call listen to character argument 2005-07-18 12:31:11 +00:00
Ben Gras
42e6d20afe Changed phys_zero to phys_fill, which accepts a 4-byte argument saying what
to fill with. Changed prototype and call to match.
2005-07-18 12:18:16 +00:00
Ben Gras
5cd673c5ba Nit in compress about filenames; backup patched to use opendir() and
readdir() (old dir format didn't work)
2005-07-18 09:33:27 +00:00
Ben Gras
dfc51728b7 Made dirent filename len a macro; corrected comment bug in bios.h reported
by Andrew Schilt <aschilt@cox.net>.
2005-07-18 09:11:48 +00:00
Ben Gras
c69ed2c4b1 Verbose tar option was for debugging, shouldn't have been commited. Undone. 2005-07-15 11:49:34 +00:00
Jorrit Herder
eba45510a9 New alarm(2) timers mechanism.
Kernel no longer keeps track of user alarms on behalf of the PM.
Instead, the PM maintains its own list of watchdog timers, and
uses one synchronous alarm (at the kernel) to get notifications
for expired user timers.
2005-07-14 15:30:12 +00:00
Jorrit Herder
2c730e8a8c Renamed file. 2005-07-14 15:27:40 +00:00
Jorrit Herder
312c004519 *** empty log message *** 2005-07-14 15:26:26 +00:00
Jorrit Herder
570eac1f53 Renamed system library functionality.
Updated debug dumps of IS server.
2005-07-14 15:16:12 +00:00
Jorrit Herder
279250889f Renamed some system library functionality. 2005-07-14 15:15:18 +00:00
Jorrit Herder
272a8496ac Updated system call library.
Updated various header files for consistency.
Remove some unused stuff ... better check to be done.
2005-07-14 15:14:44 +00:00
Jorrit Herder
654722493b Renamed various system calls.
Cleaned up system call library.
Added new alert() trap to replace notify() --- current notify will be removed
and alert() will be called notify() later.
2005-07-14 15:13:33 +00:00
Jorrit Herder
42ab148155 Reorganized system call library; uses separate file per call now.
New configuration header file to include/ exclude functionality.
Extracted privileged features from struct proc and create new struct priv.
Renamed various system calls for readability.
2005-07-14 15:12:12 +00:00
Ben Gras
355d22ff06 .. 2005-07-13 15:08:59 +00:00
Ben Gras
0348b8d0ca Minor improvements for autopart and setupcd 2005-07-13 14:59:43 +00:00
Ben Gras
e2a0ddf863 Makefile fixes. 2005-07-13 14:59:04 +00:00
Ben Gras
c389801a5f Made timeout and no. of errors in at_wini dynamically settable
by ioctl; made catch-all function in driver table also called when
unrecognized ioctl called, so drivers can add their own ioctl codes.
2005-07-13 14:58:21 +00:00
Ben Gras
f96645a4eb Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be
copied into was the same size as the source string - it will keep on
filling with zeroes forever. This was a signed/unsigned bug, fixed by
making the kstrncpy argument ssize_t instead of size_t. This bug was
triggered by Chris Young <teddga@earthlink.net>, by dazzling coincedence -
changing OS_VERSION into something with one more character (exactly the
same size as the buffer in the kinfo struct).

Also noticed that the kstrncpy() call didn't null-terminate the strings
if necessary, also fixed.
2005-07-13 14:46:11 +00:00
Ben Gras
0f746219fc setup -> setupcd 2005-07-13 13:04:56 +00:00
Ben Gras
e0e5e62230 Increased timeout to avoid 'CU does not accept command' panic.. 2005-07-13 11:50:30 +00:00
Ben Gras
5dd4862b7e Fixed some warnings in dosread.c; initial version of autopart
(don't try it yet ;))
2005-07-13 10:02:14 +00:00
Ben Gras
d4b173ee50 Misc fixes and additions 2005-07-12 13:10:06 +00:00
Ben Gras
e1c5c6c8f3 .. 2005-07-11 14:16:53 +00:00
Ben Gras
5c13385e40 Added sync() after logfile i/o to reduce risk of losing log entries after
e.g. crashes.
2005-07-11 13:19:29 +00:00
Philip Homburg
ed66b0ff02 Increased mii_read timeout. 2005-07-11 13:09:44 +00:00
Philip Homburg
0cabfc76ee Usleep implementation based on select. 2005-07-11 13:08:00 +00:00
Philip Homburg
b5809b6a81 Added random, strdup, and strtok_r. 2005-07-11 13:06:27 +00:00
Philip Homburg
c60f3ff846 Select patches for TCP read and write. TCP support for FIONREAD. 2005-07-11 13:02:59 +00:00
Philip Homburg
11cbb6faae Many changes to simplify porting applications. 2005-07-11 13:00:43 +00:00
Philip Homburg
054e68baf6 Flex-2.5.4. 2005-07-11 12:54:10 +00:00
Philip Homburg
d21c2c2229 Enable debug output 2005-07-11 12:49:24 +00:00
Philip Homburg
9bb373331c More stack for tar 2005-07-11 12:47:43 +00:00
Philip Homburg
77f1301ae9 More stack for make 2005-07-11 12:46:27 +00:00
Philip Homburg
ef795796bf More stack for acd. 2005-07-11 12:45:57 +00:00
Philip Homburg
c45ee629ee More stack for aal. 2005-07-11 12:44:39 +00:00
Ben Gras
42050e39f8 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.
2005-07-08 17:30:01 +00:00
Ben Gras
dd31785aa6 Added some data for the new log device. 2005-07-08 17:24:49 +00:00
Ben Gras
640eb73ca2 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.
2005-07-08 17:23:44 +00:00