1.\" Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
--- 8 unchanged lines hidden (view full) ---
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libutil/pidfile.3 156280 2006-03-04 15:20:28Z keramida $
26.\"
27.Dd August 22, 2005
28.Dt PIDFILE 3
29.Os
30.Sh NAME
31.Nm pidfile_open ,
32.Nm pidfile_write ,
33.Nm pidfile_close ,
--- 129 unchanged lines hidden (view full) ---
163.It Bq Er EEXIST
164Some process already holds the lock on the given pidfile, meaning that a
165daemon is already running.
166.It Bq Er ENAMETOOLONG
167Specified pidfile's name is too long.
168.It Bq Er EINVAL
169Some process already holds the lock on the given pidfile, but PID read
170from there is invalid.
171.El
172.Pp
173The
174.Fn pidfile_open
175function may also fail and set
176.Va errno
177for any errors specified for the
178.Xr fstat 2 ,
--- 71 unchanged lines hidden ---
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
--- 8 unchanged lines hidden (view full) ---
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libutil/pidfile.3 156280 2006-03-04 15:20:28Z keramida $
26.\"
27.Dd August 22, 2005
28.Dt PIDFILE 3
29.Os
30.Sh NAME
31.Nm pidfile_open ,
32.Nm pidfile_write ,
33.Nm pidfile_close ,
--- 129 unchanged lines hidden (view full) ---
163.It Bq Er EEXIST
164Some process already holds the lock on the given pidfile, meaning that a
165daemon is already running.
166.It Bq Er ENAMETOOLONG
167Specified pidfile's name is too long.
168.It Bq Er EINVAL
169Some process already holds the lock on the given pidfile, but PID read
170from there is invalid.
171.El
172.Pp
173The
174.Fn pidfile_open
175function may also fail and set
176.Va errno
177for any errors specified for the
178.Xr fstat 2 ,
--- 71 unchanged lines hidden ---