mdoc(7) police: Scheduled sweep.

This commit is contained in:
Ruslan Ermilov 2003-02-24 22:53:26 +00:00
parent 7d6ddd1027
commit ace5be682d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111447
62 changed files with 820 additions and 687 deletions

View File

@ -128,9 +128,7 @@ and the global variable
.Va errno .Va errno
is set to indicate the error. is set to indicate the error.
.Pp .Pp
.Rv -std sem_close .Rv -std sem_close sem_unlink
.Pp
.Rv -std sem_unlink
.Sh ERRORS .Sh ERRORS
The The
.Fn sem_open .Fn sem_open
@ -204,9 +202,9 @@ The named semaphore does not exist.
.Xr umask 2 , .Xr umask 2 ,
.Xr unlink 2 , .Xr unlink 2 ,
.Xr sem_getvalue 3 , .Xr sem_getvalue 3 ,
.Xr sem_wait 3 ,
.Xr sem_trywait 3 ,
.Xr sem_post 3 , .Xr sem_post 3 ,
.Xr sem_trywait 3 ,
.Xr sem_wait 3 ,
.Xr sem 4 .Xr sem 4
.Sh STANDARDS .Sh STANDARDS
The The
@ -225,4 +223,5 @@ This implementation places strict requirements on the value of
it must begin with a slash it must begin with a slash
.Pq Ql / , .Pq Ql / ,
contain no other slash characters, contain no other slash characters,
and be less than 14 characters in length not including the terminating null. and be less than 14 characters in length
not including the terminating null character.

View File

@ -40,7 +40,7 @@
The The
.Fn signbit .Fn signbit
macro takes an argument of macro takes an argument of
.Va x .Fa x
and returns non-zero if the value of its sign is negative, otherwise 0. and returns non-zero if the value of its sign is negative, otherwise 0.
.Sh SEE ALSO .Sh SEE ALSO
.Xr fpclassify 3 , .Xr fpclassify 3 ,

View File

@ -1,12 +1,12 @@
.\" Copyright (c) 2002 Networks Associates Technology, Inc. .\" Copyright (c) 2002 Networks Associates Technology, Inc.
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" This software was developed for the FreeBSD Project by Chris .\" This software was developed for the FreeBSD Project by Chris
.\" Costello at Safeport Network Services and Network Associates Labs, .\" Costello at Safeport Network Services and Network Associates Labs,
.\" the Security Research Division of Network Associates, Inc. under .\" the Security Research Division of Network Associates, Inc. under
.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the .\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
.\" DARPA CHATS research program. .\" DARPA CHATS research program.
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -15,7 +15,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -27,16 +27,19 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" 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 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.Dd DECEMBER 12, 2002 .\"
.Dd December 12, 2002
.Os .Os
.Dt MAC_PREPARE 3 .Dt MAC_PREPARE 3
.Sh NAME .Sh NAME
.Nm mac_prepare .Nm mac_prepare , mac_prepare_file_label ,
.Nd allocate appropriate storage for mac_t .Nm mac_prepare_ifnet_label , mac_prepare_process_label
.Nd allocate appropriate storage for
.Vt mac_t
.Sh SYNOPSIS .Sh SYNOPSIS
.In "sys/mac.h" .In sys/mac.h
.Ft int .Ft int
.Fn mac_prepare "mac_t *mac" "char *elements" .Fn mac_prepare "mac_t *mac" "char *elements"
.Ft int .Ft int
@ -55,7 +58,7 @@ for use by
.Pp .Pp
The The
.Fn mac_prepare .Fn mac_prepare
function accepts a list of policy names as a parameter and allocates the function accepts a list of policy names as a parameter, and allocates the
storage to fit those label elements accordingly. storage to fit those label elements accordingly.
.Pp .Pp
The The
@ -66,7 +69,7 @@ and
functions allocate the storage to fit file, network interface, functions allocate the storage to fit file, network interface,
and process labels, respectively. and process labels, respectively.
.Sh RETURN VALUES .Sh RETURN VALUES
.Rv -std mac_prepare mac_prepare_file_label mac_prepare_ifnet_label mac_prepare_process_label .Rv -std
.Sh SEE ALSO .Sh SEE ALSO
.Xr mac 3 , .Xr mac 3 ,
.Xr mac_free 3 , .Xr mac_free 3 ,
@ -76,7 +79,7 @@ and process labels, respectively.
.Xr mac 4 , .Xr mac 4 ,
.Xr maclabel 7 .Xr maclabel 7
.Sh STANDARDS .Sh STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17. POSIX.1e is described in IEEE POSIX.1e draft 17.
Discussion of the draft Discussion of the draft
continues on the cross-platform POSIX.1e implementation mailing list. continues on the cross-platform POSIX.1e implementation mailing list.
To join this list, see the To join this list, see the

View File

@ -172,7 +172,8 @@ and any KSE in a KSE group may be assigned by the kernel to any runnable
(in the kernel) thread associated with that KSE group. (in the kernel) thread associated with that KSE group.
In practice, the kernel attempts to preserve the affinity between threads In practice, the kernel attempts to preserve the affinity between threads
and actual CPUs to optimize cache behavior, but this is invisible to the and actual CPUs to optimize cache behavior, but this is invisible to the
user process. (Affinity is not yet implemented). user process.
(Affinity is not yet implemented.)
.Pp .Pp
Each KSE has a unique Each KSE has a unique
.Sy "KSE mailbox" .Sy "KSE mailbox"
@ -268,7 +269,7 @@ instead, the KSE just looses the association with its mailbox and
.Fn kse_exit .Fn kse_exit
returns normally. returns normally.
This returns the process to its original, unthreaded state. This returns the process to its original, unthreaded state.
(this is not yet implemented). (This is not yet implemented.)
.Pp .Pp
The The
.Fn kse_release .Fn kse_release
@ -324,7 +325,7 @@ When a process has at least one KSE with an associated mailbox, then
signals might no longer be delivered on the process stack. signals might no longer be delivered on the process stack.
Instead, signals may be delivered via upcalls. Instead, signals may be delivered via upcalls.
Multiple signals may be delivered with one upcall. Multiple signals may be delivered with one upcall.
(This feature is not yet coded). (This feature is not yet coded.)
.Pp .Pp
If there are multiple KSE groups in the process, which KSE group is If there are multiple KSE groups in the process, which KSE group is
chosen to deliver the signal is indeterminate. chosen to deliver the signal is indeterminate.
@ -436,7 +437,8 @@ contains the list of signals caught by this process since the previous
upcall to any KSE in the process. upcall to any KSE in the process.
As long as there exists one or more KSEs with an associated mailbox in As long as there exists one or more KSEs with an associated mailbox in
the user process, signals are delivered this way rather than the the user process, signals are delivered this way rather than the
traditional way. (This has not bein implemented and may change). traditional way.
(This has not been implemented and may change.)
.Pp .Pp
.Va km_timeofday .Va km_timeofday
is set by the kernel to the current system time before performing is set by the kernel to the current system time before performing
@ -521,7 +523,6 @@ system calls
do not return if successful. do not return if successful.
.Pp .Pp
All of these system calls return a non-zero error code in case of an error. All of these system calls return a non-zero error code in case of an error.
.Pp
.Sh ERRORS .Sh ERRORS
The The
.Fn kse_create .Fn kse_create

View File

@ -144,9 +144,9 @@ Invalid value for
.Pp .Pp
The The
.Fn pthread_attr_setstacksize .Fn pthread_attr_setstacksize
or and
.Fn pthread_attr_setstack .Fn pthread_attr_setstack
function will fail if: functions will fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
.Fa stacksize .Fa stacksize

View File

@ -44,8 +44,8 @@ Most fields of
.Vt pthread_attr_t .Vt pthread_attr_t
structure are exact values of attributes provided at thread creation structure are exact values of attributes provided at thread creation
time (as parameter to time (as parameter to
.Fn pthread_create .Xr pthread_create 3
function), except stack address. function), except for the stack address.
.Pp .Pp
Value returned as Value returned as
.Fa dst .Fa dst
@ -61,11 +61,11 @@ should point to allocated memory area big enough to fit this structure.
It is HIGHLY RECOMMENDED to use It is HIGHLY RECOMMENDED to use
.Xr pthread_attr_init 3 .Xr pthread_attr_init 3
function to allocate attribute storage. function to allocate attribute storage.
.Sh IMPLEMENTATION DETAILS .Sh IMPLEMENTATION NOTES
The The
.Fn pthread_attr_get_np .Fn pthread_attr_get_np
function will always return pointer to thread's real stack address function will always return a pointer to the thread's real stack address,
regardless to its value in original attributes structure. regardless of its value in the original attributes structure.
.Sh EXAMPLES .Sh EXAMPLES
.Bd -literal .Bd -literal
size_t size_t
@ -109,7 +109,7 @@ thread ID.
.Xr pthread_attr_init 3 .Xr pthread_attr_init 3
.Sh AUTHORS .Sh AUTHORS
The The
.Nm .Fn pthread_attr_get_np
function and manpage were written by function and this manual page were written by
.An Alexey Zelkin .An Alexey Zelkin
.Aq phantom@FreeBSD.org .Aq phantom@FreeBSD.org .

View File

@ -40,35 +40,33 @@
The The
.Fn pthread_attr_setcreatesuspend_np .Fn pthread_attr_setcreatesuspend_np
instructs instructs
.Fn pthread_create .Xr pthread_create 3
that thread created with attribute that the thread created with the
.Fa attr .Fa attr
should be created and left in suspended state until explicit resume call (by attribute
should be created and left in a suspended state until explicitly resumed
by the call to
.Fn pthread_resume_np .Fn pthread_resume_np
or or
.Fn pthread_resume_all_np .Fn pthread_resume_all_np .
function.)
.Sh RETURN VALUES .Sh RETURN VALUES
.Rv -std pthread_attr_setcreatesuspend_np .Rv -std pthread_attr_setcreatesuspend_np
.Sh ERRORS .Sh ERRORS
The The
.Fn pthread_attr_setcreatesuspend_np .Fn pthread_attr_setcreatesuspend_np
function will fail if: function will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by
.Fa attr .Fa attr
is invalid is invalid.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_attr_init 3 ,
.Xr pthread_attr_destroy 3 , .Xr pthread_attr_destroy 3 ,
.Xr pthread_attr_init 3 ,
.Xr pthread_create 3 , .Xr pthread_create 3 ,
.Xr pthread_resume_all_np 3 , .Xr pthread_resume_all_np 3 ,
.Xr pthread_resume_np 3 .Xr pthread_resume_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -35,33 +35,26 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft int .Ft int
.Fn pthread_main_np "void" .Fn pthread_main_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_main_np .Fn pthread_main_np
is used in userland threads environment to identify initial thread. function
Its semantics is similar to Solaris's is used in userland threads environment to identify the initial thread.
Its semantics is similar to the Solaris's
.Fn thr_main .Fn thr_main
function. function.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn pthread_main_np .Fn pthread_main_np
function returns one of the following: function returns
.Bl -tag 1 if the calling thread is the initial thread,
.It 1 0 if the calling thread is not the initial thread,
if the calling thread is the initial thread and \-1 if the thread's initialization has not yet completed.
.It 0
if the calling thread is not the initial thread
.It -1
if threads initialization has not completed
.El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_create 3 , .Xr pthread_create 3 ,
.Xr pthread_equal 3 , .Xr pthread_equal 3 ,
.Xr pthread_self 3 .Xr pthread_self 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -30,35 +30,37 @@
.Sh NAME .Sh NAME
.Nm pthread_multi_np , .Nm pthread_multi_np ,
.Nm pthread_single_np .Nm pthread_single_np
.Nd switch betwen multi- and single-threaded scheduling modes .Nd "switch between multi- and single-threaded scheduling modes"
.Sh LIBRARY .Sh LIBRARY
.Lb libc_r .Lb libc_r
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft int .Ft int
.Fn pthread_multi_np "void" .Fn pthread_multi_np void
.Ft int .Ft int
.Fn pthread_single_np "void" .Fn pthread_single_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_single_np .Fn pthread_single_np
function call switches process to single-threaded mode, i.e. function switches the process to a single-threaded mode, i.e.,
suspend all threads except current. suspends all threads except the current.
Semantic of this function is similar to The semantics of this function is similar to
.Fn pthread_suspend_all_np . .Xr pthread_suspend_all_np 3 .
.Pp .Pp
The The
.Fn pthread_multi_np .Fn pthread_multi_np
function call switches process to multi-threaded mode, entered by function switches the process to a multi-threaded mode.
.Fn pthread_single_np The semantics of this function is similar to
Semantic of this function is similar to .Xr pthread_resume_all_np 3 .
.Fn pthread_resume_all_np . .Sh RETURN VALUES
The
.Fn pthread_multi_np
and
.Nm pthread_single_np
functions always return 0.
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_resume_all_np 3 , .Xr pthread_resume_all_np 3 ,
.Xr pthread_single_all_np 3 .Xr pthread_suspend_all_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -30,7 +30,7 @@
.Sh NAME .Sh NAME
.Nm pthread_mutexattr_getkind_np , .Nm pthread_mutexattr_getkind_np ,
.Nm pthread_mutexattr_setkind_np .Nm pthread_mutexattr_setkind_np
.Nd mutex attribute operations (LEGACY) .Nd mutex attribute operations (legacy)
.Sh LIBRARY .Sh LIBRARY
.Lb libc_r .Lb libc_r
.Sh SYNOPSIS .Sh SYNOPSIS
@ -40,45 +40,42 @@
.Ft int .Ft int
.Fn pthread_mutexattr_setkind_np "pthread_mutexattr_t *attr" "int kind" .Fn pthread_mutexattr_setkind_np "pthread_mutexattr_t *attr" "int kind"
.Sh DESCRIPTION .Sh DESCRIPTION
These functions are DEPRECATED and NON-PORTABLE implementation of mutex types .Bf -symbolic
manipulation. These functions are deprecated and non-portable implementation of
the mutex type manipulation.
.Ef
.Pp .Pp
It's recomended to use It is recommended to use the
.Fn pthread_mutexattr_gettype .Xr pthread_mutexattr_gettype 3
and and
.Fn pthread_mutexattr_settype .Xr pthread_mutexattr_settype 3
functions instead. functions instead.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn pthread_mutexattr_getkind_np .Fn pthread_mutexattr_getkind_np
function returns positive value representing function returns a positive value representing the
.Ft kind .Dq kind
of mutex attribute of the mutex attribute
.Fa attr .Fa attr
if successful; otherwise the value -1 is returned and the global variable if successful; otherwise the value \-1 is returned and the global variable
.Fa errno .Va errno
is set to indicate the error. is set to indicate the error.
.Pp .Pp
The .Rv -std pthread_mutexattr_setkind_np
.Fn pthread_mutexattr_settype
function returns the value 0 if successful; otherwise
the value -1 is returned and the global variable
.Fa errno
is set to indicate the error.
.Sh ERRORS .Sh ERRORS
The The
.Fn pthread_mutexattr_getkind_np .Fn pthread_mutexattr_getkind_np
and and
.Fn pthread_mutexattr_setkind_np .Fn pthread_mutexattr_setkind_np
functions will fail if: functions will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by
.Fa attr .Fa attr
is invalid is invalid.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_mutex_create 3 ,
.Xr pthread_mutex_destroy 3 ,
.Xr pthread_mutexattr_gettype 3 , .Xr pthread_mutexattr_gettype 3 ,
.Xr pthread_mutexattr_settype 3 .Xr pthread_mutexattr_settype 3 ,
.Xr pthread_mutex_create 3 ,
.Xr pthread_mutex_destroy 3

