1.\" 2.\" Copyright (c) 1998 David E. O'Brien 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25.\" 26.\" $FreeBSD: src/usr.bin/objformat/objformat.1,v 1.3.2.4 2002/06/21 15:28:32 charnier Exp $ 27.\" $DragonFly: src/usr.bin/objformat/objformat.1,v 1.3 2006/02/17 19:39:10 swildner Exp $ 28.\" 29.Dd October 25, 1998 30.Os 31.Dt OBJFORMAT 1 32.Sh NAME 33.Nm objformat 34.Nd reports default binary format and program deflector 35.Sh SYNOPSIS 36.Nm 37.Nm prog 38.Sh DESCRIPTION 39If run as 40.Nm 41the default object file format is reported. The two different object file 42formats are 43.Ar aout 44and 45.Ar elf . 46.Pp 47If invoked by any other name, 48.Nm prog 49is expanded to 50.Pa /usr/libexec/<objformat>/prog 51and executed. 52.Sh ENVIRONMENT 53.Bl -tag -width OBJFORMAT_PATH 54.It Ev OBJFORMAT 55If the environment variable 56.Ev OBJFORMAT 57is set, it overrides the default object file format. 58.Ev OBJFORMAT takes precedence over 59.Pa /etc/objformat . 60.It Ev OBJFORMAT_PATH 61If the environment variable 62.Ev OBJFORMAT_PATH 63is set, its value is used as the base path to 64.Nm prog . 65The default is 66.Pa /usr/libexec . 67.El 68.Sh FILES 69.Bl -tag -width /etc/objformat -compact 70.It Pa /etc/objformat 71If present, specifies the object file format to use. Syntax is 72.Ql OBJFORMAT=xxx . 73.El 74.Sh DIAGNOSTICS 75The 76.Nm 77utility returns with exit code 1 78if called with an improper number of arguments, or if 79.Nm prog 80could not be executed. 81.Sh SEE ALSO 82.Xr file 1 , 83.Xr getobjformat 3 84.\" .Sh STANDARDS 85.Sh HISTORY 86The 87.Nm 88command appeared in 89.Fx 3.0 . 90.Sh AUTHORS 91.An -nosplit 92The 93.Nm 94utility was written by 95.An Peter Wemm Aq peter@netplex.com.au . 96This manual page was written by 97.An David O'Brien Aq obrien@NUXI.com . 98.\" .Sh BUGS 99