mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
Switch back to C versions of true/false. I do not accept any of the
arguments made 20 years ago. A small elf binary is smaller and faster than a large elf binary running a script. Noone cares about the file sizes on disk. ok semarie millert aja
This commit is contained in:
parent
c15cb372ed
commit
53b29436af
@ -1,9 +1,6 @@
|
||||
# $OpenBSD: Makefile,v 1.4 1997/04/27 20:56:42 millert Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2015/11/11 19:05:28 deraadt Exp $
|
||||
|
||||
MAN= false.1
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${.CURDIR}/false.sh ${DESTDIR}${BINDIR}/false
|
||||
PROG= false
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
9
usr.bin/false/false.c
Normal file
9
usr.bin/false/false.c
Normal file
@ -0,0 +1,9 @@
|
||||
/* $OpenBSD: false.c,v 1.1 2015/11/11 19:05:28 deraadt Exp $ */
|
||||
|
||||
/* Public domain - Theo de Raadt */
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
return (1);
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
# $OpenBSD: false.sh,v 1.2 1996/06/26 05:32:50 deraadt Exp $
|
||||
|
||||
exit 1
|
@ -1,9 +1,6 @@
|
||||
# $OpenBSD: Makefile,v 1.4 1997/04/27 20:56:55 millert Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2015/11/11 19:05:28 deraadt Exp $
|
||||
|
||||
MAN= true.1
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${.CURDIR}/true.sh ${DESTDIR}${BINDIR}/true
|
||||
PROG= true
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
9
usr.bin/true/true.c
Normal file
9
usr.bin/true/true.c
Normal file
@ -0,0 +1,9 @@
|
||||
/* $OpenBSD: true.c,v 1.1 2015/11/11 19:05:28 deraadt Exp $ */
|
||||
|
||||
/* Public domain - Theo de Raadt */
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
return (0);
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
# $OpenBSD: true.sh,v 1.2 1996/06/26 05:41:53 deraadt Exp $
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user