From 397a3206ab0dbb1892b92d721086237e966c76bc Mon Sep 17 00:00:00 2001 From: gdr Date: Thu, 7 Aug 1997 05:17:22 +0000 Subject: [PATCH] initial checkin --- usr.bin/false/false.1 | 61 ++++++++++++++++++++++++++++++++++++++++++ usr.bin/false/false.c | 12 +++++++++ usr.bin/true/true.1 | 62 +++++++++++++++++++++++++++++++++++++++++++ usr.bin/true/true.c | 12 +++++++++ 4 files changed, 147 insertions(+) create mode 100644 usr.bin/false/false.1 create mode 100644 usr.bin/false/false.c create mode 100644 usr.bin/true/true.1 create mode 100644 usr.bin/true/true.c diff --git a/usr.bin/false/false.1 b/usr.bin/false/false.1 new file mode 100644 index 0000000..73e704e --- /dev/null +++ b/usr.bin/false/false.1 @@ -0,0 +1,61 @@ +.\" Copyright (c) 1983, 1990, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" the Institute of Electrical and Electronics Engineers, Inc. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" 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 +.\" SUCH DAMAGE. +.\" +.\" @(#)false.1 8.1 (Berkeley) 6/6/93 +.\" +.\" $Id: false.1,v 1.1 1997/08/07 05:17:22 gdr Exp $ +.\" +.TH FALSE 1 "6 August 1997" GNO "Commands and Applications" +.SH NAME +.BR false +\- return false value +.SH SYNOPSIS +.BR false +.SH DESCRIPTION +.BR False +is usually used in a Bourne shell script. +It tests for the appropriate status "false" before running +(or failing to run) a list of commands. +.LP +The +.BR false +utility always exits with a value other than zero. +.SH SEE ALSO +.BR csh (1), +.BR sh (1), +.BR true (1) +.SH STANDARDS +The +.BR false +utility is expected to be POSIX 1003.2 compatible. diff --git a/usr.bin/false/false.c b/usr.bin/false/false.c new file mode 100644 index 0000000..0a0f8c1 --- /dev/null +++ b/usr.bin/false/false.c @@ -0,0 +1,12 @@ +/* + * gno/usr.bin/false.c + * + * Devin Reade, 1997. (Are you impressed, yet?) + * + * $Id: false.c,v 1.1 1997/08/07 05:17:22 gdr Exp $ + */ + +int +main(int argc, char **argv) { + return -1; +} diff --git a/usr.bin/true/true.1 b/usr.bin/true/true.1 new file mode 100644 index 0000000..ec89f43 --- /dev/null +++ b/usr.bin/true/true.1 @@ -0,0 +1,62 @@ +.\" Copyright (c) 1983, 1985, 1990, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" the Institute of Electrical and Electronics Engineers, Inc. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" 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 +.\" SUCH DAMAGE. +.\" +.\" @(#)true.1 8.1 (Berkeley) 6/9/93 +.\" +.\" $Id: true.1,v 1.1 1997/08/07 05:16:58 gdr Exp $ +.\" +.TH TRUE 1 "6 August 1997" GNO "Commands and Applications" +.SH NAME +.BR true +\- return true value +.SH SYNOPSIS +.BR true +.SH DESCRIPTION +.BR True +is normally used in a Bourne shell script. +.BR True +tests for the appropriate status "true" before running +(or failing to run) a list of commands. +.SH SEE ALSO +.BR csh (1), +.BR sh (1), +.BR false (1) +.SH DIAGNOSTICS +The +.BR true +utility always returns with exit code zero. +.SH STANDARDS +The +.BR true +utility is expected to be POSIX 1003.2 compatible. diff --git a/usr.bin/true/true.c b/usr.bin/true/true.c new file mode 100644 index 0000000..eaa4abb --- /dev/null +++ b/usr.bin/true/true.c @@ -0,0 +1,12 @@ +/* + * gno/usr.bin/true.c + * + * Devin Reade, 1997. (Are you impressed, yet?) + * + * $Id: true.c,v 1.1 1997/08/07 05:16:58 gdr Exp $ + */ + +int +main(int argc, char **argv) { + return 0; +}