sync with OpenBSD -current
This commit is contained in:
parent
e53750f3c3
commit
24ffeadca5
43 changed files with 1173 additions and 701 deletions
|
@ -434,7 +434,6 @@ symlink
|
|||
symlinkat
|
||||
sync
|
||||
sysarch
|
||||
syscall
|
||||
timer_create
|
||||
timer_delete
|
||||
timer_getoverrun
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: unistd.h,v 1.12 2023/05/18 16:11:09 guenther Exp $ */
|
||||
/* $OpenBSD: unistd.h,v 1.13 2023/12/12 15:30:55 deraadt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
|
||||
*
|
||||
|
@ -157,7 +157,6 @@ PROTO_NORMAL(swapctl);
|
|||
PROTO_NORMAL(symlink);
|
||||
PROTO_NORMAL(symlinkat);
|
||||
PROTO_NORMAL(sync);
|
||||
PROTO_NORMAL(syscall);
|
||||
PROTO_NORMAL(sysconf);
|
||||
PROTO_DEPRECATED(tcgetpgrp);
|
||||
PROTO_DEPRECATED(tcsetpgrp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
major=97
|
||||
minor=1
|
||||
major=98
|
||||
minor=0
|
||||
# note: If changes were made to include/thread_private.h or if system calls
|
||||
# were added/changed then librthread/shlib_version must also be updated.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $OpenBSD: Makefile.inc,v 1.175 2023/12/11 00:34:24 deraadt Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.176 2023/12/12 15:30:55 deraadt Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $
|
||||
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
|||
# modules with non-default implementations on at least one architecture:
|
||||
SRCS+= Ovfork.S brk.S ${CERROR} \
|
||||
sbrk.S sigpending.S sigprocmask.S \
|
||||
sigsuspend.S syscall.S tfork_thread.S
|
||||
sigsuspend.S tfork_thread.S
|
||||
|
||||
# glue to offer userland wrappers for some syscalls
|
||||
SRCS+= posix_madvise.c pthread_sigmask.c \
|
||||
|
@ -216,7 +216,7 @@ MAN+= __get_tcb.2 __thrsigdivert.2 __thrsleep.2 _exit.2 accept.2 \
|
|||
shmctl.2 shmget.2 shutdown.2 sigaction.2 sigaltstack.2 sigpending.2 \
|
||||
sigprocmask.2 sigreturn.2 sigsuspend.2 socket.2 \
|
||||
socketpair.2 stat.2 statfs.2 swapctl.2 symlink.2 \
|
||||
sync.2 sysarch.2 syscall.2 sysctl.2 thrkill.2 truncate.2 \
|
||||
sync.2 sysarch.2 sysctl.2 thrkill.2 truncate.2 \
|
||||
umask.2 unlink.2 unveil.2 utimes.2 utrace.2 vfork.2 \
|
||||
wait.2 waitid.2 write.2 \
|
||||
ypconnect.2
|
||||
|
|
|
@ -1,68 +0,0 @@
|
|||
.\" $OpenBSD: syscall.2,v 1.16 2023/02/22 07:04:50 jmc Exp $
|
||||
.\" $NetBSD: syscall.2,v 1.4 1995/02/27 12:38:53 cgd Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. Neither the name of the University nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)syscall.2 8.1 (Berkeley) 6/16/93
|
||||
.\"
|
||||
.Dd $Mdocdate: February 22 2023 $
|
||||
.Dt SYSCALL 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm syscall
|
||||
.Nd indirect system call
|
||||
.Sh SYNOPSIS
|
||||
.In sys/syscall.h
|
||||
.In unistd.h
|
||||
.Ft int
|
||||
.Fn syscall "int number" "..."
|
||||
.Sh DESCRIPTION
|
||||
.Fn syscall
|
||||
performs the system call whose assembly language
|
||||
interface has the specified
|
||||
.Fa number
|
||||
with the specified arguments.
|
||||
Symbolic constants for system calls can be found in the header file
|
||||
.In sys/syscall.h .
|
||||
.Sh RETURN VALUES
|
||||
The return values are defined by the system call being invoked.
|
||||
In general, for system calls returning
|
||||
.Va int ,
|
||||
a 0 return value indicates success.
|
||||
A \-1 return value indicates an error,
|
||||
and an error code is stored in
|
||||
.Va errno .
|
||||
.Sh HISTORY
|
||||
The predecessor of these functions, the former
|
||||
.Fn indir
|
||||
system call, first appeared in
|
||||
.At v4 .
|
||||
The
|
||||
.Fn syscall
|
||||
function first appeared in
|
||||
.Bx 3 .
|
Loading…
Add table
Add a link
Reference in a new issue