Ben Gras
9517eff5a4
Also a change by Joren
2005-09-06 10:15:57 +00:00
Ben Gras
aad54cb32c
Add fsync() interface.
2005-09-05 21:22:45 +00:00
Ben Gras
66b48eea33
Joren l'Ami 's updates to stdio, minor modification by me too (skip
...
doing anything in fflush() if stream is a pipe).
2005-09-05 17:17:58 +00:00
Ben Gras
9bc5da4276
Made socket() accept an udp or tcp protocol number
2005-09-01 15:24:29 +00:00
Ben Gras
cda3096335
Patch by claudio for lynx
2005-09-01 14:59:28 +00:00
Philip Homburg
b5abc91add
Added getsockname and getsockopt.
2005-08-25 15:10:57 +00:00
Philip Homburg
a61e8f28c7
Added basename(3)
2005-08-25 11:33:43 +00:00
Philip Homburg
4c863cf9fc
Fixed 'connected' check.
2005-08-25 10:47:24 +00:00
Jorrit Herder
e396496d8c
Fixed small bug in alarm code.
...
Kernel timer count was not reset after expiry.
2005-08-05 16:46:27 +00:00
Philip Homburg
473317e571
Added dp8390 to /usr/etc/rc. Renamed get_mon_prm.c to env_get_prm.c.
...
Add env_setargs call for access to argc/argv.
2005-08-05 14:20:05 +00:00
Philip Homburg
db5a8bb2b8
Added dp8390 driver. Additional env_parse functions that take argc and argv.
2005-08-05 09:53:08 +00:00
Ben Gras
5c9d34b62a
Removed socket library, there is a socket library in libc now
2005-08-03 11:35:41 +00:00
Philip Homburg
343bd97aeb
Removed old socket library.
2005-08-03 11:28:43 +00:00
Jorrit Herder
b69ca94efb
Fixed 'bug' in log driver that caused kernel messages not to be displayed.
...
This was caused by a change in the shared driver code. Not log's fault.
Renamed #definitions of driver process numbers, e.g., TTY now is TTY_PROC_NR.
All known (special) processes now have consistent naming scheme. Kernel tasks
don't follow this scheme.
2005-08-03 08:14:08 +00:00
Jorrit Herder
7af2b107d4
*** empty log message ***
2005-08-02 15:50:00 +00:00
Jorrit Herder
1d60e866c3
Various updates to support dynamically starting drivers.
2005-08-02 15:32:12 +00:00
Philip Homburg
a5b0301024
small fix for connect
2005-08-01 14:47:24 +00:00
Philip Homburg
e9ebecdd17
UDP support for connect.
2005-08-01 14:43:21 +00:00
Jorrit Herder
748b3dd434
Updates system library calls: interface changes (removed unused parameters).
...
Removed old notification trap: renamed alert() to notify() ... finally ;-)
2005-07-29 15:01:59 +00:00
Philip Homburg
49c25df569
bios_wini driver
2005-07-29 10:21:04 +00:00
Philip Homburg
a7487a5c3c
Added shutdown. EBADIOCTL in connect. Chaned some debug output.
2005-07-29 10:13:52 +00:00
Ben Gras
3f4e0a5f59
Took fchdir out of the user library, it's suspected of being buggy (in FS)
2005-07-27 18:48:48 +00:00
Jorrit Herder
fe0dcb5c00
AT driver is not modified (debugging only);
...
TTY: select and revive with new notify and FS call back;
kernel: removed old notify code; removed ugly prepare_shutdown timer
kputc: don't send to FS if PRINTF_PROC fails
2005-07-27 14:32:16 +00:00
Philip Homburg
e1f43abc09
Socket library
2005-07-27 11:57:59 +00:00
Philip Homburg
40b364a6db
Added some error strings.
2005-07-27 11:53:05 +00:00
Jorrit Herder
a41eb700e8
Minor fixes and improvements for sys_call().
2005-07-26 13:51:21 +00:00
Ben Gras
08578c6afb
Removed funny debug printf
2005-07-22 18:36:42 +00:00
Jorrit Herder
e2b05e4f55
*** empty log message ***
2005-07-21 18:37:19 +00:00
Jorrit Herder
ee509198a2
Removed 'tracing' flag from sys_exec. Logic is now local to PM.
...
Changed variable names in timers libary. Wrote new comments for
timers.h header file with explanation.
2005-07-20 15:33:54 +00:00
Ben Gras
0f48b1885d
new -lutil, only openpty() for now
2005-07-19 16:01:37 +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
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
Ben Gras
e2a0ddf863
Makefile fixes.
2005-07-13 14:59:04 +00:00
Ben Gras
e1c5c6c8f3
..
2005-07-11 14:16:53 +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
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
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
3dcb2886ff
get/setpriority() and fsync() system calls
2005-07-01 18:01:33 +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
af27dc0cf7
Added fchdir() system call, with corresponding manpage, Changelog and
...
system include modifications.
2005-06-29 19:28:26 +00:00
Philip Homburg
62f7f9e6d2
Added mkstemp function. Should use a secure random number generator.
2005-06-29 15:29:08 +00:00
Ben Gras
2abe246e5c
(Im)port of zlib-1.2.2
...
Ran configure with minix-friendly args and committed makefile. It's
a compromise to make zlib fit nicely into the current build system.
2005-06-27 13:05:04 +00:00
Ben Gras
205d288bb3
Fixed a few compile warnings
...
Imported a BSD-licensed getopt() from FreeBSD
2005-06-27 09:30:33 +00:00
Jorrit Herder
e3bb0e40ee
Removed sys_exit() kernel call.
2005-06-24 16:19:41 +00:00
Philip Homburg
0979014807
Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5.
...
More space for synctree.
2005-06-23 11:07:31 +00:00
Jorrit Herder
ec24a0798c
Updated function key mapping because of possible changes to NOTIFY.
...
The TTY driver now only notifies the IS server about function key event,
but does not tell which keys are pressed. The IS servers queries the TTY
driver to find out about this.
2005-06-20 14:23:31 +00:00
Ben Gras
39c90d6c90
Added (fake) readlink().
...
Compile fix for fslib (BITS_PER_BLOCK was renamed to FS_BITS_PER_BLOCK).
Added extra arg to various timer functions.
2005-06-17 13:47:29 +00:00
Jorrit Herder
7279bb68ef
Applied MINIX 2.0.4 pathes provides by Al Woodhull.
2005-06-17 13:00:04 +00:00
Ben Gras
b7c75fab5b
Added dummy readlink() call that returns an error (we don't have symlinks
...
yet)
also select() stub
2005-06-17 11:43:24 +00:00
Jorrit Herder
4a2817cea1
Changed uname to retrieve actual OS release and version number at runtime.
2005-06-17 08:53:33 +00:00
Philip Homburg
dc23e18cef
Improved compatibility with other Unix systems.
2005-06-10 15:12:03 +00:00
Ben Gras
aca763443a
removed debug message
2005-06-06 14:58:47 +00:00
Jorrit Herder
2f74381dcc
Fixed 'ps' utility: now get process table addresses with getsysinfo() calls.
...
To be done: get copies of process tables instead of using /dev/(k)mem.
2005-06-06 13:51:50 +00:00
Ben Gras
e44e9ad261
small compile fixes; initial select() stubs; release.sh script doesn't
...
need /tmp any more since 16MB root device; increase to 3.0.5 to make new
CD with working FXP driver. (not tagged 3.0.5 yet as at driver bios-copy
workaround hasn't been done.)
2005-06-06 11:40:32 +00:00
Ben Gras
9392dde997
bugfix
2005-06-06 11:31:20 +00:00
Jorrit Herder
c281867f46
Fixed bug relating to FS and MEMORY during startup;
...
Relocated some syslib functions to utils library;
Changed location of 'Multiuser startup ..." echo in /etc/rc
2005-06-06 09:30:44 +00:00
Jorrit Herder
f2a85e58d9
Various updates.
...
* Removed some variants of the SYS_GETINFO calls from the kernel;
replaced them with new PM and utils libary functionality. Fixed
bugs in utils library that used old get_kenv() variant.
* Implemented a buffer in the kernel to gather random data.
Memory driver periodically checks this for /dev/random.
A better random algorithm can now be implemented in the driver.
Removed SYS_RANDOM; the SYS_GETINFO call is used instead.
* Remove SYS_KMALLOC from the kernel. Memory allocation can now
be done at the process manager with new 'other' library functions.
2005-06-03 13:55:06 +00:00
Jorrit Herder
e782e76944
Created new findproc system call to the PM (to replace similar kernel
...
functionality). Currently working on memory allocation (not yet finished).
2005-06-02 12:43:21 +00:00
Jorrit Herder
6d23f072f3
Cleaned up src/lib/utils library. Renamed server_ functions to more logical
...
names. All system processes can now either use panic() or report() from
libutils, or redefine their own function. Assertions are done via the standard
<assert.h> functionality.
2005-06-01 14:31:00 +00:00
Ben Gras
b4335679cb
Added sys_physzero library call for corresponding system call; modified
...
system-printf() so it returns number of characters printed (for use in
smart formatting)
2005-06-01 09:36:07 +00:00
Jorrit Herder
f0af8d85e7
*** empty log message ***
2005-05-31 14:44:49 +00:00
Jorrit Herder
0165662cd9
Replaced flagalrm() timers with another technique to check for timeouts.
...
This allowed removing the p_flagarlm timer from the kernel's process table.
Furthermore, I merged p_syncalrm and p_signalrm into p_alarm_timer to save
even more space. Note that processes can no longer have both a signal and
synchronous alarm timer outstanding as of now.
2005-05-31 14:43:04 +00:00
Jorrit Herder
322ec9ef8b
Moved stime, time, times POSIX calls from FS to PM. Removed child time
...
accounting from kernel (now in PM). Large amount of files in this commit
is due to system time problems during development.
2005-05-31 09:50:51 +00:00
Jorrit Herder
b421423c77
SENDREC now always has flag FRESH_ANSWER to prevent pending notifications
...
to be used as answer to a SENDREC call.
2005-05-30 11:11:40 +00:00
Jorrit Herder
8d9c0886cd
Created ECHO system call for testing purposes.
...
Furthermore, a quick way to get one's own process number.
2005-05-27 13:57:00 +00:00
Jorrit Herder
d0a5a5d007
New system call added to PM: getprocnr(int *proc_nr) (like getpid);
...
Minor update to scheduling code (unready().
2005-05-20 09:37:43 +00:00
Jorrit Herder
307c825515
New NOTIFY trap (IPC call) to send queued notification messages.
...
The call works. Permission check, restriction of outstanding notifications
to be added. Low level code to make it work from within interrupt handlers
will be added as well.
2005-05-19 14:05:51 +00:00
Jorrit Herder
1cb880b158
Intermediate update---please await next commit.
2005-05-19 09:36:44 +00:00
Ben Gras
7f52483b9f
Release process to use and create 16MB root; FS setcache call removed
2005-05-13 12:47:35 +00:00
Jorrit Herder
49b86f3373
Fixed tick_delay; it now reschedules a previous synchronous alarm.
2005-05-13 09:33:53 +00:00
Ben Gras
0e859fd436
Must be able to run FP.compile if FP.compile isn't an executable script.
2005-05-03 15:41:39 +00:00
Ben Gras
6a335043f6
bugfix from jnherder
2005-05-03 09:03:55 +00:00
Jorrit Herder
ac0995259d
*** empty log message ***
2005-05-02 14:30:04 +00:00
Jorrit Herder
89ac678b9b
*** empty log message ***
2005-04-29 15:36:43 +00:00
Ben Gras
9865aeaa79
Initial revision
2005-04-21 14:53:53 +00:00