View File

@ -35,21 +35,17 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft void .Ft void
.Fn pthread_resume_all_np "void" .Fn pthread_resume_all_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_resume_all_np .Fn pthread_resume_all_np
function call causes all active thread to be scanned function causes all active threads to be scanned
and resume those which were suspended previously. and resumes those which were previously suspended.
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_attr_setcreatesuspend_np 3 , .Xr pthread_attr_setcreatesuspend_np 3 ,
.Xr pthread_resume_np 3 , .Xr pthread_resume_np 3 ,
.Xr pthread_suspend_all_np 3 , .Xr pthread_suspend_all_np 3 ,
.Xr pthread_suspend_np 3 .Xr pthread_suspend_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -39,8 +39,8 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_resume_np .Fn pthread_resume_np
function called on suspended thread cause it to resume. function, called on a suspended thread, causes it to resume.
If thread specified by If a thread specified by the
.Fa tid .Fa tid
argument is not suspended, no actions will be performed. argument is not suspended, no actions will be performed.
.Sh RETURN VALUES .Sh RETURN VALUES
@ -52,13 +52,13 @@ Otherwise, an error number is returned to indicate the error.
The The
.Fn pthread_resume_np .Fn pthread_resume_np
function will fail if: function will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by the
.Fa tid .Fa tid
is invalid argument is invalid.
.It Bq ESRC .It Bq ESRC
No thread could be found corresponding to thread ID specified by No thread could be found corresponding to the thread ID specified by the
.Fa tid .Fa tid
argument. argument.
.El .El
@ -68,9 +68,5 @@ argument.
.Xr pthread_suspend_all_np 3 , .Xr pthread_suspend_all_np 3 ,
.Xr pthread_suspend_np 3 .Xr pthread_suspend_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -45,15 +45,11 @@ argument to string value specified by
.Fa name .Fa name
argument. argument.
.Pp .Pp
This is rather debuging interface and using it at day-by-day basis makes This is a debugging interface and using it on a day-by-day basis makes
no sense. no sense.
.Sh ERRORS .Sh ERRORS
Because of debuging orientation of this function all errors that may Because of the debugging nature of this function, all errors that may
appear inside are sliently ignored. appear inside are silently ignored.
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -35,12 +35,13 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft void .Ft void
.Fn pthread_suspend_all_np "void" .Fn pthread_suspend_all_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_suspend_all_np .Fn pthread_suspend_all_np
function call causes all active thread to be suspended. function causes all active threads to be suspended.
The only exception is current thread, i.e. thread which called The only exception is the current thread,
the thread that called the
.Fn pthread_suspend_all_np .Fn pthread_suspend_all_np
function. function.
.Sh SEE ALSO .Sh SEE ALSO
@ -48,9 +49,5 @@ function.
.Xr pthread_resume_np 3 , .Xr pthread_resume_np 3 ,
.Xr pthread_suspend_np 3 .Xr pthread_suspend_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -39,7 +39,7 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_suspend_np .Fn pthread_suspend_np
function called on active thread cause it to suspend. function, called on an active thread, causes it to suspend.
.Sh RETURN VALUES .Sh RETURN VALUES
If successful, If successful,
.Fn pthread_suspend_np .Fn pthread_suspend_np
@ -49,15 +49,15 @@ Otherwise, an error number is returned to indicate the error.
The The
.Fn pthread_suspend_np .Fn pthread_suspend_np
function will fail if: function will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EDEADLK .It Bq Er EDEADLK
Attempt to suspend current thread An attempt was made to suspend the current thread.
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by the
.Fa tid .Fa tid
is invalid argument is invalid.
.It Bq ESRC .It Bq ESRC
No thread could be found corresponding to thread ID specified by No thread could be found corresponding to the thread ID specified by the
.Fa tid .Fa tid
argument. argument.
.El .El
@ -66,9 +66,5 @@ argument.
.Xr pthread_resume_np 3 , .Xr pthread_resume_np 3 ,
.Xr pthread_suspend_all_np 3 .Xr pthread_suspend_all_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -30,7 +30,7 @@
.Sh NAME .Sh NAME
.Nm pthread_switch_add_np , .Nm pthread_switch_add_np ,
.Nm pthread_switch_delete_np .Nm pthread_switch_delete_np
.Nd threads context switches debugging primitives .Nd thread context switches debugging primitives
.Sh LIBRARY .Sh LIBRARY
.Lb libc_r .Lb libc_r
.Sh SYNOPSIS .Sh SYNOPSIS
@ -40,22 +40,22 @@
.Ft int .Ft int
.Fn pthread_switch_delete_np "pthread_switch_routine_t routine" .Fn pthread_switch_delete_np "pthread_switch_routine_t routine"
.Sh DESCRIPTION .Sh DESCRIPTION
The application is allowed to monitor thread context switches inside An application is allowed to monitor the thread context switches inside
threading library. the threading library.
An application can install routine that gets called everytime a thread An application can install a routine that gets called every time a thread
(explicitly created by the application with (explicitly created by an application with the
.Fn pthread_create .Xr pthread_create 3
function) gets context switched. function) gets the context switched.
This routine gets passed the pthread IDs of the threads that are The routine is passed the thread IDs of the threads that are
being switched in and out. being switched in and out.
Installation and removal of these hooks may be done using Installation and removal of these hooks may be done using the
.Fn pthread_switch_add_np .Fn pthread_switch_add_np
and and
.Fn pthread_switch_delete_np .Fn pthread_switch_delete_np
functions respectively. functions respectively.
.Sh RETURN VALUES .Sh RETURN VALUES
If successful, If successful,
functions return 0. these functions return 0.
Otherwise, an error number is returned to indicate the error. Otherwise, an error number is returned to indicate the error.
.Sh ERRORS .Sh ERRORS
The The
@ -63,25 +63,25 @@ The
may fail if: may fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
NULL pointer passed as .Dv NULL
pointer was passed in the
.Fa routine .Fa routine
argument. argument.
.El .El
.Pp
The The
.Fn pthread_switch_delete_np .Fn pthread_switch_delete_np
may fail if: may fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The
.Fa routine .Fa routine
argument is different from argument previously passed to argument is different from the argument previously passed to the
.Fn pthread_switch_add_np .Fn pthread_switch_add_np
function.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_create 3 .Xr pthread_create 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -128,9 +128,7 @@ and the global variable
.Va errno .Va errno
is set to indicate the error. is set to indicate the error.
.Pp .Pp
.Rv -std sem_close .Rv -std sem_close sem_unlink
.Pp
.Rv -std sem_unlink
.Sh ERRORS .Sh ERRORS
The The
.Fn sem_open .Fn sem_open
@ -204,9 +202,9 @@ The named semaphore does not exist.
.Xr umask 2 , .Xr umask 2 ,
.Xr unlink 2 , .Xr unlink 2 ,
.Xr sem_getvalue 3 , .Xr sem_getvalue 3 ,
.Xr sem_wait 3 ,
.Xr sem_trywait 3 ,
.Xr sem_post 3 , .Xr sem_post 3 ,
.Xr sem_trywait 3 ,
.Xr sem_wait 3 ,
.Xr sem 4 .Xr sem 4
.Sh STANDARDS .Sh STANDARDS
The The
@ -225,4 +223,5 @@ This implementation places strict requirements on the value of
it must begin with a slash it must begin with a slash
.Pq Ql / , .Pq Ql / ,
contain no other slash characters, contain no other slash characters,
and be less than 14 characters in length not including the terminating null. and be less than 14 characters in length
not including the terminating null character.

View File

@ -44,14 +44,14 @@
.Lb libgeom .Lb libgeom
.Sh SYNOPSIS .Sh SYNOPSIS
.In libgeom.h .In libgeom.h
.Ss "Statistics functions" .Ss "Statistics Functions"
.Ft void .Ft void
.Fn geom_stats_close void .Fn geom_stats_close void
.Ft int .Ft int
.Fn geom_stats_open void .Fn geom_stats_open void
.Ft void .Ft void
.Fn geom_stats_resync void .Fn geom_stats_resync void
.Ft void * .Ft "void *"
.Fn geom_stats_snapshot_get void .Fn geom_stats_snapshot_get void
.Ft void .Ft void
.Fn geom_stats_snapshot_free "void *arg" .Fn geom_stats_snapshot_free "void *arg"
@ -59,26 +59,30 @@
.Fn geom_stats_snapshot_timestamp "void *arg" "struct timespec *tp" .Fn geom_stats_snapshot_timestamp "void *arg" "struct timespec *tp"
.Ft void .Ft void
.Fn geom_stats_snapshot_reset "void *arg" .Fn geom_stats_snapshot_reset "void *arg"
.Ft struct g_stat * .Ft "struct g_stat *"
.Fn geom_stats_snapshot_next "void *arg" .Fn geom_stats_snapshot_next "void *arg"
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm Libgeom The
is the library which contains the official and publicized API for .Nm geom
library contains the official and publicized API for
interacting with the GEOM subsystem in the kernel. interacting with the GEOM subsystem in the kernel.
.Ss "Statistics functions" .Ss "Statistics Functions"
GEOM collects statistics data for all consumers and providers, but does GEOM collects statistics data for all consumers and providers, but does
not perform any normalization or presentation on the raw data, this is not perform any normalization or presentation on the raw data, this is
left as an excercize for user-land presentation utilities. left as an excercize for user-land presentation utilities.
.Pp .Pp
The The
.Fn geom_stats_open .Fn geom_stats_open
and and
.Fn geom_stats_close .Fn geom_stats_close
functions opens and closes the necessary pathways to access the raw functions open and close the necessary pathways to access the raw
statistics information in the kernel. These functions are likely to statistics information in the kernel.
open one or more files and cache the filedescriptors locally. These functions are likely to
open one or more files and cache the file descriptors locally.
.Fn geom_stats_open .Fn geom_stats_open
returns zero on success, and sets errno if not. returns zero on success, and sets
.Va errno
if not.
.Pp .Pp
The The
.Fn geom_stats_resync .Fn geom_stats_resync
@ -88,30 +92,45 @@ added in the kernel since
or the previous call to or the previous call to
.Fn geom_stats_resync . .Fn geom_stats_resync .
.Pp .Pp
The
.Fn geom_stats_snapshot_get .Fn geom_stats_snapshot_get
will aquire a snapshot of the raw data from the kernel and while a function
will acquire a snapshot of the raw data from the kernel, and while a
reasonable effort is made to make this snapshot as atomic and consistent reasonable effort is made to make this snapshot as atomic and consistent
as possible, no guarantee is given that it will actually be so. as possible, no guarantee is given that it will actually be so.
The snapshot must be freed again using the The snapshot must be freed again using the
.Fn geom_stats_snapshot_free .Fn geom_stats_snapshot_free
function. function.
.Fn geom_stats_snapshot_get .Fn geom_stats_snapshot_get
returns NULL on failure. returns
.Dv NULL
on failure.
.Pp .Pp
The
.Fn geom_stats_snapshot_timestamp .Fn geom_stats_snapshot_timestamp
provides access to the timestamp aquired in the snapshot. function
provides access to the timestamp acquired in the snapshot.
.Pp .Pp
The
.Fn geom_stats_snapshot_reset .Fn geom_stats_snapshot_reset
and and
.Fn geom_stats_snapshot_next .Fn geom_stats_snapshot_next
provides an iterator over the statistics slots in the snapshot. functions
provide an iterator over the statistics slots in the snapshot.
The
.Fn geom_stats_snapshot_reset .Fn geom_stats_snapshot_reset
function
forces the internal pointer in the snapshot back to before the first item. forces the internal pointer in the snapshot back to before the first item.
The
.Fn geom_stats_snapshot_next .Fn geom_stats_snapshot_next
returns the next item and NULL if there are no more items in the snapshot. function
returns the next item, and
.Dv NULL
if there are no more items in the snapshot.
.Sh AUTHORS .Sh AUTHORS
.An Poul-Henning Kamp Aq phk@FreeBSD.org .An Poul-Henning Kamp Aq phk@FreeBSD.org
.Sh HISTORY .Sh HISTORY
The
.Nm geom .Nm geom
library appeard in library appeared in
.Fx 5.1 . .Fx 5.1 .

View File

@ -407,7 +407,7 @@ user.
As a special case if the As a special case if the
.Dq ftp .Dq ftp
user's home directory pathname contains the user's home directory pathname contains the
.Dq \&/./ .Pa /./
separator, separator,
.Nm .Nm
uses its left-hand side as the name of the directory to do uses its left-hand side as the name of the directory to do

View File

