Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern soo_fcntl is identical to fnullop_fcntl, use the la...
details: https://anonhg.NetBSD.org/src/rev/683ccb8049a7
branches: trunk
changeset: 995043:683ccb8049a7
user: maya <maya%NetBSD.org@localhost>
date: Tue Dec 04 00:18:05 2018 +0000
description:
soo_fcntl is identical to fnullop_fcntl, use the latter
ok kamil mrg
diffstat:
sys/kern/sys_socket.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diffs (44 lines):
diff -r 0a63106e80b1 -r 683ccb8049a7 sys/kern/sys_socket.c
--- a/sys/kern/sys_socket.c Mon Dec 03 23:23:30 2018 +0000
+++ b/sys/kern/sys_socket.c Tue Dec 04 00:18:05 2018 +0000
@@ -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 @@
.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 @@
}
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)
{
Home |
Main Index |
Thread Index |
Old Index