soo_fcntl is identical to fnullop_fcntl, use the latter
ok kamil mrg
This commit is contained in:
parent
1fe770a45d
commit
5047e05c23
@ -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,
|
||||
@ -223,16 +223,6 @@ soo_ioctl(file_t *fp, u_long cmd, void *data)
|
||||
return error;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user