@ -144,9 +144,9 @@ Invalid value for
.Pp .Pp
The The
.Fn pthread_attr_setstacksize .Fn pthread_attr_setstacksize
or and
.Fn pthread_attr_setstack .Fn pthread_attr_setstack
function will fail if: functions will fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
.Fa stacksize .Fa stacksize

View File

@ -44,8 +44,8 @@ Most fields of
.Vt pthread_attr_t .Vt pthread_attr_t
structure are exact values of attributes provided at thread creation structure are exact values of attributes provided at thread creation
time (as parameter to time (as parameter to
.Fn pthread_create .Xr pthread_create 3
function), except stack address. function), except for the stack address.
.Pp .Pp
Value returned as Value returned as
.Fa dst .Fa dst
@ -61,11 +61,11 @@ should point to allocated memory area big enough to fit this structure.
It is HIGHLY RECOMMENDED to use It is HIGHLY RECOMMENDED to use
.Xr pthread_attr_init 3 .Xr pthread_attr_init 3
function to allocate attribute storage. function to allocate attribute storage.
.Sh IMPLEMENTATION DETAILS .Sh IMPLEMENTATION NOTES
The The
.Fn pthread_attr_get_np .Fn pthread_attr_get_np
function will always return pointer to thread's real stack address function will always return a pointer to the thread's real stack address,
regardless to its value in original attributes structure. regardless of its value in the original attributes structure.
.Sh EXAMPLES .Sh EXAMPLES
.Bd -literal .Bd -literal
size_t size_t
@ -109,7 +109,7 @@ thread ID.
.Xr pthread_attr_init 3 .Xr pthread_attr_init 3
.Sh AUTHORS .Sh AUTHORS
The The
.Nm .Fn pthread_attr_get_np
function and manpage were written by function and this manual page were written by
.An Alexey Zelkin .An Alexey Zelkin
.Aq phantom@FreeBSD.org .Aq phantom@FreeBSD.org .

View File

@ -40,35 +40,33 @@
The The
.Fn pthread_attr_setcreatesuspend_np .Fn pthread_attr_setcreatesuspend_np
instructs instructs
.Fn pthread_create .Xr pthread_create 3
that thread created with attribute that the thread created with the
.Fa attr .Fa attr
should be created and left in suspended state until explicit resume call (by attribute
should be created and left in a suspended state until explicitly resumed
by the call to
.Fn pthread_resume_np .Fn pthread_resume_np
or or
.Fn pthread_resume_all_np .Fn pthread_resume_all_np .
function.)
.Sh RETURN VALUES .Sh RETURN VALUES
.Rv -std pthread_attr_setcreatesuspend_np .Rv -std pthread_attr_setcreatesuspend_np
.Sh ERRORS .Sh ERRORS
The The
.Fn pthread_attr_setcreatesuspend_np .Fn pthread_attr_setcreatesuspend_np
function will fail if: function will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by
.Fa attr .Fa attr
is invalid is invalid.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_attr_init 3 ,
.Xr pthread_attr_destroy 3 , .Xr pthread_attr_destroy 3 ,
.Xr pthread_attr_init 3 ,
.Xr pthread_create 3 , .Xr pthread_create 3 ,
.Xr pthread_resume_all_np 3 , .Xr pthread_resume_all_np 3 ,
.Xr pthread_resume_np 3 .Xr pthread_resume_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -35,33 +35,26 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft int .Ft int
.Fn pthread_main_np "void" .Fn pthread_main_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_main_np .Fn pthread_main_np
is used in userland threads environment to identify initial thread. function
Its semantics is similar to Solaris's is used in userland threads environment to identify the initial thread.
Its semantics is similar to the Solaris's
.Fn thr_main .Fn thr_main
function. function.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn pthread_main_np .Fn pthread_main_np
function returns one of the following: function returns
.Bl -tag 1 if the calling thread is the initial thread,
.It 1 0 if the calling thread is not the initial thread,
if the calling thread is the initial thread and \-1 if the thread's initialization has not yet completed.
.It 0
if the calling thread is not the initial thread
.It -1
if threads initialization has not completed
.El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_create 3 , .Xr pthread_create 3 ,
.Xr pthread_equal 3 , .Xr pthread_equal 3 ,
.Xr pthread_self 3 .Xr pthread_self 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -30,35 +30,37 @@
.Sh NAME .Sh NAME
.Nm pthread_multi_np , .Nm pthread_multi_np ,
.Nm pthread_single_np .Nm pthread_single_np
.Nd switch betwen multi- and single-threaded scheduling modes .Nd "switch between multi- and single-threaded scheduling modes"
.Sh LIBRARY .Sh LIBRARY
.Lb libc_r .Lb libc_r
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft int .Ft int
.Fn pthread_multi_np "void" .Fn pthread_multi_np void
.Ft int .Ft int
.Fn pthread_single_np "void" .Fn pthread_single_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_single_np .Fn pthread_single_np
function call switches process to single-threaded mode, i.e. function switches the process to a single-threaded mode, i.e.,
suspend all threads except current. suspends all threads except the current.
Semantic of this function is similar to The semantics of this function is similar to
.Fn pthread_suspend_all_np . .Xr pthread_suspend_all_np 3 .
.Pp .Pp
The The
.Fn pthread_multi_np .Fn pthread_multi_np
function call switches process to multi-threaded mode, entered by function switches the process to a multi-threaded mode.
.Fn pthread_single_np The semantics of this function is similar to
Semantic of this function is similar to .Xr pthread_resume_all_np 3 .
.Fn pthread_resume_all_np . .Sh RETURN VALUES
The
.Fn pthread_multi_np
and
.Nm pthread_single_np
functions always return 0.
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_resume_all_np 3 , .Xr pthread_resume_all_np 3 ,
.Xr pthread_single_all_np 3 .Xr pthread_suspend_all_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -30,7 +30,7 @@
.Sh NAME .Sh NAME
.Nm pthread_mutexattr_getkind_np , .Nm pthread_mutexattr_getkind_np ,
.Nm pthread_mutexattr_setkind_np .Nm pthread_mutexattr_setkind_np
.Nd mutex attribute operations (LEGACY) .Nd mutex attribute operations (legacy)
.Sh LIBRARY .Sh LIBRARY
.Lb libc_r .Lb libc_r
.Sh SYNOPSIS .Sh SYNOPSIS
@ -40,45 +40,42 @@
.Ft int .Ft int
.Fn pthread_mutexattr_setkind_np "pthread_mutexattr_t *attr" "int kind" .Fn pthread_mutexattr_setkind_np "pthread_mutexattr_t *attr" "int kind"
.Sh DESCRIPTION .Sh DESCRIPTION
These functions are DEPRECATED and NON-PORTABLE implementation of mutex types .Bf -symbolic
manipulation. These functions are deprecated and non-portable implementation of
the mutex type manipulation.
.Ef
.Pp .Pp
It's recomended to use It is recommended to use the
.Fn pthread_mutexattr_gettype .Xr pthread_mutexattr_gettype 3
and and
.Fn pthread_mutexattr_settype .Xr pthread_mutexattr_settype 3
functions instead. functions instead.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn pthread_mutexattr_getkind_np .Fn pthread_mutexattr_getkind_np
function returns positive value representing function returns a positive value representing the
.Ft kind .Dq kind
of mutex attribute of the mutex attribute
.Fa attr .Fa attr
if successful; otherwise the value -1 is returned and the global variable if successful; otherwise the value \-1 is returned and the global variable
.Fa errno .Va errno
is set to indicate the error. is set to indicate the error.
.Pp .Pp
The .Rv -std pthread_mutexattr_setkind_np
.Fn pthread_mutexattr_settype
function returns the value 0 if successful; otherwise
the value -1 is returned and the global variable
.Fa errno
is set to indicate the error.
.Sh ERRORS .Sh ERRORS
The The
.Fn pthread_mutexattr_getkind_np .Fn pthread_mutexattr_getkind_np
and and
.Fn pthread_mutexattr_setkind_np .Fn pthread_mutexattr_setkind_np
functions will fail if: functions will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by
.Fa attr .Fa attr
is invalid is invalid.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_mutex_create 3 ,
.Xr pthread_mutex_destroy 3 ,
.Xr pthread_mutexattr_gettype 3 , .Xr pthread_mutexattr_gettype 3 ,
.Xr pthread_mutexattr_settype 3 .Xr pthread_mutexattr_settype 3 ,
.Xr pthread_mutex_create 3 ,
.Xr pthread_mutex_destroy 3

View File

@ -35,21 +35,17 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft void .Ft void
.Fn pthread_resume_all_np "void" .Fn pthread_resume_all_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_resume_all_np .Fn pthread_resume_all_np
function call causes all active thread to be scanned function causes all active threads to be scanned
and resume those which were suspended previously. and resumes those which were previously suspended.
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_attr_setcreatesuspend_np 3 , .Xr pthread_attr_setcreatesuspend_np 3 ,
.Xr pthread_resume_np 3 , .Xr pthread_resume_np 3 ,
.Xr pthread_suspend_all_np 3 , .Xr pthread_suspend_all_np 3 ,
.Xr pthread_suspend_np 3 .Xr pthread_suspend_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -39,8 +39,8 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_resume_np .Fn pthread_resume_np
function called on suspended thread cause it to resume. function, called on a suspended thread, causes it to resume.
If thread specified by If a thread specified by the
.Fa tid .Fa tid
argument is not suspended, no actions will be performed. argument is not suspended, no actions will be performed.
.Sh RETURN VALUES .Sh RETURN VALUES
@ -52,13 +52,13 @@ Otherwise, an error number is returned to indicate the error.
The The
.Fn pthread_resume_np .Fn pthread_resume_np
function will fail if: function will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by the
.Fa tid .Fa tid
is invalid argument is invalid.
.It Bq ESRC .It Bq ESRC
No thread could be found corresponding to thread ID specified by No thread could be found corresponding to the thread ID specified by the
.Fa tid .Fa tid
argument. argument.
.El .El
@ -68,9 +68,5 @@ argument.
.Xr pthread_suspend_all_np 3 , .Xr pthread_suspend_all_np 3 ,
.Xr pthread_suspend_np 3 .Xr pthread_suspend_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -45,15 +45,11 @@ argument to string value specified by
.Fa name .Fa name
argument. argument.
.Pp .Pp
This is rather debuging interface and using it at day-by-day basis makes This is a debugging interface and using it on a day-by-day basis makes
no sense. no sense.
.Sh ERRORS .Sh ERRORS
Because of debuging orientation of this function all errors that may Because of the debugging nature of this function, all errors that may
appear inside are sliently ignored. appear inside are silently ignored.
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -35,12 +35,13 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.In pthread_np.h .In pthread_np.h
.Ft void .Ft void
.Fn pthread_suspend_all_np "void" .Fn pthread_suspend_all_np void
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_suspend_all_np .Fn pthread_suspend_all_np
function call causes all active thread to be suspended. function causes all active threads to be suspended.
The only exception is current thread, i.e. thread which called The only exception is the current thread,
the thread that called the
.Fn pthread_suspend_all_np .Fn pthread_suspend_all_np
function. function.
.Sh SEE ALSO .Sh SEE ALSO
@ -48,9 +49,5 @@ function.
.Xr pthread_resume_np 3 , .Xr pthread_resume_np 3 ,
.Xr pthread_suspend_np 3 .Xr pthread_suspend_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -39,7 +39,7 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_suspend_np .Fn pthread_suspend_np
function called on active thread cause it to suspend. function, called on an active thread, causes it to suspend.
.Sh RETURN VALUES .Sh RETURN VALUES
If successful, If successful,
.Fn pthread_suspend_np .Fn pthread_suspend_np
@ -49,15 +49,15 @@ Otherwise, an error number is returned to indicate the error.
The The
.Fn pthread_suspend_np .Fn pthread_suspend_np
function will fail if: function will fail if:
.Bl -tag -witdh Er .Bl -tag -width Er
.It Bq Er EDEADLK .It Bq Er EDEADLK
Attempt to suspend current thread An attempt was made to suspend the current thread.
.It Bq Er EINVAL .It Bq Er EINVAL
The value specified by The value specified by the
.Fa tid .Fa tid
is invalid argument is invalid.
.It Bq ESRC .It Bq ESRC
No thread could be found corresponding to thread ID specified by No thread could be found corresponding to the thread ID specified by the
.Fa tid .Fa tid
argument. argument.
.El .El
@ -66,9 +66,5 @@ argument.
.Xr pthread_resume_np 3 , .Xr pthread_resume_np 3 ,
.Xr pthread_suspend_all_np 3 .Xr pthread_suspend_all_np 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -30,7 +30,7 @@
.Sh NAME .Sh NAME
.Nm pthread_switch_add_np , .Nm pthread_switch_add_np ,
.Nm pthread_switch_delete_np .Nm pthread_switch_delete_np
.Nd threads context switches debugging primitives .Nd thread context switches debugging primitives
.Sh LIBRARY .Sh LIBRARY
.Lb libc_r .Lb libc_r
.Sh SYNOPSIS .Sh SYNOPSIS
@ -40,22 +40,22 @@
.Ft int .Ft int
.Fn pthread_switch_delete_np "pthread_switch_routine_t routine" .Fn pthread_switch_delete_np "pthread_switch_routine_t routine"
.Sh DESCRIPTION .Sh DESCRIPTION
The application is allowed to monitor thread context switches inside An application is allowed to monitor the thread context switches inside
threading library. the threading library.
An application can install routine that gets called everytime a thread An application can install a routine that gets called every time a thread
(explicitly created by the application with (explicitly created by an application with the
.Fn pthread_create .Xr pthread_create 3
function) gets context switched. function) gets the context switched.
This routine gets passed the pthread IDs of the threads that are The routine is passed the thread IDs of the threads that are
being switched in and out. being switched in and out.
Installation and removal of these hooks may be done using Installation and removal of these hooks may be done using the
.Fn pthread_switch_add_np .Fn pthread_switch_add_np
and and
.Fn pthread_switch_delete_np .Fn pthread_switch_delete_np
functions respectively. functions respectively.
.Sh RETURN VALUES .Sh RETURN VALUES
If successful, If successful,
functions return 0. these functions return 0.
Otherwise, an error number is returned to indicate the error. Otherwise, an error number is returned to indicate the error.
.Sh ERRORS .Sh ERRORS
The The
@ -63,25 +63,25 @@ The
may fail if: may fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
NULL pointer passed as .Dv NULL
pointer was passed in the
.Fa routine .Fa routine
argument. argument.
.El .El
.Pp
The The
.Fn pthread_switch_delete_np .Fn pthread_switch_delete_np
may fail if: may fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EINVAL .It Bq Er EINVAL
The
.Fa routine .Fa routine
argument is different from argument previously passed to argument is different from the argument previously passed to the
.Fn pthread_switch_add_np .Fn pthread_switch_add_np
function.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pthread_create 3 .Xr pthread_create 3
.Sh AUTHORS .Sh AUTHORS
The This manual page was written by
.Nm .An Alexey Zelkin Aq phantom@FreeBSD.org .
manpage was written by
.An Alexey Zelkin
.Aq phantom@FreeBSD.org

