Remove unusedd and obsolete openbsd_poll system call. (Phase 1)
Reported by: brooks Reviewed by: brooks,jhb Differential Revision: https://reviews.freebsd.org/D7548
This commit is contained in:
parent
db68f7839f
commit
5cba398b0c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304395
@ -15,7 +15,6 @@ MDASM= cerror.S \
|
||||
NOASM= break.o \
|
||||
exit.o \
|
||||
getlogin.o \
|
||||
openbsd_poll.o \
|
||||
sbrk.o \
|
||||
sstk.o \
|
||||
vfork.o \
|
||||
|
@ -8,6 +8,6 @@ MDASM= vfork.S brk.S cerror.S exect.S getcontext.S ptrace.S \
|
||||
sbrk.S setlogin.S sigreturn.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o vfork.o yield.o
|
||||
|
||||
PSEUDO= _getlogin.o _exit.o
|
||||
|
@ -5,6 +5,6 @@ SRCS+= __vdso_gettc.c
|
||||
MDASM= Ovfork.S brk.S cerror.S ptrace.S sbrk.S shmat.S sigreturn.S syscall.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o vfork.o yield.o
|
||||
|
||||
PSEUDO= _exit.o _getlogin.o
|
||||
|
@ -11,7 +11,7 @@ MDASM= Ovfork.S brk.S cerror.S exect.S getcontext.S ptrace.S \
|
||||
sbrk.S setlogin.S sigreturn.S syscall.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o vfork.o yield.o
|
||||
|
||||
PSEUDO= _getlogin.o _exit.o
|
||||
|
||||
|
@ -6,6 +6,6 @@ MDASM= Ovfork.S brk.S cerror.S exect.S \
|
||||
ptrace.S sbrk.S syscall.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o vfork.o yield.o
|
||||
|
||||
PSEUDO= _exit.o _getlogin.o
|
||||
|
@ -3,6 +3,6 @@
|
||||
MDASM+= brk.S cerror.S exect.S ptrace.S sbrk.S setlogin.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o yield.o
|
||||
|
||||
PSEUDO= _getlogin.o _exit.o
|
||||
|
@ -3,6 +3,6 @@
|
||||
MDASM+= brk.S cerror.S exect.S ptrace.S sbrk.S setlogin.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o yield.o
|
||||
|
||||
PSEUDO= _getlogin.o _exit.o
|
||||
|
@ -13,7 +13,6 @@ MDASM= cerror.S \
|
||||
NOASM= break.o \
|
||||
exit.o \
|
||||
getlogin.o \
|
||||
openbsd_poll.o \
|
||||
sbrk.o \
|
||||
sstk.o \
|
||||
vfork.o \
|
||||
|
@ -15,6 +15,6 @@ CFLAGS+= -I${LIBC_SRCTOP}/sparc64/fpu
|
||||
MDASM+= brk.S cerror.S exect.S ptrace.S sbrk.S setlogin.S sigaction1.S
|
||||
|
||||
# Don't generate default code for these syscalls:
|
||||
NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o yield.o
|
||||
NOASM= break.o exit.o getlogin.o sstk.o yield.o
|
||||
|
||||
PSEUDO= _getlogin.o _exit.o
|
||||
|
@ -474,8 +474,7 @@
|
||||
250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \
|
||||
int inherit); }
|
||||
251 AUE_RFORK NOPROTO { int rfork(int flags); }
|
||||
252 AUE_POLL NOPROTO { int openbsd_poll(struct pollfd *fds, \
|
||||
u_int nfds, int timeout); }
|
||||
252 AUE_NULL OBSOL openbsd_poll
|
||||
253 AUE_ISSETUGID NOPROTO { int issetugid(void); }
|
||||
254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); }
|
||||
255 AUE_NULL STD { int freebsd32_aio_read( \
|
||||
|
@ -462,14 +462,6 @@ utimensat
|
||||
##
|
||||
open
|
||||
|
||||
##
|
||||
## Allow poll(2), which will be scoped by capability rights.
|
||||
##
|
||||
## XXXRW: Perhaps we don't need the OpenBSD version?
|
||||
## XXXRW: We don't yet do that scoping.
|
||||
##
|
||||
openbsd_poll
|
||||
|
||||
##
|
||||
## Process descriptor-related system calls are allowed.
|
||||
##
|
||||
|
@ -1607,26 +1607,6 @@ pollscan(td, fds, nfd)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* OpenBSD poll system call.
|
||||
*
|
||||
* XXX this isn't quite a true representation.. OpenBSD uses select ops.
|
||||
*/
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct openbsd_poll_args {
|
||||
struct pollfd *fds;
|
||||
u_int nfds;
|
||||
int timeout;
|
||||
};
|
||||
#endif
|
||||
int
|
||||
sys_openbsd_poll(td, uap)
|
||||
register struct thread *td;
|
||||
register struct openbsd_poll_args *uap;
|
||||
{
|
||||
return (sys_poll(td, (struct poll_args *)uap));
|
||||
}
|
||||
|
||||
/*
|
||||
* XXX This was created specifically to support netncp and netsmb. This
|
||||
* allows the caller to specify a socket to wait for events on. It returns
|
||||
|
@ -472,8 +472,7 @@
|
||||
250 AUE_MINHERIT STD { int minherit(void *addr, size_t len, \
|
||||
int inherit); }
|
||||
251 AUE_RFORK STD { int rfork(int flags); }
|
||||
252 AUE_POLL STD { int openbsd_poll(struct pollfd *fds, \
|
||||
u_int nfds, int timeout); }
|
||||
252 AUE_NULL OBSOL openbsd_poll
|
||||
253 AUE_ISSETUGID STD { int issetugid(void); }
|
||||
254 AUE_LCHOWN STD { int lchown(char *path, int uid, int gid); }
|
||||
255 AUE_NULL STD { int aio_read(struct aiocb *aiocbp); }
|
||||
|
@ -58,7 +58,7 @@
|
||||
* in the range 5 to 9.
|
||||
*/
|
||||
#undef __FreeBSD_version
|
||||
#define __FreeBSD_version 1200001 /* Master, propagated to newvers */
|
||||
#define __FreeBSD_version 1200002 /* Master, propagated to newvers */
|
||||
|
||||
/*
|
||||
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
|
||||
|
Loading…
Reference in New Issue
Block a user