summaryrefslogtreecommitdiff
path: root/pflocal/pf.c
AgeCommit message (Collapse)Author
2011-12-06Fix error values on socket creationPino Toscano
On socket creation, return the correct errno values, EPROTOTYPE and EPROTONOSUPPORT, for invalid socket types and protocols. * pfinet/socket-ops.c (S_socket_create): Correctly return EPROTOTYPE and EPROTONOSUPPORT. * pflocal/pf.c (S_socket_create): Correctly return EPROTOTYPE.
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2008-07-22fix copyright yearsSamuel Thibault
2008-07-222008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* pf.c (S_socket_fabricate_address): Drop one reference from addr since we only take the send right. * socket.c (S_socket_name): Likewise.
2000-08-09* pf.c (S_socket_create): Only accept S_IFCHR, S_IFSOCK andMark Kettenis
S_IFIFO as `magic' protocols.
2000-08-02Add `magic' protocols to specify the file type of a sockets. ThisMark Kettenis
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.
1999-07-111999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* pf.c (S_socket_whatis_address): Use mmap instead of vm_allocate.
1999-03-021999-03-01 Mark Kettenis <kettenis@gnu.org>Roland McGrath
* pf.c (S_socket_whatis_address): Implement. Since we cannot tell what our adress is, return an empty string as the file name.
1995-11-06(S_socket_create_address): Removing BINDING argument.Miles Bader
1995-07-29entered into RCSMiles Bader
1995-07-26Formerly pf.c.~9~Miles Bader
1995-07-22Formerly pf.c.~8~Miles Bader
1995-07-17Formerly pf.c.~7~Miles Bader
1995-07-16Formerly pf.c.~6~Miles Bader
1995-07-16Formerly pf.c.~5~Miles Bader
1995-07-03Formerly pf.c.~4~Miles Bader
1995-07-02Formerly pf.c.~3~Miles Bader
1995-07-02Formerly pf.c.~2~Miles Bader
1995-07-01Initial revisionMiles Bader