xref: /freebsd/lib/libsys/sysarch.2 (revision 8269e767)
18269e767SBrooks Davis.\"	$NetBSD: sysarch.2,v 1.6 1998/02/25 21:24:57 perry Exp $
28269e767SBrooks Davis.\"
38269e767SBrooks Davis.\" Copyright (c) 1980, 1991 Regents of the University of California.
48269e767SBrooks Davis.\" All rights reserved.
58269e767SBrooks Davis.\"
68269e767SBrooks Davis.\" Redistribution and use in source and binary forms, with or without
78269e767SBrooks Davis.\" modification, are permitted provided that the following conditions
88269e767SBrooks Davis.\" are met:
98269e767SBrooks Davis.\" 1. Redistributions of source code must retain the above copyright
108269e767SBrooks Davis.\"    notice, this list of conditions and the following disclaimer.
118269e767SBrooks Davis.\" 2. Redistributions in binary form must reproduce the above copyright
128269e767SBrooks Davis.\"    notice, this list of conditions and the following disclaimer in the
138269e767SBrooks Davis.\"    documentation and/or other materials provided with the distribution.
148269e767SBrooks Davis.\" 3. Neither the name of the University nor the names of its contributors
158269e767SBrooks Davis.\"    may be used to endorse or promote products derived from this software
168269e767SBrooks Davis.\"    without specific prior written permission.
178269e767SBrooks Davis.\"
188269e767SBrooks Davis.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
198269e767SBrooks Davis.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
208269e767SBrooks Davis.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
218269e767SBrooks Davis.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
228269e767SBrooks Davis.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
238269e767SBrooks Davis.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
248269e767SBrooks Davis.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
258269e767SBrooks Davis.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
268269e767SBrooks Davis.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
278269e767SBrooks Davis.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
288269e767SBrooks Davis.\" SUCH DAMAGE.
298269e767SBrooks Davis.\"
308269e767SBrooks Davis.Dd October 11, 1993
318269e767SBrooks Davis.Dt SYSARCH 2
328269e767SBrooks Davis.Os
338269e767SBrooks Davis.Sh NAME
348269e767SBrooks Davis.Nm sysarch
358269e767SBrooks Davis.Nd architecture-dependent system call
368269e767SBrooks Davis.Sh LIBRARY
378269e767SBrooks Davis.Lb libc
388269e767SBrooks Davis.Sh SYNOPSIS
398269e767SBrooks Davis.In machine/sysarch.h
408269e767SBrooks Davis.Ft int
418269e767SBrooks Davis.Fn sysarch "int number" "void *args"
428269e767SBrooks Davis.Sh DESCRIPTION
438269e767SBrooks DavisThe
448269e767SBrooks Davis.Fn sysarch
458269e767SBrooks Davissystem call
468269e767SBrooks Davisperforms the architecture-dependent function
478269e767SBrooks Davisspecified by
488269e767SBrooks Davis.Fa number
498269e767SBrooks Daviswith the arguments specified by the
508269e767SBrooks Davis.Fa args
518269e767SBrooks Davispointer.
528269e767SBrooks DavisThe
538269e767SBrooks Davis.Fa args
548269e767SBrooks Davisargument
558269e767SBrooks Davisis a pointer to a structure defining the actual
568269e767SBrooks Davisarguments of the function.
578269e767SBrooks DavisSymbolic constants and argument structures
588269e767SBrooks Davisfor the architecture-dependent
598269e767SBrooks Davisfunctions can be found in the header file
608269e767SBrooks Davis.In machine/sysarch.h .
618269e767SBrooks Davis.Pp
628269e767SBrooks DavisThe
638269e767SBrooks Davis.Fn sysarch
648269e767SBrooks Davissystem call should never be called directly by
658269e767SBrooks Davisuser programs.
668269e767SBrooks DavisInstead, they should access
678269e767SBrooks Davisits functions using the architecture-dependent
688269e767SBrooks Davislibrary.
698269e767SBrooks Davis.Sh RETURN VALUES
708269e767SBrooks DavisSee the manual pages for specific architecture-dependent system calls
718269e767SBrooks Davisfor information about their return values.
728269e767SBrooks Davis.Sh SEE ALSO
738269e767SBrooks Davis.Xr i386_get_ioperm 2 ,
748269e767SBrooks Davis.Xr i386_get_ldt 2 ,
758269e767SBrooks Davis.Xr i386_vm86 2
768269e767SBrooks Davis.Sh HISTORY
778269e767SBrooks DavisThis manual page was taken from
788269e767SBrooks Davis.Nx .
79