
This patch adds the implementation of the BSD socket system calls which have been introduced in an earlier patch. At the same time, it adds support for communication with socket drivers, using a new "socket device" (SDEV_) protocol. These two parts, implemented in socket.c and sdev.c respectively, form the upper and lower halves of the new BSD socket support in VFS. New mapping functionality for socket domains and drivers is added as well, implemented in smap.c. The rest of the changes mainly facilitate the separation of character and socket driver calls, and do not make any fundamental alterations. For example, while this patch changes VFS's select.c rather heavily, the new select logic for socket drivers is the exact same as for character drivers; the changes mainly separate the driver type specific parts from the generic select logic further than before. Change-Id: I2f13084dd3c8d3a68bfc69da0621120c8291f707
44 lines
894 B
C
44 lines
894 B
C
#ifndef __VFS_FS_H__
|
|
#define __VFS_FS_H__
|
|
|
|
/* This is the master header for fs. It includes some other files
|
|
* and defines the principal constants.
|
|
*/
|
|
#define _SYSTEM 1 /* tell headers that this is the kernel */
|
|
|
|
/* The following are so basic, all the *.c files get them automatically. */
|
|
#include <minix/config.h> /* MUST be first */
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <machine/vmparam.h>
|
|
|
|
#include <minix/const.h>
|
|
#include <minix/type.h>
|
|
#include <minix/dmap.h>
|
|
#include <minix/ds.h>
|
|
#include <minix/rs.h>
|
|
#include <minix/callnr.h>
|
|
|
|
#include <limits.h>
|
|
#include <errno.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <fcntl.h>
|
|
#include <assert.h>
|
|
|
|
#include <minix/syslib.h>
|
|
#include <minix/sysutil.h>
|
|
#include <minix/timers.h>
|
|
|
|
#include "const.h"
|
|
#include "dmap.h"
|
|
#include "proto.h"
|
|
#include "threads.h"
|
|
#include "glo.h"
|
|
#include "type.h"
|
|
#include "vmnt.h"
|
|
#include "fproc.h"
|
|
|
|
#endif
|