Commit graph

6807 commits

Author SHA1 Message Date
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
Ben Gras c021dafe27 usyslogd - microsyslogd that has a hard-coded configuration (read from
/dev/klog and write to /var/log/messages). It's written so that more
sources and outputs could be added easily though.
2005-07-08 17:21:50 +00:00
Jorrit Herder 2b3961eb91 Fixed annoying compile warnings. 2005-07-08 12:25:13 +00:00
Ben Gras 1adcfcdf1c Changed FD_* select() fd set manipulation functions to macros. Also
made FD_SETSIZE pre-#include-definable, with OPEN_MAX as default if unset.
2005-07-06 07:22:21 +00:00
Ben Gras f0817fbd4c complete, tick-resolution gettimeofday() implementation 2005-07-06 07:08:36 +00:00
Ben Gras 493ab97a8d fixed small operator priority bug; ! has higher precedence than & in
(!flags & FLAGCHECK)
2005-07-05 11:08:15 +00:00
Ben Gras 904cf1f84d A "fix" for bug no. 2 is to check if the process slot has disappeared.
Not a really good solution (as it might not catch situations in which this
is caused by another bug), but the forrest of checks necessary might be worse
than this quick fix - because when looking for the cause, I found some other
cases in which the PM would panic as well. See info in bug 2 for details.

Another fix is to delay notification of PM by SYSTASK of signals delivered
internally until after the reply (e.g. of exec()), because the reply would
be messed up otherwise (receiving the notify instead of reply). This caused
SIGTRAP not to be delivered properly with traced processes.
2005-07-04 15:20:46 +00:00
Ben Gras 5939b6a4d7 . fsck has A for yes-to-all response
. mkfs makes filesystems on devices >4GB, but truncates them at 4GB
2005-07-04 13:34:24 +00:00
Ben Gras e17ced44ee Guard /usr/adm/wtmp for shutdown -C check 2005-07-04 13:30:55 +00:00
Ben Gras 08f67dcef7 . Added printing of ppid to PM dump output
. made PM pid 0, own parent (so ppid 0) instead of -1
2005-07-04 09:36:16 +00:00
Ben Gras af9465adbd >4GB device detection; mkfs can make it, but FS can't use it... 2005-07-04 09:20:03 +00:00
Ben Gras 35c98cffdc warning about <4GB filesystems 2005-07-04 09:19:31 +00:00
Ben Gras 8f07525484 format prettifictions; better task/server/user process detection logic 2005-07-04 09:19:15 +00:00
Ben Gras 3dcb2886ff get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
Ben Gras 7a31b9aa12 New nice utility, imported from FreeBSD, used to run processes at a different
priority.
2005-07-01 18:00:10 +00:00
Ben Gras 83bac1e6a5 Callnumbers and prototypes for get/setpriority() and fsync(). 2005-07-01 17:58:57 +00:00
Ben Gras 9cf24c3233 Calls and functionality for get/setpriority() and fsync(). 2005-07-01 17:58:29 +00:00
Ben Gras bfc8f08ae7 Small select manpage update.
manpages for sync and getpriority/setpriority system calls.
manpage for nice utility.
2005-07-01 17:57:51 +00:00
Jorrit Herder 7f2e7461e6 Fix stupid assumption that caused headache.
Timers lib now seems to work fine again.
2005-07-01 17:17:13 +00:00
Ben Gras 83f0f501f8 Added <sys/resource.h> for [gs]etpriority() call. 2005-07-01 09:59:49 +00:00
Ben Gras 2ce80ece5c 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).
2005-07-01 09:39:47 +00:00
Ben Gras d2018bb8ad Little mkfs diagnostic help 2005-07-01 09:38:45 +00:00