···2525.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2626.\" SUCH DAMAGE.
2727.\"
2828-.\" $OpenBSD: killpg.3,v 1.12 2013/06/05 03:39:22 tedu Exp $
2828+.\" $OpenBSD: killpg.3,v 1.13 2015/01/29 01:46:30 schwarze Exp $
2929.\"
3030-.Dd $Mdocdate: June 5 2013 $
3030+.Dd $Mdocdate: January 29 2015 $
3131.Dt KILLPG 3
3232.Os
3333.Sh NAME
···5858As a single special case the continue signal SIGCONT may be sent
5959to any process with the same session ID as the caller.
6060.Sh RETURN VALUES
6161-Upon successful completion, a value of 0 is returned.
6262-Otherwise, a value of \-1 is returned and the global variable
6363-.Va errno
6464-is set to indicate the error.
6161+.Rv -std
6562.Sh ERRORS
6663.Fn killpg
6764will fail and no signal will be sent if:
+3-6
lib/libc/gen/raise.3
···11-.\" $OpenBSD: raise.3,v 1.10 2013/06/05 03:39:22 tedu Exp $
11+.\" $OpenBSD: raise.3,v 1.11 2015/01/29 01:46:30 schwarze Exp $
22.\"
33.\" Copyright (c) 1990, 1991, 1993
44.\" The Regents of the University of California. All rights reserved.
···3131.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3232.\" SUCH DAMAGE.
3333.\"
3434-.Dd $Mdocdate: June 5 2013 $
3434+.Dd $Mdocdate: January 29 2015 $
3535.Dt RAISE 3
3636.Os
3737.Sh NAME
···4848.Fa sig
4949to the current thread.
5050.Sh RETURN VALUES
5151-Upon successful completion, a value of 0 is returned.
5252-Otherwise, a value of \-1 is returned and the global variable
5353-.Va errno
5454-is set to indicate the error.
5151+.Rv -std
5552.Sh ERRORS
5653.Fn raise
5754will fail and no signal will be sent if:
+7-14
lib/libc/gen/statvfs.3
···11-.\" $OpenBSD: statvfs.3,v 1.7 2015/01/19 15:54:11 millert Exp $
11+.\" $OpenBSD: statvfs.3,v 1.8 2015/01/29 01:46:30 schwarze Exp $
22.\" $NetBSD: statfs.2,v 1.10 1995/06/29 11:40:48 cgd Exp $
33.\"
44.\" Copyright (c) 1989, 1991, 1993
···3030.\"
3131.\" @(#)statfs.2 8.3 (Berkeley) 2/11/94
3232.\"
3333-.Dd $Mdocdate: January 19 2015 $
3333+.Dd $Mdocdate: January 29 2015 $
3434.Dt STATVFS 3
3535.Os
3636.Sh NAME
···7272.Ed
7373.Pp
7474The fields of type
7575-.Va fsblkcnt_t
7575+.Vt fsblkcnt_t
7676are reported in units of
7777-.Va f_frsize .
7777+.Fa f_frsize .
7878.Pp
7979.Fn fstatvfs
8080returns the same information about an open file referenced by descriptor
8181.Fa fd .
8282.Sh RETURN VALUES
8383-Upon successful completion, a value of 0 is returned.
8484-Otherwise, \-1 is returned and the global variable
8585-.Va errno
8686-is set to indicate the error.
8383+.Rv -std
8784.Sh ERRORS
8885.Fn statvfs
8986fails if one or more of the following are true:
···115112.Fa path
116113points to an invalid address.
117114.It Bq Er EIO
118118-An
119119-.Tn I/O
120120-error occurred while reading from or writing to the file system.
115115+An I/O error occurred while reading from or writing to the file system.
121116.El
122117.Pp
123118.Fn fstatvfs
···130125.Fa buf
131126points to an invalid address.
132127.It Bq Er EIO
133133-An
134134-.Tn I/O
135135-error occurred while reading from or writing to the file system.
128128+An I/O error occurred while reading from or writing to the file system.
136129.El
137130.Sh SEE ALSO
138131.Xr df 1 ,
+3-3
lib/libc/gen/time.3
···11-.\" $OpenBSD: time.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
11+.\" $OpenBSD: time.3,v 1.16 2015/01/29 01:46:30 schwarze Exp $
22.\"
33.\" Copyright (c) 1989, 1991, 1993
44.\" The Regents of the University of California. All rights reserved.
···3131.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3232.\" SUCH DAMAGE.
3333.\"
3434-.Dd $Mdocdate: July 17 2013 $
3434+.Dd $Mdocdate: January 29 2015 $
3535.Dt TIME 3
3636.Os
3737.Sh NAME
···5353If
5454.Fa tloc
5555is a null pointer, no value is stored.
5656-.Pp
5656+.Sh RETURN VALUES
5757Upon successful completion,
5858.Fn time
5959returns the value of time.
+4-9
lib/libc/gen/utime.3
···11-.\" $OpenBSD: utime.3,v 1.21 2015/01/19 15:54:11 millert Exp $
11+.\" $OpenBSD: utime.3,v 1.22 2015/01/29 01:46:30 schwarze Exp $
22.\"
33.\" Copyright (c) 1980, 1991, 1993
44.\" The Regents of the University of California. All rights reserved.
···2727.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828.\" SUCH DAMAGE.
2929.\"
3030-.Dd $Mdocdate: January 19 2015 $
3030+.Dd $Mdocdate: January 29 2015 $
3131.Dt UTIME 3
3232.Os
3333.Sh NAME
···8383In either case, the inode change-time of the file is set to the current
8484time.
8585.Sh RETURN VALUES
8686-Upon successful completion, a value of 0 is returned.
8787-Otherwise, a value of \-1 is returned and
8888-.Va errno
8989-is set to indicate the error.
8686+.Rv -std
9087.Sh ERRORS
9188.Fn utime
9289will fail if:
···109106.It Bq Er EINVAL
110107The pathname contains a character with the high-order bit set.
111108.It Bq Er EIO
112112-An
113113-.Tn I/O
114114-error occurred while reading or writing the affected inode.
109109+An I/O error occurred while reading or writing the affected inode.
115110.It Bq Er ELOOP
116111Too many symbolic links were encountered in translating the pathname.
117112.It Bq Er ENAMETOOLONG
+6-9
lib/libc/net/getifaddrs.3
···11-.\" $OpenBSD: getifaddrs.3,v 1.19 2014/04/07 17:57:56 schwarze Exp $
11+.\" $OpenBSD: getifaddrs.3,v 1.20 2015/01/29 01:46:30 schwarze Exp $
22.\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp
33.\"
44.\" Copyright (c) 1995, 1999
···2121.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2222.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2323.\" SUCH DAMAGE.
2424-.Dd $Mdocdate: April 7 2014 $
2424+.Dd $Mdocdate: January 29 2015 $
2525.Dt GETIFADDRS 3
2626.Os
2727.Sh NAME
···4343on the local machine in the memory referenced by
4444.Fa ifap .
4545The list consists of
4646-.Nm ifaddrs
4646+.Vt ifaddrs
4747structures, as defined in the include file
4848.In ifaddrs.h .
4949The
5050-.Nm ifaddrs
5050+.Vt ifaddrs
5151structure contains at least the following entries:
5252.Bd -literal
5353 struct ifaddrs *ifa_next; /* Pointer to next struct */
···102102For
103103.Dv AF_LINK
104104addresses it contains a pointer to the
105105-.Li struct if_data
105105+.Vt struct if_data
106106(as defined in include file
107107.In net/if.h )
108108which contains various interface attributes and statistics.
···118118.Fn freeifaddrs
119119when no longer needed.
120120.Sh RETURN VALUES
121121-Upon successful completion, a value of 0 is returned.
122122-Otherwise, a value of \-1 is returned and
123123-.Va errno
124124-is set to indicate the error.
121121+.Rv -std
125122.Sh ERRORS
126123The
127124.Fn getifaddrs
+3-8
lib/libc/stdio/remove.3
···11-.\" $OpenBSD: remove.3,v 1.12 2013/06/05 03:39:23 tedu Exp $
11+.\" $OpenBSD: remove.3,v 1.13 2015/01/29 01:46:30 schwarze Exp $
22.\"
33.\" Copyright (c) 1990, 1991, 1993
44.\" The Regents of the University of California. All rights reserved.
···3333.\"
3434.\" @(#)remove.3 8.1 (Berkeley) 6/4/93
3535.\"
3636-.Dd $Mdocdate: June 5 2013 $
3636+.Dd $Mdocdate: January 29 2015 $
3737.Dt REMOVE 3
3838.Os
3939.Sh NAME
···5858Otherwise, it is the equivalent of
5959.Fn unlink "path" .
6060.Sh RETURN VALUES
6161-Upon successful completion,
6262-.Fn remove
6363-returns 0.
6464-Otherwise, \-1 is returned and the global variable
6565-.Va errno
6666-is set to indicate the error.
6161+.Rv -std
6762.Sh ERRORS
6863The
6964.Fn remove
+3-10
lib/libc/stdlib/qsort.3
···2929.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3030.\" SUCH DAMAGE.
3131.\"
3232-.\" $OpenBSD: qsort.3,v 1.17 2013/07/17 05:42:11 schwarze Exp $
3232+.\" $OpenBSD: qsort.3,v 1.18 2015/01/29 01:46:31 schwarze Exp $
3333.\"
3434-.Dd $Mdocdate: July 17 2013 $
3434+.Dd $Mdocdate: January 29 2015 $
3535.Dt QSORT 3
3636.Os
3737.Sh NAME
···147147.Fn qsort
148148function returns no value.
149149.Pp
150150-Upon successful completion,
151151-.Fn heapsort
152152-and
153153-.Fn mergesort
154154-return 0.
155155-Otherwise, they return \-1 and the global variable
156156-.Va errno
157157-is set to indicate the error.
150150+.Rv -std heapsort mergesort
158151.Sh ERRORS
159152The
160153.Fn heapsort
+4-8
lib/libc/stdlib/radixsort.3
···2525.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2626.\" SUCH DAMAGE.
2727.\"
2828-.\" $OpenBSD: radixsort.3,v 1.12 2013/06/05 03:39:23 tedu Exp $
2828+.\" $OpenBSD: radixsort.3,v 1.13 2015/01/29 01:46:31 schwarze Exp $
2929.\"
3030-.Dd $Mdocdate: June 5 2013 $
3030+.Dd $Mdocdate: January 29 2015 $
3131.Dt RADIXSORT 3
3232.Os
3333.Sh NAME
···7878is
7979.Dv NULL ,
8080the contents of the array are sorted in ascending order according to the
8181-.Tn ASCII
8282-order of the byte strings they reference and
8181+ASCII order of the byte strings they reference and
8382.Fa endbyte
8483has a sorting weight of 0.
8584.Pp
···101100particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10.
102101They take linear time relative to the number of bytes in the strings.
103102.Sh RETURN VALUES
104104-Upon successful completion 0 is returned.
105105-Otherwise, \-1 is returned and the global variable
106106-.Va errno
107107-is set to indicate the error.
103103+.Rv -std
108104.Sh ERRORS
109105.Bl -tag -width Er
110106.It Bq Er EINVAL
+11-11
lib/libc/time/strftime.3
···3030.\" SUCH DAMAGE.
3131.\"
3232.\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91
3333-.\" $OpenBSD: strftime.3,v 1.33 2014/09/08 01:27:54 schwarze Exp $
3333+.\" $OpenBSD: strftime.3,v 1.34 2015/01/29 01:46:31 schwarze Exp $
3434.\"
3535-.Dd $Mdocdate: September 8 2014 $
3535+.Dd $Mdocdate: January 29 2015 $
3636.Dt STRFTIME 3
3737.Os
3838.Sh NAME
···6464No more than
6565.Fa maxsize
6666characters will be placed into the array.
6767-If the total number of resulting characters, including the terminating
6868-NUL character, is not more than
6969-.Fa maxsize ,
7070-.Fn strftime
7171-returns the number of characters placed in the array, not counting the
7272-terminating NUL.
7373-Otherwise, zero is returned.
7467.Pp
7568Each conversion specification is replaced by the characters as
7669follows which are then copied into the buffer.
···127120is replaced by a newline.
128121.It Cm %p
129122is replaced by the locale's equivalent of either
130130-.Dq Tn AM
123123+.Dq AM
131124or
132132-.Dq Tn PM .
125125+.Dq PM .
133126.It Cm \&%R
134127is replaced by the time in the format
135128.Dq Li %H:%M .
···196189.Xr date 1
197190format.
198191.El
192192+.Sh RETURN VALUES
193193+If the total number of resulting characters, including the terminating
194194+NUL character, is not more than
195195+.Fa maxsize ,
196196+.Fn strftime
197197+returns the number of characters placed in the array, not counting the
198198+terminating NUL. Otherwise, zero is returned.
199199.Sh SEE ALSO
200200.Xr date 1 ,
201201.Xr printf 1 ,