diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-08-02 20:19:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-08-02 20:19:45 +0000 |
commit | a6888a2b3a918920fe27133308c820e78dcecf16 (patch) | |
tree | f6f411ce5fcbcc26087c78daa4b93ddc613defd7 /pfinet | |
parent | 18dc5dc677ebf1d415e1adeff24041e9f496a2ed (diff) |
Add `magic' protocols to specify the file type of a sockets. This
allows implementation of POSIX pipes by using a S_IFSOCK protocol.
* sock.h: Include <sys/types.h>.
(struct sock): Add new member `mode'.
(sock_create): Add new parameter `mode'.
* sock.c (sock_create): Initialize `mode' member of struct sock,
with new parameter.
* pf.c (S_socket_create): Pass file type/mode to sock_create based
on PROTOCOL.
* io.c (S_io_stat): Use new member of `struct sock' to set
ST->st_mode.
Diffstat (limited to 'pfinet')
0 files changed, 0 insertions, 0 deletions