View File

@ -83,14 +83,18 @@ exist for the Dell and HP flavors, respectively, and are required for
the CLI management utility available from these vendors to work. the CLI management utility available from these vendors to work.
If the kernel is compiled with the If the kernel is compiled with the
.Dv COMPAT_LINUX .Dv COMPAT_LINUX
option, or the aac_linux.ko and linux.ko modules are loaded, the option, or the
.Pa aac_linux.ko
and
.Pa linux.ko
modules are loaded, the
Linux-compatible Linux-compatible
.Xr ioctl 2 .Xr ioctl 2
interface for the management device will be enabled and will allow interface for the management device will be enabled and will allow
Linux-based management applications to control the card. Linux-based management applications to control the card.
.Pp .Pp
The The
.Cd aacp .Nm aacp
device enables the SCSI pass-thru interface and allows devices connected device enables the SCSI pass-thru interface and allows devices connected
to the card such as cdroms to be available via the CAM to the card such as cdroms to be available via the CAM
.Xr scsi 4 .Xr scsi 4

View File

@ -7,13 +7,11 @@
.Os .Os
.Sh NAME .Sh NAME
.Nm ciss .Nm ciss
.Nd Common Interface for SCSI-3 Support driver. .Nd Common Interface for SCSI-3 Support driver
.Sh SYNOPSIS .Sh SYNOPSIS
For one or more adapters: .Cd "device scbus"
.Cd device scbus .Cd "device ciss"
.Cd device ciss
.Sh DESCRIPTION .Sh DESCRIPTION
.Pp
The The
.Nm .Nm
driver claims to provide a common interface between generic SCSI driver claims to provide a common interface between generic SCSI
@ -24,29 +22,29 @@ The
driver supports driver supports
.Em CISS .Em CISS
as defined in the document entitled as defined in the document entitled
.Dq CISS Command Interface for SCSI-3 Support Open Specification , .%T "CISS Command Interface for SCSI-3 Support Open Specification, Version 1.04, Valence Number 1" ,
Version 1.04, dated 2000/11/27, produced by Compaq Computer Corporation.
Valence Number 1, dated 20001127, produced by Compaq Computer
Corporation.
.Pp .Pp
We provide a shim layer between the We provide a shim layer between the
.Nm .Nm
interface and CAM, interface and
.Xr CAM 4 ,
offloading most of the queueing and being-a-disk chores onto CAM. offloading most of the queueing and being-a-disk chores onto CAM.
Entry to the driver is via the PCI bus attachment Entry to the driver is via the PCI bus attachment
.Fa ciss_probe , .Fn ciss_probe ,
.Fa ciss_attach , .Fn ciss_attach ,
etc and via the CAM interface etc. and via the CAM interface
.Fa ciss_cam_action , .Fn ciss_cam_action ,
and and
.Fa ciss_cam_poll . .Fn ciss_cam_poll .
The Compaq The Compaq
.Nm .Nm
adapters require faked responses to get reasonable adapters require faked responses to get reasonable
behavior out of them. behavior out of them.
In addition, the In addition, the
.Nm .Nm
command set is by no means adequate to support the functionality of a RAID controller, command set is by no means adequate to support the functionality
of a RAID controller,
and thus the supported Compaq adapters utilize portions of the and thus the supported Compaq adapters utilize portions of the
control protocol from earlier Compaq adapter families. control protocol from earlier Compaq adapter families.
.Pp .Pp
@ -60,29 +58,36 @@ queues) to exchange commands with the adapter.
Other interfaces are available, but we are not supposed to know about them, Other interfaces are available, but we are not supposed to know about them,
and it is dubious whether they would provide major performance improvements and it is dubious whether they would provide major performance improvements
except under extreme load. except under extreme load.
.Sh COMPATIBILITY .Pp
Non disk devices (such as internal DATs and devices Non-disk devices (such as internal DATs and devices
attached to the external SCSI bus) are not yet supported. attached to the external SCSI bus) are not yet supported.
.Pp .Pp
Supported controllers include: Supported controllers include:
.Pp .Pp
.Bl -tag -compact -width "Compaq Smart Array 5* series" .Bl -item -compact
.It Compaq Smart Array 5300 .It
.It Compaq Smart Array 532 Compaq Smart Array 5300
.It Compaq Smart Array 5i .It
Compaq Smart Array 532
.It
Compaq Smart Array 5i
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr cam 4 , .Xr cam 4 ,
.Xr pass 4 , .Xr pass 4 ,
.Xr xpt 4 , .Xr xpt 4 ,
.Xr camcontrol 8 , .Xr camcontrol 8
.Pp .Rs
.Dq CISS Command Interface for SCSI-3 Support Open Specification, Version 1.04, .%T "CISS Command Interface for SCSI-3 Support Open Specification, Version 1.04, Valence Number 1"
Valence Number 1, dated 20001127, produced by Compaq Computer Corporation. .%D 2000/11/27
.%Q "Compaq Computer Corporation"
.Re
.Sh AUTHORS .Sh AUTHORS
.An -nosplit
The The
.Nm .Nm
driver was written by driver was written by
.An Mike Smith Aq msmith@FreeBSD.org . .An Mike Smith Aq msmith@FreeBSD.org .
.Pp
This manual page is based on his comments and was written by This manual page is based on his comments and was written by
.An Tom Rhodes Aq trhodes@FreeBSD.org . .An Tom Rhodes Aq trhodes@FreeBSD.org .

View File

@ -22,35 +22,49 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd February 11, 2003 .Dd February 11, 2003
.Dt DEVCTL 4 .Dt DEVCTL 4
.Os .Os
.Sh NAME .Sh NAME
.Nm devctl .Nm devctl
.Nd Device event reporting and device control interface. .Nd "device event reporting and device control interface"
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
device is used to report device events from the kernel. device is used to report device events from the kernel.
Future versions will allow for some device control as well. Future versions will allow for some device control as well.
.Sh IMPLEMENTATION NOTES .Sh IMPLEMENTATION NOTES
This design allows only one reader for /dev/devctl. This design allows only one reader for
.Pa /dev/devctl .
This is not desirable This is not desirable
in the long run, but will get a lot of hair out of this implementation. in the long run, but will get a lot of hair out of this implementation.
Maybe we should make this device a clonable device. Maybe we should make this device a clonable device.
.Pp .Pp
Also note: we specifically do not attach a device to the device_t tree Also note: we specifically do not attach a device to the
.Vt device_t
tree
to avoid potential chicken and egg problems. to avoid potential chicken and egg problems.
One could argue that all of this belongs to the root node. One could argue that all of this belongs to the root node.
One could also further argue that the sysctl interface that we have One could also further argue that the
not might more properly be an ioctl interface. .Xr sysctl 3
interface that we have now might more properly be an
.Xr ioctl 2
interface.
.Pp .Pp
SIGIO support is included in the driver. .Dv SIGIO
However, the author is not sure that the SIGIO support is done correctly. support is included in the driver.
It was copied from a driver that had SIGIO support that likely hasn't been However, the author is not sure that the
tested since 3.4 or 2.2.8! .Dv SIGIO
support is done correctly.
It was copied from a driver that had
.Dv SIGIO
support that likely has not been
tested since
.Fx 3.4
or
.Fx 2.2.8 !
.Pp .Pp
The read channel for this device is used to report changes to The read channel for this device is used to report changes to
userland in realtime. userland in realtime.
@ -59,39 +73,49 @@ If you try to read this device a character at a time, you will loose
the rest of the data. the rest of the data.
Listening programs are expected to cope. Listening programs are expected to cope.
.Pp .Pp
The sysctl and boot parameter hw.bus.devctl_disable is used to disable The sysctl and boot parameter
.Va hw.bus.devctl_disable
is used to disable
.Nm .Nm
when no devd is running. when no
.Xr devd 8
is running.
.Sh PROTOCOL .Sh PROTOCOL
The
.Nm .Nm
uses an ASCII protocol. device
uses an
.Tn ASCII
protocol.
The driver returns one record at a time to its readers. The driver returns one record at a time to its readers.
Each record is terminated with a newline. Each record is terminated with a newline.
The first character of the record is the event type. The first character of the record is the event type.
.Pp .Pp
.Bl -column -compact "Type" "Description" .Bl -column -compact "Type" "Description"
.Em "Type Description" .Em "Type Description"
+ Device node in tree attached + Device node in tree attached.
- Device node in tree detached - Device node in tree detached.
? Unknown device detected ? Unknown device detected.
.El .El
.Ss Message formats .Ss Message Formats
Except for the first character in the record, attach and detach Except for the first character in the record, attach and detach
messages have the same format. messages have the same format.
.D1 Tdev at parent on location .Pp
.Bl -column -compact "Part" "Description" .D1 Ar T Ns Ar dev Li at Ar parent Li on Ar location
.Pp
.Bl -column -compact "location" "Description"
.Em "Part Description" .Em "Part Description"
T + or - .It Ar T Ta "+ or -"
dev The device name that was attached/detached .It Ar dev Ta "The device name that was attached/detached."
parent The device name of the parent bus that attached the device .It Ar parent Ta "The device name of the parent bus that attached the device."
location Bus specific location information .It Ar location Ta "Bus specific location information."
.El .El
.Pp .Pp
The nomatch messages can be used to load devices driver. The nomatch messages can be used to load devices driver.
If you load a device driver, then one of two things can happen. If you load a device driver, then one of two things can happen.
If the device driver attaches to something, you'll get a device If the device driver attaches to something, you will get a device
attached message. attached message.
If it doesn't, then nothing will happen. If it does not, then nothing will happen.
.Pp .Pp
The attach and detach messages arrive after the event. The attach and detach messages arrive after the event.
This means one cannot use the attach message to load an alternate This means one cannot use the attach message to load an alternate
@ -101,4 +125,3 @@ One cannot use the detach messages to flush data to the device.
The device is already gone. The device is already gone.
.Sh SEE ALSO .Sh SEE ALSO
.Xr devd 8 .Xr devd 8

View File

@ -78,17 +78,17 @@ On
.Nm .Nm
bus, every device is identified with EUI 64 address. bus, every device is identified with EUI 64 address.
.Sh FILES .Sh FILES
.Bl -tag -width indent -compact .Bl -tag -compact
.It Pa /dev/fw0 .It Pa /dev/fw0
.It Pa /dev/fwmem0 .It Pa /dev/fwmem0
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr fwcontrol 8 ,
.Xr fwe 4 , .Xr fwe 4 ,
.Xr fwohci 4 , .Xr fwohci 4 ,
.Xr kldload 8 ,
.Xr pci 4 , .Xr pci 4 ,
.Xr sbp 4 , .Xr sbp 4 ,
.Xr fwcontrol 8 ,
.Xr kldload 8 ,
.Xr sysctl 8 .Xr sysctl 8
.Sh HISTORY .Sh HISTORY
The The
@ -106,6 +106,7 @@ and
for the for the
.Fx .Fx
project. project.
.Pp
.Sh BUGS .Sh BUGS
See fwohci(4) for security note. See
.Xr fwohci 4
for security note.

View File

@ -74,11 +74,11 @@ Note this driver uses very different protocol from RFC 2734
.Xr arp 4 , .Xr arp 4 ,
.Xr firewire 4 , .Xr firewire 4 ,
.Xr fwohci 4 , .Xr fwohci 4 ,
.Xr kldload 8 ,
.Xr netintro 4 , .Xr netintro 4 ,
.Xr ng_ether 4 , .Xr ng_ether 4 ,
.Xr polling 4 , .Xr polling 4 ,
.Xr ifconfig 8 , .Xr ifconfig 8 ,
.Xr kldload 8 ,
.Xr sysctl 8 .Xr sysctl 8
.Sh AUTHORS .Sh AUTHORS
The The

View File

@ -65,27 +65,30 @@ Ricoh R5C552
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr firewire 4 , .Xr firewire 4 ,
.Xr fwcontrol 8 ,
.Xr fwe 4 , .Xr fwe 4 ,
.Xr kldload 8 , .Xr sbp 4 ,
.Xr sbp 4 .Xr fwcontrol 8 ,
.Xr kldload 8
.Sh HISTORY .Sh HISTORY
The The
.Nm .Nm
device driver first appeared in device driver first appeared in
.Fx 5.0 . .Fx 5.0 .
.Sh AUTHORS .Sh AUTHORS
.An -nosplit
The The
.Nm .Nm
device driver was written by device driver was written by
.An Katsushi Kobayashi .An Katsushi Kobayashi
and and
.An Hidetoshi Shimokawa . .An Hidetoshi Shimokawa .
.Pp
.Sh BUGS .Sh BUGS
The driver allows physical access from any nodes on the bus by default. The driver allows physical access from any nodes on the bus by default.
This means that any devices on the bus can read and modify any memory space This means that any devices on the bus can read and modify any memory space
which can be accessed by IEEE 1394 OHCI chip. It is allowed mostly which can be accessed by IEEE 1394 OHCI chip.
for sbp(4) devices. This should be changed to allow it only for specific It is allowed mostly for
devices. Anyway FireWire is a bus and not expected to be connected with .Xr sbp 4
un-trustable devices because a node can monitor all the traffic. devices.
This should be changed to allow it only for specific devices.
Anyway, FireWire is a bus and not expected to be connected with
un-trustable devices because a node can monitor all the traffic.

