Module Name: src
Committed By: maya
Date: Tue Dec 4 00:18:05 UTC 2018
Modified Files:
src/sys/kern: sys_socket.c
Log Message:
soo_fcntl is identical to fnullop_fcntl, use the latter
ok kamil mrg
To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/kern/sys_socket.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_socket.c
diff -u src/sys/kern/sys_socket.c:1.77 src/sys/kern/sys_socket.c:1.78
--- src/sys/kern/sys_socket.c:1.77 Wed Aug 1 23:35:32 2018
+++ src/sys/kern/sys_socket.c Tue Dec 4 00:18:05 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_socket.c,v 1.77 2018/08/01 23:35:32 rjs Exp $ */
+/* $NetBSD: sys_socket.c,v 1.78 2018/12/04 00:18:05 maya Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_socket.c,v 1.77 2018/08/01 23:35:32 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_socket.c,v 1.78 2018/12/04 00:18:05 maya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -85,7 +85,7 @@ const struct fileops socketops = {
.fo_read = soo_read,
.fo_write = soo_write,
.fo_ioctl = soo_ioctl,
- .fo_fcntl = soo_fcntl,
+ .fo_fcntl = fnullop_fcntl,
.fo_poll = soo_poll,
.fo_stat = soo_stat,
.fo_close = soo_close,
@@ -224,16 +224,6 @@ soo_ioctl(file_t *fp, u_long cmd, void *
}
int
-soo_fcntl(file_t *fp, u_int cmd, void *data)
-{
-
- if (cmd == F_SETFL)
- return 0;
- else
- return EOPNOTSUPP;
-}
-
-int
soo_poll(file_t *fp, int events)
{