1*0a6a1f1dSLionel Sambuc.\" $NetBSD: getbyteorder.3,v 1.4 2014/03/18 18:20:38 riastradh Exp $ 284d9c625SLionel Sambuc.\" 384d9c625SLionel Sambuc.\" Copyright (c) 1996 The NetBSD Foundation, Inc. 484d9c625SLionel Sambuc.\" All rights reserved. 584d9c625SLionel Sambuc.\" 684d9c625SLionel Sambuc.\" This code is derived from software contributed to The NetBSD Foundation 784d9c625SLionel Sambuc.\" by Jason R. Thorpe. 884d9c625SLionel Sambuc.\" 984d9c625SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without 1084d9c625SLionel Sambuc.\" modification, are permitted provided that the following conditions 1184d9c625SLionel Sambuc.\" are met: 1284d9c625SLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright 1384d9c625SLionel Sambuc.\" notice, this list of conditions and the following disclaimer. 1484d9c625SLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright 1584d9c625SLionel Sambuc.\" notice, this list of conditions and the following disclaimer in the 1684d9c625SLionel Sambuc.\" documentation and/or other materials provided with the distribution. 1784d9c625SLionel Sambuc.\" 1884d9c625SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1984d9c625SLionel Sambuc.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2084d9c625SLionel Sambuc.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2184d9c625SLionel Sambuc.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2284d9c625SLionel Sambuc.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2384d9c625SLionel Sambuc.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2484d9c625SLionel Sambuc.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2584d9c625SLionel Sambuc.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2684d9c625SLionel Sambuc.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2784d9c625SLionel Sambuc.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2884d9c625SLionel Sambuc.\" POSSIBILITY OF SUCH DAMAGE. 2984d9c625SLionel Sambuc.\" 3084d9c625SLionel Sambuc.Dd May 1, 2013 3184d9c625SLionel Sambuc.Dt GETBYTEORDER 3 3284d9c625SLionel Sambuc.Os 3384d9c625SLionel Sambuc.Sh NAME 3484d9c625SLionel Sambuc.Nm getbyteorder 3584d9c625SLionel Sambuc.Nd get the current byte order 3684d9c625SLionel Sambuc.Sh LIBRARY 3784d9c625SLionel Sambuc.Lb libutil 3884d9c625SLionel Sambuc.Sh SYNOPSIS 3984d9c625SLionel Sambuc.In util.h 4084d9c625SLionel Sambuc.In sys/endian.h 4184d9c625SLionel Sambuc.Ft int 4284d9c625SLionel Sambuc.Fn getbyteorder void 4384d9c625SLionel Sambuc.Sh DESCRIPTION 4484d9c625SLionel Sambuc.Fn getbyteorder 4584d9c625SLionel Sambucreturns 4684d9c625SLionel Sambuc.Dv LITTLE_ENDIAN , 4784d9c625SLionel Sambuc.Dv BIG_ENDIAN , 4884d9c625SLionel Sambucor \-1 in case of an error, setting the global 4984d9c625SLionel Sambuc.Va errno 5084d9c625SLionel Sambucvariable. 5184d9c625SLionel SambucThe possible values for 5284d9c625SLionel Sambuc.Va errno 5384d9c625SLionel Sambucare the same as in 5484d9c625SLionel Sambuc.Xr sysctl 3 . 5584d9c625SLionel Sambuc.Sh SEE ALSO 5684d9c625SLionel Sambuc.Xr sysctl 3 5784d9c625SLionel Sambuc.Sh HISTORY 5884d9c625SLionel SambucThe 5984d9c625SLionel Sambuc.Fn getbyteorder 6084d9c625SLionel Sambucfunction call appeared in 6184d9c625SLionel Sambuc.Nx 7.0 . 62