View File

@ -56,8 +56,7 @@ Each
interface is created at runtime using interface cloning. interface is created at runtime using interface cloning.
This is This is
most easily done with the most easily done with the
.Xr ifconfig 8 .Dq Nm ifconfig Cm create
.Cm create
command or using the command or using the
.Va gifconfig_ Ns Aq Ar interface .Va gifconfig_ Ns Aq Ar interface
variable in variable in

View File

@ -9,11 +9,9 @@
.Nm ida .Nm ida
.Nd Compaq Intelligent Drive Array Controllers .Nd Compaq Intelligent Drive Array Controllers
.Sh SYNOPSIS .Sh SYNOPSIS
For one or more devices:
.Cd device scbus .Cd device scbus
.Cd device ida .Cd device ida
.Sh DESCRIPTION .Sh DESCRIPTION
.Pp
The Compaq Intelligent Drive Array (IDA) technology is used to The Compaq Intelligent Drive Array (IDA) technology is used to
distribute data across an array of hard drives. distribute data across an array of hard drives.
It unites these hard drives into one or more high-performance logical drives. It unites these hard drives into one or more high-performance logical drives.
@ -21,37 +19,49 @@ The drive array is managed by an array controller.
.Pp .Pp
These controllers have the ability to provide fault tolerance for the connected These controllers have the ability to provide fault tolerance for the connected
drives and optionally provide write cache for the logical drives. drives and optionally provide write cache for the logical drives.
It is also possible for an application to access the SCSI bus subsystem directly by It is also possible for an application to access the SCSI bus subsystem
using the pass-through interface. directly by using the pass-through interface.
.Pp
The following controllers are supported by the
.Nm
driver:
.Pp
.Bl -item -compact
.It
Compaq SMART Array 221
.It
Compaq Integrated SMART Array Controller
.It
Compaq SMART Array 4200
.It
Compaq SMART Array 4250ES
.It
Compaq SMART 3200 Controller
.It
Compaq SMART 3100ES Controller
.It
Compaq SMART-2/DH Controller
.It
Compaq SMART-2/SL Controller
.It
Compaq SMART-2/P Controller
.It
Compaq SMART-2/E Controller
.It
Compaq SMART Controller
.El
.Sh IMPLEMENTATION NOTES .Sh IMPLEMENTATION NOTES
Extreme caution should be exercised when using the pass-through interface. Extreme caution should be exercised when using the pass-through interface.
It is possible to interfere with normal system I/O and cause hangs if It is possible to interfere with normal system I/O and cause hangs if
pass-through is used to an active device. pass-through is used to an active device.
Pass-through should only be used to a device that is otherwise quiescent. Pass-through should only be used to a device that is otherwise quiescent.
.Sh COMPATIBILITY
.Pp
The following controllers are supported by the
.Nm
driver:
.Bl -tag -compact -width "Supported Devices"
.It Compaq SMART Array 221
.It Compaq Integrated SMART Array Controller
.It Compaq SMART Array 4200
.It Compaq SMART Array 4250ES
.It Compaq SMART 3200 Controller
.It Compaq SMART 3100ES Controller
.It Compaq SMART-2/DH Controller
.It Compaq SMART-2/SL Controller
.It Compaq SMART-2/P Controller
.It Compaq SMART-2/E Controller
.It Compaq SMART Controller
.El
.Sh SEE ALSO .Sh SEE ALSO
.Xr cam 4 , .Xr cam 4 ,
.Xr pass 4 , .Xr pass 4 ,
.Xr xpt 4 , .Xr xpt 4 ,
.Xr camcontrol 8 . .Xr camcontrol 8
.Sh AUTHORS .Sh AUTHORS
.An -nosplit
The The
.Nm .Nm
driver was written by driver was written by

View File

@ -7,34 +7,39 @@
.Os .Os
.Sh NAME .Sh NAME
.Nm iir .Nm iir
.Nd Intel Integrated RAID Controller and ICP Vortex driver .Nd Intel Integrated RAID controller and ICP Vortex driver
.Sh SYNOPSIS .Sh SYNOPSIS
For one or more adapters: .Cd "device scbus"
.Cd device scbus .Cd "device iir"
.Cd device iir
.Sh DESCRIPTION .Sh DESCRIPTION
.Pp
The The
.Nm .Nm
driver claims to interface with the Intel integrated driver claims to interface with the Intel integrated
RAID controller cards, and the all versions of the RAID controller cards, and all versions of the
ICP Vortex controllers (including FC). ICP Vortex controllers (including FC).
.Sh COMPATIBILITY
.Pp .Pp
Supported controllers include: Supported controllers include:
.Pp .Pp
.Bl -tag -compact -width "Supported RAID Controllers" .Bl -item -compact
.It Intel RAID Controller SRCMR .It
.It Intel Server RAID Controller U3-l (SRCU31a) Intel RAID Controller SRCMR
.It Intel Server RAID Controller U3-1L (SRCU31La) .It
.It Intel Server RAID Controller U3-2 (SRCU32) Intel Server RAID Controller U3-l (SRCU31a)
.It All past and future releases of Intel and ICP RAID Controllers. .It
Intel Server RAID Controller U3-1L (SRCU31La)
.It
Intel Server RAID Controller U3-2 (SRCU32)
.It
All past and future releases of Intel and ICP RAID Controllers.
.El .El
.Pp .Pp
.Bl -tag -compact -width "Unsupported RAID Controllers" .Bl -item -compact
.It Intel RAID Controller SRCU21 (discontinued) .It
.It Intel RAID Controller SRCU31 (older revision, not compatible) Intel RAID Controller SRCU21 (discontinued)
.It Intel RAID Controller SRCU31L (older revision, not compatible) .It
Intel RAID Controller SRCU31 (older revision, not compatible)
.It
Intel RAID Controller SRCU31L (older revision, not compatible)
.El .El
.Pp .Pp
The SRCU31 and SRCU31L can be updated via a firmware update available The SRCU31 and SRCU31L can be updated via a firmware update available
@ -43,19 +48,21 @@ from Intel.
.Xr cam 4 , .Xr cam 4 ,
.Xr pass 4 , .Xr pass 4 ,
.Xr xpt 4 , .Xr xpt 4 ,
.Xr camcontrol 8 . .Xr camcontrol 8
.Sh AUTHORS .Sh AUTHORS
The The
.Nm .Nm
driver is supported and maintained by driver is supported and maintained by
.An -nosplit Achim Leubner Aq achim.leubner@intel.com .An -nosplit
.An Achim Leubner Aq achim.leubner@intel.com
and and
.An Boji Tony Kannanthanam Aq boji.t.kannanthanam@intel.com .An Boji Tony Kannanthanam Aq boji.t.kannanthanam@intel.com
of Intel's Storage Components devision. of Intel's Storage Components division.
.Pp
This manual page was written by This manual page was written by
.An Tom Rhodes Aq trhodes@FreeBSD.org .An Tom Rhodes Aq trhodes@FreeBSD.org
and is based on information supplied by the driver authors and the website of and is based on information supplied by the driver authors and the website of
.An Mike Smith Aq msith@FreeBSD.org .An Mike Smith Aq msith@FreeBSD.org .
.Sh BUGS .Sh BUGS
During a During a
.Fx .Fx

View File

@ -176,49 +176,52 @@ use the default range of values, normally
through through
.Dv IPPORT_HILASTAUTO . .Dv IPPORT_HILASTAUTO .
This is adjustable through the sysctl setting: This is adjustable through the sysctl setting:
.Sy net.inet.ip.portrange.first .Va net.inet.ip.portrange.first
and and
.Sy net.inet.ip.portrange.last . .Va net.inet.ip.portrange.last .
.It Dv IP_PORTRANGE_HIGH .It Dv IP_PORTRANGE_HIGH
use a high range of values, normally use a high range of values, normally
.Dv IPPORT_HIFIRSTAUTO .Dv IPPORT_HIFIRSTAUTO
and and
.Dv IPPORT_HILASTAUTO . .Dv IPPORT_HILASTAUTO .
This is adjustable through the sysctl setting: This is adjustable through the sysctl setting:
.Sy net.inet.ip.portrange.hifirst .Va net.inet.ip.portrange.hifirst
and and
.Sy net.inet.ip.portrange.hilast . .Va net.inet.ip.portrange.hilast .
.It Dv IP_PORTRANGE_LOW .It Dv IP_PORTRANGE_LOW
use a low range of ports, which are normally restricted to use a low range of ports, which are normally restricted to
privileged processes on privileged processes on
.Ux .Ux
systems. The range is normally from systems. The range is normally from
.Dv IPPORT_RESERVED - 1 .Dv IPPORT_RESERVED
down to \- 1 down to
.Li IPPORT_RESERVEDSTART .Li IPPORT_RESERVEDSTART
in descending order. in descending order.
This is adjustable through the sysctl setting: This is adjustable through the sysctl setting:
.Sy net.inet.ip.portrange.lowfirst .Va net.inet.ip.portrange.lowfirst
and and
.Sy net.inet.ip.portrange.lowlast . .Va net.inet.ip.portrange.lowlast .
.El .El
.Pp .Pp
The range of privileged ports which only may be opened by The range of privileged ports which only may be opened by
root-owned processes may be modified by the root-owned processes may be modified by the
.Sy net.inet.ip.portrange.reservedlow .Va net.inet.ip.portrange.reservedlow
and and
.Sy net.inet.ip.portrange.reservedhigh .Va net.inet.ip.portrange.reservedhigh
sysctl settings. sysctl settings.
The values default to the traditional range, The values default to the traditional range,
0 through 0 through
.Dv IPPORT_RESERVED - 1 .Dv IPPORT_RESERVED
\- 1
(0 through 1023), respectively. (0 through 1023), respectively.
Note that these settings do not affect and are not accounted for in the Note that these settings do not affect and are not accounted for in the
use or calculation of the other use or calculation of the other
.Sy net.inet.ip.portrange .Va net.inet.ip.portrange
values above. values above.
Changing these values departs from Unix tradition and has security Changing these values departs from
concequences that the administrator should carefully evaluate before .Ux
tradition and has security
consequences that the administrator should carefully evaluate before
modifying these settings. modifying these settings.
.Ss "Multicast Options" .Ss "Multicast Options"
.Pp .Pp

View File

@ -39,40 +39,40 @@
.Os .Os
.Sh NAME .Sh NAME
.Nm lmc .Nm lmc
.Nd LAN Media Corp PCI WAN adapter driver .Nd LAN Media Corp. PCI WAN adapter driver
.Sh SYNOPSIS .Sh SYNOPSIS
.Cd "device lmc" .Cd "device lmc"
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
driver supports Lan Media Corp Wide Area Network driver supports Lan Media Corp. Wide Area Network
.Pq Tn WAN .Pq Tn WAN
adapters based on the adapters based on the
.Tn DEC .Tn DEC
.Tn DECchip .Tn DECchip
21140A (DEC "Tulip") 21140A (DEC
.Dq Tulip )
.Tn PCI .Tn PCI
Fast Fast
.Tn Ethernet .Tn Ethernet
controller. controller.
Supported boards include: Supported boards include:
.Pp .Bl -tag -width "LMC5200"
.Bl -tag -width xxxx -offset indent
.It LMC1000 .It LMC1000
Synchronous Serial Interface adapter (V.10/RS423, EIA530A, X.21, V.35, Synchronous Serial Interface adapter (V.10/RS423, EIA530A, X.21, V.35,
EIA449/EIA530/V.36, and V.28/EIA232) EIA449/EIA530/V.36, and V.28/EIA232).
.It LMC1200 .It LMC1200
T1/E1 T1/E1
.Tn WAN .Tn WAN
adapter adapter.
.It LMC5200 .It LMC5200
High Speed Synchronous Interface High Speed Synchronous Interface
.Pq Tn HSSI .Pq Tn HSSI
adapter adapter.
.It LMC5245 .It LMC5245
DS3 DS3
.Tn WAN .Tn WAN
adapter adapter.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr arp 4 , .Xr arp 4 ,
@ -86,6 +86,6 @@ The
.Nm .Nm
driver driver
appeared in appeared in
.Fx 5.0 .Fx 5.0
and and
.Nx 1.4 . .Nx 1.4 .

View File

@ -201,29 +201,30 @@ The sequence of numbers should also appear numerically uncorrelated,
as simulation often assumes independence of its random inputs. as simulation often assumes independence of its random inputs.
Often it is desirable to reproduce Often it is desirable to reproduce
the results of a simulation exactly, the results of a simulation exactly,
so that if the generator is seeded in the same way so that if the generator is seeded in the same way,
it should produce the same results. it should produce the same results.
A peripheral concern for simulation is A peripheral concern for simulation is
the speed of a random number generator. the speed of a random number generator.
.Pp .Pp
Another issue in simulation is Another issue in simulation is
the size of the state associated with the random number generator and the size of the state associated with the random number generator, and
how frequently it repeats itself. how frequently it repeats itself.
For example, For example,
a program which shuffles a pack of cards should have 52! possible outputs, a program which shuffles a pack of cards should have 52! possible outputs,
which requires the random number generator to have 52! starting states. which requires the random number generator to have 52! starting states.
This means the seed should have at least log_2(52!) ~ 226 bits of state This means the seed should have at least log_2(52!) ~ 226 bits of state
if the program is to stand a chance of outputting all possible sequences, if the program is to stand a chance of outputting all possible sequences,
and the program needs some unbiased way of generating these these bits. and the program needs some unbiased way of generating these bits.
Again, Again,
the the
.Nm .Nm
device could be used for seeding here, device could be used for seeding here,
but in practice smaller seeds are usually considered acceptable. but in practice, smaller seeds are usually considered acceptable.
.Pp .Pp
.Fx .Fx
provides two families of functions which are considered provides two families of functions which are considered
suitable for simulation. The suitable for simulation.
The
.Xr random 3 .Xr random 3
family of functions provides a random integer family of functions provides a random integer
between 0 to between 0 to
@ -246,8 +247,8 @@ The
family of functions are also provided, family of functions are also provided,
which provide random floating point numbers in various ranges. which provide random floating point numbers in various ranges.
.Pp .Pp
Randomness as used for collision avoidance, Randomness that is used for collision avoidance
for example in certain network protocols, (for example, in certain network protocols)
has slightly different semantics again. has slightly different semantics again.
It is usually expected that the numbers will be uniform, It is usually expected that the numbers will be uniform,
as this produces the lowest chances of collision. as this produces the lowest chances of collision.
@ -260,7 +261,7 @@ unlike the previous cases.
.Pp .Pp
One final consideration for the seeding of random number generators One final consideration for the seeding of random number generators
is a bootstrapping problem. is a bootstrapping problem.
In some cases it may be difficult to find enough randomness to In some cases, it may be difficult to find enough randomness to
seed a random number generator until a system is fully operational, seed a random number generator until a system is fully operational,
but the system requires random numbers to become fully operational. but the system requires random numbers to become fully operational.
There is no substitute for careful thought here, There is no substitute for careful thought here,
@ -281,16 +282,16 @@ it is known to be poor for simulation and
absolutely unsuitable for cryptographic purposes, absolutely unsuitable for cryptographic purposes,
so its use is discouraged. so its use is discouraged.
.Sh FILES .Sh FILES
.Bl -tag -width /dev/random .Bl -tag -width ".Pa /dev/random"
.It Pa /dev/random .It Pa /dev/random
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr RAND_add 3 ,
.Xr RAND_bytes 3 ,
.Xr arc4random 3 , .Xr arc4random 3 ,
.Xr drand48 3 , .Xr drand48 3 ,
.Xr rand 3 , .Xr rand 3 ,
.Xr random 3 , .Xr random 3 ,
.Xr RAND_add 3 ,
.Xr RAND_bytes 3 ,
.Xr sysctl 8 .Xr sysctl 8
.Sh HISTORY .Sh HISTORY
A A

View File

@ -58,18 +58,22 @@ driver provides support for SBP-2 devices that attach to the firewire
It should work with SBP-2 devices which CAM layer supports, for example, It should work with SBP-2 devices which CAM layer supports, for example,
HDD, CDROM drive and DVD drive. HDD, CDROM drive and DVD drive.
.Pp .Pp
Some users familier with Some users familiar with
.Xr umass 4 .Xr umass 4
might wander why the device is not detached at the CAM layer when the device might wonder why the device is not detached at the CAM layer when the device
is unplugged. It's detached only if the device has not been plugged again is unplugged.
during several bus resets. This is for preventing to detach an active filesystem It is detached only if the device has not been plugged again
during several bus resets.
This is for preventing to detach an active file system
even when the device cannot be probe correctly for some reason after a bus reset even when the device cannot be probe correctly for some reason after a bus reset
or when the device is temporary disconnected because the user changes the bus or when the device is temporary disconnected because the user changes the bus
topology. If you want to force to detach the device, run 'fwcontrol -r' topology.
If you want to force to detach the device, run
.Dq Nm fwcontrol Fl r
several times. several times.
.Sh SEE ALSO .Sh SEE ALSO
.Xr camcontrol 8 ,
.Xr firewire 4 , .Xr firewire 4 ,
.Xr camcontrol 8 ,
.Xr fwcontrol 8 , .Xr fwcontrol 8 ,
.Xr kldload 8 , .Xr kldload 8 ,
.Xr sysctl 8 .Xr sysctl 8

View File

@ -48,7 +48,9 @@ driver supplies control devices,
.Pa /dev/targ0 , .Pa /dev/targ0 ,
.Pa /dev/targ1 , .Pa /dev/targ1 ,
etc. etc.
If a device is already in use, open(2) will fail and If a device is already in use,
.Xr open 2
will fail and
.Va errno .Va errno
will be set to will be set to
.Er EBUSY . .Er EBUSY .

View File

@ -178,7 +178,7 @@ perform this function.
.El .El
.Sh KERNEL CONFIGURATION .Sh KERNEL CONFIGURATION
.Nm .Nm
is currently supplied as a loadable kernel module (KLD), and does not require is currently supplied as a KLD module, and does not require
configuration. configuration.
As with other KLDs, it is absolutely necessary to match the KLD As with other KLDs, it is absolutely necessary to match the KLD
to the version of the operating system. to the version of the operating system.
@ -236,7 +236,7 @@ explaining the problem and what to do to correct it.
Make Make
.Nm .Nm
automatically scan all available disks at attach time. automatically scan all available disks at attach time.
This is a deprecated way that is primarily intented for environments This is a deprecated way that is primarily intended for environments
that do not want to rely on kernel environment variables set by that do not want to rely on kernel environment variables set by
.Xr loader 8 . .Xr loader 8 .
.Pp .Pp
@ -311,8 +311,8 @@ subsystem can be automatically started at attach time.
There are two kernel environment variables that can be set in There are two kernel environment variables that can be set in
.Xr loader.conf 5 .Xr loader.conf 5
to accomplish this. to accomplish this.
.Bl -tag -width "vinum.autostart" -offset indent .Bl -tag -width ".Va vinum.autostart" -offset indent
.It Dv vinum.autostart .It Va vinum.autostart
If this variable is set (to any value), the attach function will attempt If this variable is set (to any value), the attach function will attempt
to scan all available disks for valid to scan all available disks for valid
.Nm .Nm
@ -321,10 +321,12 @@ This is the preferred way if automatic startup is desired.
.Pp .Pp
Example: Example:
.Dl vinum.autostart="YES" .Dl vinum.autostart="YES"
.It Dv vinum.drives .It Va vinum.drives
Alternatively, this variable can enumerate a list of disk devices Alternatively, this variable can enumerate a list of disk devices
to scan for configuration records. to scan for configuration records.
Note that only the `bare' device names need to be given, since Note that only the
.Dq bare
device names need to be given, since
.Nm .Nm
will automatically scan all possible slices and partitions. will automatically scan all possible slices and partitions.
.Pp .Pp
@ -338,7 +340,7 @@ variable of
.Xr rc.conf 5 . .Xr rc.conf 5 .
Note that if Note that if
.Nm .Nm
is to supply to the volume for the root filesystem, it is necessary is to supply to the volume for the root file system, it is necessary
to start the subsystem early. to start the subsystem early.
This can be achieved by specifying This can be achieved by specifying
.Pp .Pp

View File

@ -31,12 +31,12 @@
.\" $FreeBSD$ .\" $FreeBSD$
.\" $OpenBSD: wi.4tbl,v 1.14 2002/04/29 19:53:50 jsyn Exp $ .\" $OpenBSD: wi.4tbl,v 1.14 2002/04/29 19:53:50 jsyn Exp $
.\" .\"
.Dd January .Dd February 17, 2003
.Dt WI 4 .Dt WI 4
.Os .Os
.Sh NAME .Sh NAME
.Nm wi .Nm wi
.Nd "Lucent Heremes, Intersil PRISM and Spectrum24 IEEE 802.11 driver" .Nd "Lucent Hermes, Intersil PRISM and Spectrum24 IEEE 802.11 driver"
.Sh SYNOPSIS .Sh SYNOPSIS
.Cd "device wi" .Cd "device wi"
.Sh DESCRIPTION .Sh DESCRIPTION

View File

@ -7,33 +7,27 @@
.Os .Os
.Sh NAME .Sh NAME
.Nm msdosfs .Nm msdosfs
.Nd msdos file system .Nd MS-DOS file system
.Sh SYNOPSIS .Sh SYNOPSIS
.Bd -literal
/dev/ad0sN /dos msdosfs rw 0 0
.Ed
.Pp
To link into the kernel:
.Cd "options MSDOSFS" .Cd "options MSDOSFS"
.Sh DESCRIPTION .Sh DESCRIPTION
.Pp
The The
.Nm .Nm
driver will permit the driver will permit the
.Fx .Fx
kernel to read and write kernel to read and write
.Em msdos .Tn MS-DOS
based file systems. based file systems.
.Pp .Pp
The most common usage follows: The most common usage follows:
.Pp .Pp
.Dl "# mount_msdosfs /dev/ad0sN /dos .Dl "mount_msdosfs /dev/ad0sN /mnt"
.Pp .Pp
where where
.Sy N .Ar N
is the partition number and is the partition number and
.Pa /mnt .Pa /mnt
is a mount point directory in the root file system. is a mount point.
Some users tend to create a Some users tend to create a
.Pa /dos .Pa /dos
directory for directory for
@ -50,7 +44,7 @@ that looks similar to:
.Ed .Ed
.Pp .Pp
This will mount an This will mount an
.Em msdos .Tn MS-DOS
based partition at the based partition at the
.Pa /dos .Pa /dos
mount point during system boot. mount point during system boot.
@ -58,7 +52,7 @@ Using
.Pa /mnt .Pa /mnt
as a permanent mount point is not advised as its intention as a permanent mount point is not advised as its intention
has always been to be a temporary mount point for floppy and has always been to be a temporary mount point for floppy and
zip disks. ZIP disks.
See See
.Xr hier 7 .Xr hier 7
for more information on for more information on
@ -69,7 +63,7 @@ directory layout.
.Xr unmount 2 , .Xr unmount 2 ,
.Xr mount 8 , .Xr mount 8 ,
.Xr mount_msdosfs 8 , .Xr mount_msdosfs 8 ,
.Xr umount 8 , .Xr umount 8
.Rs .Rs
.%T "The FreeBSD Handbook" .%T "The FreeBSD Handbook"
.%O "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/" .%O "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/"

View File

@ -237,12 +237,12 @@ if you want the removed files to be reported in your daily output.
Set to Set to
.Dq YES .Dq YES
to run to run
.Ic sendmail -bH .Nm sendmail Fl bH
to automatically purge stale entries from to automatically purge stale entries from
.Xr sendmail 8 Ns 's .Xr sendmail 8 Ns 's
host status cache. host status cache.
Files will be deleted using the same criteria as Files will be deleted using the same criteria as
.Nm sendmail .Xr sendmail 8
would normally use when determining whether to believe the cached information, would normally use when determining whether to believe the cached information,
as configured in as configured in
.Pa /etc/mail/sendmail.cf . .Pa /etc/mail/sendmail.cf .
@ -279,7 +279,7 @@ file backed up and modifications to be displayed in your daily output.
Set to Set to
.Dq YES .Dq YES
if you want to run if you want to run
.Ic calendar -a .Nm calendar Fl a
daily. daily.
.It Va daily_accounting_enable .It Va daily_accounting_enable
.Pq Vt bool .Pq Vt bool
@ -341,7 +341,7 @@ if you want to run
(with the arguments supplied in (with the arguments supplied in
.Va daily_status_disks_df_flags ) .Va daily_status_disks_df_flags )
and and
.Ic dump -W . .Nm dump Fl W .
.It Va daily_status_disks_df_flags .It Va daily_status_disks_df_flags
.Pq Vt str .Pq Vt str
Set to the arguments for the Set to the arguments for the
@ -355,7 +355,7 @@ is set to
Set to Set to
.Dq YES .Dq YES
if you want to run if you want to run
.Ic netstat -i . .Nm netstat Fl i .
.It Va daily_status_network_usedns .It Va daily_status_network_usedns
.Pq Vt bool .Pq Vt bool
Set to Set to
@ -390,7 +390,7 @@ if you want to run
Set to Set to
.Dq YES .Dq YES
if you want to shorten the if you want to shorten the
.Nm mailq .Xr mailq 1
output when output when
.Va daily_status_mailq_enable .Va daily_status_mailq_enable
is set to is set to
@ -601,7 +601,7 @@ Set to
if you want to run if you want to run
.Pa /usr/libexec/locate.updatedb . .Pa /usr/libexec/locate.updatedb .
This script is run using This script is run using
.Ic nice -5 .Nm nice Fl 5
as user as user
.An nobody , .An nobody ,
and generates the table used by the and generates the table used by the

View File

@ -32,7 +32,7 @@
.\" @(#)operator.7 8.1 (Berkeley) 6/9/93 .\" @(#)operator.7 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 9, 1993 .Dd January 22, 2003
.Dt OPERATOR 7 .Dt OPERATOR 7
.Os .Os
.Sh NAME .Sh NAME
@ -40,24 +40,24 @@
.Nd C operator precedence and order of evaluation .Nd C operator precedence and order of evaluation
.Sh DESCRIPTION .Sh DESCRIPTION
.Bd -ragged -offset indent -compact .Bd -ragged -offset indent -compact
.Bl -column "\&= += -= *= /= %= <<= >>= &= ^= |=" .Bl -column "= += -= *= /= %= <<= >>= &= ^= |="
.It Sy "Operator Associativity" .It Sy "Operator Associativity"
.It "-------- -------------" .It "-------- -------------"
.It "\&() [] -> . left to right" .It "() [] -> . left to right"
.It "! ~ ++ -- - (type) * & sizeof right to left" .It "! ~ ++ -- - (type) * & sizeof right to left"
.It "\&* / % left to right" .It "* / % left to right"
.It "\&+ - left to right" .It "+ - left to right"
.It "\&<< >> left to right" .It "<< >> left to right"
.It "\&< <= > >= left to right" .It "< <= > >= left to right"
.It "\&== != left to right" .It "== != left to right"
.It "\&& left to right" .It "& left to right"
.It "\&^ left to right" .It "^ left to right"
.It "\&| left to right" .It "| left to right"
.It "\&&& left to right" .It "&& left to right"
.It "\&|| left to right" .It "|| left to right"
.It "\&?: right to left" .It "?: right to left"
.It "\&= += -= *= /= %= <<= >>= &= ^= |= right to left" .It "= += -= *= /= %= <<= >>= &= ^= |= right to left"
.It "\&, left to right" .It ", left to right"
.El .El
.Ed .Ed
.Sh FILES .Sh FILES

View File

@ -26,7 +26,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd April 18, 2001 .Dd December 23, 2002
.Dt DISKLESS 8 .Dt DISKLESS 8
.Os .Os
.Sh NAME .Sh NAME
@ -38,76 +38,130 @@ The ability to boot a machine over the network is useful for
or or
.Em dataless .Em dataless
machines, or as a temporary measure while repairing or machines, or as a temporary measure while repairing or
re-installing filesystems on a local disk. re-installing file systems on a local disk.
This file provides a general description of the interactions between This file provides a general description of the interactions between
a client and its server when a client is booting over the network. a client and its server when a client is booting over the network.
.Sh OPERATION .Sh OPERATION
When booting a system over the network, there are three When booting a system over the network, there are three
phases of interaction between client and server: phases of interaction between client and server:
.Pp .Bl -enum
.Bl -enum -compact
.It .It
The stage-1 bootstrap, typically PXE built into your ethernet The stage-1 bootstrap, typically PXE built into your Ethernet
card, loads a second-stage boot program. card, loads a second-stage boot program.
.It .It
The second-stage boot program, typically 'pxeboot', loads modules and The second-stage boot program, typically
the kernel and boots the kernel. .Xr pxeboot 8 ,
loads modules and
the kernel, and boots the kernel.
.It .It
The kernel NFS mounts the root directory and continues from there. The kernel
.Tn NFS
mounts the root directory and continues from there.
.El .El
.Pp .Pp
Each of these phases are described in further detail below. Each of these phases are described in further detail below.
.Pp .Pp
First the stage-1 bootstrap loads the stage-2 boot program over First, the stage-1 bootstrap loads the stage-2 boot program over
the network. The stage-1 bootstrap typically uses BOOTP or DHCP the network.
to obtain the filename to load, then uses TFTP to load the file. The stage-1 bootstrap typically uses
This file is typically called "pxeboot" and should be copied from .Tn BOOTP
or
.Tn DHCP
to obtain the filename to load, then uses
.Tn TFTP
to load the file.
This file is typically called
.Pa pxeboot ,
and should be copied from
.Pa /boot/pxeboot .Pa /boot/pxeboot
into the tftp directory on the server, which is typically into the
.Tn TFTP
directory on the server, which is typically
.Pa /tftpdir . .Pa /tftpdir .
.Pp .Pp
The stage-2 boot program then loads additional modules and the kernel. The stage-2 boot program then loads additional modules and the kernel.
These files may not exist on the DHCP or BOOTP server. You can use the These files may not exist on the
.Sy next-server .Tn DHCP
option available in DHCP configurations to specify the server holding or
the second stage boot files and kernel. The stage-2 program uses .Tn BOOTP
NFS or TFTP to obtain these files. By default, NFS is used. server.
If you are using pxeboot you can install a version that uses You can use the
TFTP by setting LOADER_TFTP_SUPPORT=YES .Ic next-server
option available in
.Tn DHCP
configurations to specify the server holding
the second stage boot files and kernel.
The stage-2 program uses
.Tn NFS
or
.Tn TFTP
to obtain these files.
By default,
.Tn NFS
is used.
If you are using
.Xr pxeboot 8 ,
you can install a version that uses
.Tn TFTP
by setting
.Li LOADER_TFTP_SUPPORT=YES
in your in your
.Pa /etc/make.conf , .Pa /etc/make.conf ,
then recompiling and reinstalling pxeboot via the command listed below. then recompiling and reinstalling
It is often necessary to use TFTP here so you can place a custom kernel .Xr pxeboot 8
in /tftpdir/. via the command listed below.
If you use NFS and do not have a custom root filesystem for the diskless It is often necessary to use
.Tn TFTP
here so you can place a custom kernel
in
.Pa /tftpdir/ .
If you use
.Tn NFS
and do not have a custom root file system for the
.Nm
client, the stage-2 boot will load your server's kernel as the kernel for client, the stage-2 boot will load your server's kernel as the kernel for
the diskless machine, which may not be what you want to have happen. the
.Nm
machine, which may not be what you want to have happen.
.Bd -literal -offset indent .Bd -literal -offset indent
cd /usr/src/sys/i386/boot cd /usr/src/sys/i386/boot
make clean; make; make install make clean; make; make install
cp /boot/pxeboot /tftpdir/ cp /boot/pxeboot /tftpdir/
.Ed .Ed
.Pp .Pp
In phase 3, the kernel again uses DHCP or BOOTP to acquire In phase 3, the kernel again uses
.Tn DHCP
or
.Tn BOOTP
to acquire
configuration information, and proceeds to mount the configuration information, and proceeds to mount the
root filesystem and start operation. The boot root file system and start operation.
scripts recognize a diskless startup and peform The boot
scripts recognize a
.Nm
startup and perform
the actions found in the actions found in
.Pa /etc/rc.d/initdiskless .Pa /etc/rc.d/initdiskless
and and
.Pa /etc/rc.d/diskless . .Pa /etc/rc.d/diskless .
In older systems the scripts are located in On older systems, the scripts are located in
.Pa /etc/rc.diskless1 .Pa /etc/rc.diskless1
and and
.Pa /etc/rc.diskless2 . .Pa /etc/rc.diskless2 .
.Sh CONFIGURATION .Sh CONFIGURATION
In order to run a diskless client, you need the following: In order to run a
.Nm
client, you need the following:
.Bl -bullet .Bl -bullet
.It .It
An NFS server which exports a root and /usr partition with An
appropriate permissions. .Tn NFS
The diskless server which exports a root and
scripts work with readonly partitions, as long as root is exported with .Pa /usr
partitions with appropriate permissions.
The
.Nm
scripts work with read-only partitions, as long as root is exported with
.Fl maproot Ns =0 .Fl maproot Ns =0
so that some system files can be accessed. so that some system files can be accessed.
As an example, As an example,
@ -120,15 +174,15 @@ can contain the following lines:
.Pp .Pp
where where
.Aq ROOT .Aq ROOT
is the mountpoint on the server of the root partition. is the mount point on the server of the root partition.
The script The script
.Pa /usr/share/examples/diskless/clone_root .Pa /usr/share/examples/diskless/clone_root
can be used to create a shared readonly root partition, can be used to create a shared read-only root partition,
but in many cases you may decide to export but in many cases you may decide to export
(again as readonly) the root directory used by (again as read-only) the root directory used by
the server itself. the server itself.
.It .It
a A
.Tn BOOTP .Tn BOOTP
or or
.Tn DHCP .Tn DHCP
@ -136,7 +190,7 @@ server.
.Xr bootpd 8 .Xr bootpd 8
can be enabled by can be enabled by
uncommenting the uncommenting the
.Em bootps .Dq Li bootps
line in line in
.Pa /etc/inetd.conf . .Pa /etc/inetd.conf .
A sample A sample
@ -164,7 +218,8 @@ A properly initialized root partition.
The script The script
.Pa /usr/share/examples/diskless/clone_root .Pa /usr/share/examples/diskless/clone_root
can help in creating it, using the server's root partition can help in creating it, using the server's root partition
as a reference. If you are just starting out you should as a reference.
If you are just starting out, you should
simply use the server's own root directory, simply use the server's own root directory,
.Pa / , .Pa / ,
and not try to clone it. and not try to clone it.
@ -173,11 +228,17 @@ You often do not want to use the same
.Pa rc.conf .Pa rc.conf
or or
.Pa rc.local .Pa rc.local
files for the diskless boot as you do on the server. The diskless boot files for the
.Nm
boot as you do on the server.
The
.Nm
boot
scripts provide a mechanism through which you can override various files scripts provide a mechanism through which you can override various files
in in
.Pa /etc .Pa /etc
(as well as other subdirectories of root). The scripts provide four (as well as other subdirectories of root).
The scripts provide four
overriding directories situated in overriding directories situated in
.Pa /conf/base , .Pa /conf/base ,
.Pa /conf/default , .Pa /conf/default ,
@ -188,26 +249,35 @@ You should always create
.Pa /conf/base/etc , .Pa /conf/base/etc ,
which will entirely replace the server's which will entirely replace the server's
.Pa /etc .Pa /etc
on the diskless machine. on the
.Nm
machine.
You can clone the server's You can clone the server's
.Pa /etc .Pa /etc
here or you can create a special file which tells the diskless boot scripts here or you can create a special file which tells the
.Nm
boot scripts
to remount the server's to remount the server's
.Pa /etc .Pa /etc
onto onto
.Pa /conf/base/etc . .Pa /conf/base/etc .
You do this by creating the file You do this by creating the file
.Pa /conf/base/etc/diskless_remount .Pa /conf/base/etc/diskless_remount
containing the mount point to use as a basis of the diskless machine's containing the mount point to use as a basis of the
.Nm
machine's
.Pa /etc . .Pa /etc .
For example, the file might contain: For example, the file might contain:
.Bd -literal -offset 4n
10.0.0.1:/etc
.Ed
.Pp .Pp
The diskless scripts create memory filesystems to hold the overriden .Dl 10.0.0.1:/etc
directories. Only a 2MB partition is created by default, which may not .Pp
be sufficient for your purposes. To override this you can create the The
.Nm
scripts create memory file systems to hold the overriden
directories.
Only a 2MB partition is created by default, which may not
be sufficient for your purposes.
To override this, you can create the
file file
.Pa /conf/base/etc/md_size .Pa /conf/base/etc/md_size
containing the size, in 512 byte sectors, of the memory disk to create containing the size, in 512 byte sectors, of the memory disk to create
@ -215,22 +285,26 @@ for that directory.
.Pp .Pp
You then typically provide file-by-file overrides in the You then typically provide file-by-file overrides in the
.Pa /conf/default/etc .Pa /conf/default/etc
directory. At a minimum you must provides overrides for directory.
.Pa /etc/fstab , At a minimum, you must provide overrides for
.Pa /etc/rc.conf , .Pa /etc/fstab , /etc/rc.conf ,
and and
.Pa /etc/rc.local .Pa /etc/rc.local
via via
.Pa /conf/default/etc/fstab , .Pa /conf/default/etc/fstab , /conf/default/etc/rc.conf ,
.Pa /conf/default/etc/rc.conf ,
and and
.Pa /conf/default/etc/rc.local . .Pa /conf/default/etc/rc.local .
.Pp .Pp
Overrides are hierarchical. You can supply network-specific defaults Overrides are hierarchical.
You can supply network-specific defaults
in the in the
.Pa /conf/<BROADCASTIP>/etc .Pa /conf/ Ns Ao Ar BROADCASTIP Ac Ns Pa /etc
directory, where <BROADCASTIP> represents the broadcast IP address of directory, where
the diskless system as given to it via .Aq Ar BROADCASTIP
represents the broadcast IP address of
the
.Nm
system as given to it via
.Tn BOOTP . .Tn BOOTP .
The The
.Pa diskless_remount .Pa diskless_remount
@ -248,13 +322,15 @@ Since you normally clone the server's
.Pa /etc .Pa /etc
using the using the
.Pa /conf/base/etc/diskless_remount , .Pa /conf/base/etc/diskless_remount ,
you might wish to remove unneeded files from the memory filesystem. For you might wish to remove unneeded files from the memory file system.
example, if the server has a firewall but you do not, you might wish For example,
if the server has a firewall but you do not, you might wish
to remove to remove
.Pa /etc/ipfw.conf . .Pa /etc/ipfw.conf .
You can do this by creating a You can do this by creating a
.Pa /conf/base/<DIRECTORY>.remove .Pa /conf/base/ Ns Ao Ar DIRECTORY Ac Ns Pa .remove
file. For example, file.
For example,
.Pa /conf/base/etc.remove , .Pa /conf/base/etc.remove ,
which contains a list of relative paths that the boot scripts should remove which contains a list of relative paths that the boot scripts should remove
from the memory file systems. from the memory file systems.
@ -270,11 +346,15 @@ proc /proc procfs rw 0 0
You also need to create a customized version of You also need to create a customized version of
.Pa /conf/default/etc/rc.conf .Pa /conf/default/etc/rc.conf
which should contain which should contain
the startup options for the diskless client, and the startup options for the
.Nm
client, and
.Pa /conf/default/etc/rc.local .Pa /conf/default/etc/rc.local
which could be empty but prevents the server's own which could be empty but prevents the server's own
.Pa /etc/rc.local .Pa /etc/rc.local
from leaking onto the diskless system. from leaking onto the
.Nm
system.
.Pp .Pp
In In
.Pa rc.conf , .Pa rc.conf ,
@ -289,27 +369,38 @@ Finally, it might be convenient to use a
statement using statement using
.Li `hostname` .Li `hostname`
as the switch variable to do machine-specific configuration as the switch variable to do machine-specific configuration
in case a number of diskless clients share the same configuration in case a number of
.Nm
clients share the same configuration
files. files.
.It .It
The kernel for the diskless clients, which will be loaded using The kernel for the
NFS or TFTP, should be built with at least the following options: .Nm
.Bd -literal -offset indent clients, which will be loaded using
options BOOTP .Tn NFS
options BOOTP_NFSROOT or
options BOOTP_COMPAT .Tn TFTP ,
.Ed should be built with at least the following options:
.Pp
.D1 Cd "options BOOTP"
.D1 Cd "options BOOTP_NFSROOT"
.D1 Cd "options BOOTP_COMPAT"
.Pp .Pp
In the devices section add: In the devices section add:
.Bd -literal -offset indent
device md
.Ed
.Pp .Pp
If you use the firewall, remember to default to open or your kernel .D1 Cd "device md"
will not be able to send/receive the bootp packets. .Pp
If you use the firewall, remember to default to
.Dq open ,
or your kernel
will not be able to send/receive the
.Tn BOOTP
packets.
.El .El
.Sh SECURITY ISSUES .Sh SECURITY ISSUES
Be warned that using unencrypted NFS to mount root and user Be warned that using unencrypted
.Tn NFS
to mount root and user
partitions may expose information such as partitions may expose information such as
encryption keys. encryption keys.
.Sh BUGS .Sh BUGS
@ -318,7 +409,7 @@ This manpage is probably incomplete.
.Fx .Fx
sometimes requires to write onto sometimes requires to write onto
the root partition, so the startup scripts mount MFS the root partition, so the startup scripts mount MFS
filesystems on some locations (e.g.\& file systems on some locations (e.g.\&
.Pa /etc .Pa /etc
and and
.Pa /var ) , .Pa /var ) ,
@ -333,5 +424,6 @@ The process might not handle all cases.
.Xr nfsd 8 , .Xr nfsd 8 ,
.Xr pxeboot 8 , .Xr pxeboot 8 ,
.Xr reboot 8 , .Xr reboot 8 ,
.Xr tftpd 8 , .Xr tftpd 8
.Xr ports/net/etherboot .Pp
.Pa ports/net/etherboot

View File

@ -24,7 +24,7 @@
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" " .\"
.Dd December 17, 1998 .Dd December 17, 1998
.Os .Os
.Dt SLEEP 9 .Dt SLEEP 9
@ -54,14 +54,14 @@ and
handle event-based process blocking. handle event-based process blocking.
If a process must wait for an If a process must wait for an
external event, it is put on sleep by external event, it is put on sleep by
.Nm tsleep . .Fn tsleep .
The parameter The parameter
.Ar ident .Ar ident
is an arbitrary address that uniquely identifies the event on which is an arbitrary address that uniquely identifies the event on which
the process is being asleep. All processes sleeping on a single the process is being asleep. All processes sleeping on a single
.Ar ident .Ar ident
are woken up later by are woken up later by
.Nm wakeup , .Fn wakeup ,
often called from inside an interrupt routine, to indicate that the often called from inside an interrupt routine, to indicate that the
resource the process was blocking on is available now. resource the process was blocking on is available now.
.Pp .Pp
@ -83,7 +83,7 @@ but only one of them can actually do any useful work when made
runnable. runnable.
.Pp .Pp
The The
.Nm tsleep .Fn tsleep
function is the general sleep call. function is the general sleep call.
Suspends the current process until a wakeup is Suspends the current process until a wakeup is
performed on the specified identifier. performed on the specified identifier.
@ -113,12 +113,12 @@ is returned if the system call should be interrupted by the signal
.Er EINTR ) . .Er EINTR ) .
.Pp .Pp
The The
.Nm msleep .Fn msleep
function is a variation on tsleep. function is a variation on tsleep.
The parameter The parameter
.Ar mtx .Ar mtx
is a mutex, which will be exited before sleeping, and entered before is a mutex, which will be exited before sleeping, and entered before
.Nm msleep .Fn msleep
returns. returns.
If If
.Ar pri .Ar pri
@ -144,12 +144,12 @@ appeared in a very early version of
.Ux . .Ux .
.Pp .Pp
The The
.Nm tsleep .Fn tsleep
function appeared in function appeared in
.Bx 4.4 . .Bx 4.4 .
.Pp .Pp
The The
.Nm .Fn sleep
function used to be the traditional form. function used to be the traditional form.
It does not let you specify a timeout or a It does not let you specify a timeout or a
.Ar wmesg , .Ar wmesg ,

View File

@ -125,7 +125,7 @@ Use
.Ar file .Ar file
instead of instead of
.Pa ~/.netrc .Pa ~/.netrc
to lookup login names and passwords for FTP sites. to look up login names and passwords for FTP sites.
See See
.Xr ftp 1 .Xr ftp 1
for a description of the file format. for a description of the file format.

View File

@ -448,8 +448,7 @@ peak
traffic columns can be altered by the traffic columns can be altered by the
.Ic scale .Ic scale
command. command.
.Pp .Bl -tag -width ".Cm scale Op Ar units"
.Bl -tag -width Ar -compact
.It Cm scale Op Ar units .It Cm scale Op Ar units
Modify the scale used to display the current and peak traffic over all Modify the scale used to display the current and peak traffic over all
interfaces. The following units are recognised: kbit, kbyte, mbit, interfaces. The following units are recognised: kbit, kbyte, mbit,

View File

@ -132,6 +132,7 @@ then invokes
with appropriate arguments to process the file. with appropriate arguments to process the file.
.Pp .Pp
Available options: Available options:
.Pp
.Bl -tag -width indent -compact .Bl -tag -width indent -compact
.It Fl D Ns Ar sym Ns Op = Ns Ar val .It Fl D Ns Ar sym Ns Op = Ns Ar val
Specify that a symbol is defined, Specify that a symbol is defined,

View File

@ -34,7 +34,7 @@
.Nd remove users from the system .Nd remove users from the system
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl vy .Op Fl yv
.Op Fl f Ar file .Op Fl f Ar file
.Op Ar username ... .Op Ar username ...
.Sh DESCRIPTION .Sh DESCRIPTION
@ -129,14 +129,6 @@ If the file is owned by anyone other than a user with
UID 0, or is writeable by anyone other than the owner, UID 0, or is writeable by anyone other than the owner,
.Nm .Nm
will refuse to continue. will refuse to continue.
.It Fl v
Enable verbose mode.
Normally,
the output inlcudes one line per removed user;
however,
with this option
.Nm
will be much more chatty about the steps taken.
.It Fl y .It Fl y
Implicitly answer Implicitly answer
.Dq Li yes .Dq Li yes
@ -148,6 +140,14 @@ This option requires that either the
.Fl f .Fl f
option be used, or one or more user names be given as command line option be used, or one or more user names be given as command line
arguments. arguments.
.It Fl v
Enable verbose mode.
Normally,
the output inlcudes one line per removed user;
however,
with this option
.Nm
will be much more chatty about the steps taken.
.It Ar username .It Ar username
Identifies one or more users to be removed; if not present, Identifies one or more users to be removed; if not present,
.Nm .Nm

View File

@ -96,7 +96,7 @@ only those areas that make the media appear blank for further usage are erased.
Erase a CD-RW medium. Erase a CD-RW medium.
This erases the entire media. This erases the entire media.
Can take up to 1 hour to finish. Can take up to 1 hour to finish.
.It Cm format {dvd+rw | dvd-rw} .It Cm format Brq Cm dvd+rw | dvd-rw
Formats a DVD+RW or DVD-RW media to the default max size and 2048 byte blocks. Formats a DVD+RW or DVD-RW media to the default max size and 2048 byte blocks.
This operation can take a long time to finish. This operation can take a long time to finish.
Progress reporting is done during the process. Progress reporting is done during the process.

View File

@ -39,7 +39,7 @@
.Nm lsextattr , .Nm lsextattr ,
.Nm rmextattr , .Nm rmextattr ,
.Nm setextattr .Nm setextattr
.Nd manipulated extended attributes .Nd manipulate extended attributes
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm getextattr .Nm getextattr
.Op Fl fhqsx .Op Fl fhqsx
@ -64,12 +64,15 @@
.Sh DESCRIPTION .Sh DESCRIPTION
These These
utilities utilities
are user tools to manipulated a named extended attributes on files and are user tools to manipulate the named extended attributes on files and
directories. directories.
The The
.Ar attrnamespace .Ar attrnamespace
argument should be the namespace of the attribute to retrieve: legal argument should be the namespace of the attribute to retrieve: legal
values are "user" and "system". values are
.Cm user
and
.Cm system .
The The
.Ar attrname .Ar attrname
argument should be the name of the attribute, argument should be the name of the attribute,
@ -79,41 +82,53 @@ the name of the target file or directory,
a string to store in the attribute. a string to store in the attribute.
.Pp .Pp
The following options are available: The following options are available:
.Bl -tag -width flag .Bl -tag -width indent
.It Fl f .It Fl f
(Force) Ignore errors on individual filenames and continue with (Force.)
Ignore errors on individual filenames and continue with
the remaining arguments. the remaining arguments.
.It Fl h .It Fl h
(No follow) If the file is a symbolic link, perform the operation on the (No follow.)
If the file is a symbolic link, perform the operation on the
link itself rather than the file that the link points to. link itself rather than the file that the link points to.
.It Fl n .It Fl n
(Nul-terminate) Nul-terminate the extent content written out. .Dv ( NUL Ns
-terminate.)
.Dv NUL Ns
-terminate the extent content written out.
.It Fl q .It Fl q
(Quiet) Do not print out the pathname and suppress error messages. (Quiet.)
Do not print out the pathname and suppress error messages.
.It Fl s .It Fl s
(Stringify) Escape nonprinting characters and put quotes around the output. (Stringify.)
Escape nonprinting characters and put quotes around the output.
.It Fl x .It Fl x
(Hex) Print the output in hexadecimal. (Hex.)
Print the output in hexadecimal.
.El .El
.Sh EXAMPLES .Sh EXAMPLES
.Dl # setextattr system md5 `md5 -q /boot/kernel/kernel` /boot/kernel/kernel .Bd -literal
.Dl # getextattr system md5 /boot/kernel/kernel setextattr system md5 `md5 -q /boot/kernel/kernel` /boot/kernel/kernel
.Dl # lsextattr system /boot/kernel/kernel getextattr system md5 /boot/kernel/kernel
.Dl # rmextattr system md5 /boot/kernel/kernel lsextattr system /boot/kernel/kernel
rmextattr system md5 /boot/kernel/kernel
.Ed
.Sh SEE ALSO .Sh SEE ALSO
.Xr extattr 2 , .Xr extattr 2 ,
.Xr extattr 3 , .Xr extattr 3 ,
.Xr extattrctl 8 , .Xr extattrctl 8 ,
.Xr extattr 9 .Xr extattr 9
.Sh HISTORY .Sh HISTORY
Extended attribute support was developed as part of the TrustedBSD Project, Extended attribute support was developed as part of the
.Tn TrustedBSD
Project,
and introduced in and introduced in
.Fx 5.0 . .Fx 5.0 .
It was developed to support security extensions requiring additional labels It was developed to support security extensions requiring additional labels
to be associated with each file or directory. to be associated with each file or directory.
.Sh AUTHORS .Sh AUTHORS
Robert N M Watson and .An Robert N M Watson
Poul-Henning Kamp .An Poul-Henning Kamp
.Sh BUGS .Sh BUGS
The The
.Nm setextattr .Nm setextattr

View File

@ -1,12 +1,12 @@
.\" Copyright (c) 2003 Networks Associates Technology, Inc. .\" Copyright (c) 2003 Networks Associates Technology, Inc.
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" This software was developed for the FreeBSD Project by Chris Costello .\" This software was developed for the FreeBSD Project by Chris Costello
.\" at Safeport Network Services and Network Associates Labs, the .\" at Safeport Network Services and Network Associates Labs, the
.\" Security Research Division of Network Associates, Inc. under .\" Security Research Division of Network Associates, Inc. under
.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the .\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
.\" DARPA CHATS research program. .\" DARPA CHATS research program.
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -15,7 +15,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -27,9 +27,10 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" 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 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.Dd JANUARY 14, 2003 .\"
.Dd January 14, 2003
.Dt GETPMAC 8 .Dt GETPMAC 8
.Os .Os
.Sh NAME .Sh NAME
@ -38,13 +39,13 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl l Ar list,of,labels .Op Fl l Ar list,of,labels
.Op Ar .Op Fl p Ar pid
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
utility prints the text representation of the MAC label associated with the utility prints the text representation of the MAC label associated with the
specified processes. specified process.
If no processes are specified, it prints the label associated with its own If no process is specified, it prints the label associated with its own
process. process.
.Sh SEE ALSO .Sh SEE ALSO
.Xr mac 3 , .Xr mac 3 ,

View File

@ -49,9 +49,9 @@ tool.
.Pp .Pp
At least one source file in the running kernel must have been compiled At least one source file in the running kernel must have been compiled
with the with the
.Fl --test-coverage .Fl Fl test-coverage
and and
.Fl --profile-arcs .Fl Fl profile-arcs
options. options.
.Pp .Pp
The output is stored in the filenames compiled into the kernel by The output is stored in the filenames compiled into the kernel by
@ -60,7 +60,9 @@ If the absolute pathname cannot be written to, the directory part
of the filename is discarded and the file stored in the current of the filename is discarded and the file stored in the current
directory under its basename. directory under its basename.
.Pp .Pp
The output files are named *.da, and the The output files are named
.Pa *.da ,
and the
.Xr gcov 1 .Xr gcov 1
program will extract the counts and merge them with the source program will extract the counts and merge them with the source
file to show actual execution counts. file to show actual execution counts.
@ -72,7 +74,7 @@ the default system
the default memory the default memory
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr cc 1 .Xr cc 1 ,
.Xr gcov 1 .Xr gcov 1
.Sh AUTHORS .Sh AUTHORS
The The

View File

@ -115,7 +115,7 @@ the system at run time.
.Pp .Pp
Other configuration files may need to be altered when replacing Other configuration files may need to be altered when replacing
.Xr sendmail 8 . .Xr sendmail 8 .
For example, if the replacement MTA doesn't support the For example, if the replacement MTA does not support the
.Fl A .Fl A
option with option with
.Xr mailq 1 , .Xr mailq 1 ,

View File

@ -1,12 +1,12 @@
.\" Copyright (c) 2003 Networks Associates Technology, Inc. .\" Copyright (c) 2003 Networks Associates Technology, Inc.
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" This software was developed for the FreeBSD Project by Chris Costello .\" This software was developed for the FreeBSD Project by Chris Costello
.\" at Safeport Network Services and Network Associates Labs, the .\" at Safeport Network Services and Network Associates Labs, the
.\" Security Research Division of Network Associates, Inc. under .\" Security Research Division of Network Associates, Inc. under
.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the .\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
.\" DARPA CHATS research program. .\" DARPA CHATS research program.
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -15,7 +15,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -27,19 +27,20 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" 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 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.Dd JANUARY 14, 2003 .\"
.Dd January 14, 2003
.Os .Os
.Dt SETPMAC 8 .Dt SETPMAC 8
.Sh NAME .Sh NAME
.Nm setpmac .Nm setpmac
.Nd run a command with a different MAC process label .Nd "run a command with a different MAC process label"
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Ar label .Ar label
.Ar command .Ar command
.Op Ar args Op Ar ... .Op Ar arg ...
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
@ -58,5 +59,6 @@ This software was contributed to the
.Fx .Fx
Project by Network Associates Labs, Project by Network Associates Labs,
the Security Research Division of Network Associates the Security Research Division of Network Associates
Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), Inc. under DARPA/SPAWAR contract N66001-01-C-8035
.Pq Dq CBOSS ,
as part of the DARPA CHATS research program. as part of the DARPA CHATS research program.