# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 5.14 (Berkeley) %G%
+# @(#)Makefile 5.15 (Berkeley) %G%
#
# make file for debugger "dbx"
#
AOUT = tdbx
DESTDIR =
-DEST = /usr/ucb/dbx
+DEST = /usr/bin/dbx
CC = cc
AS = as
.s.o:
@echo "assembling $*.s"
@rm -f tmp
- @/lib/cpp $*.s | grep -v "^#" > tmp
+ @cpp $*.s | egrep -v "^#" > tmp
@${AS} -o $*.o tmp
@rm -f tmp
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.5 (Berkeley) %G%";
#endif not lint
static char rcsid[] = "$Header: main.c,v 1.4 87/07/08 21:31:27 donn Exp $";
#include "object.h"
#include "mappings.h"
#include "coredump.h"
+#include "pathnames.h"
#ifndef public
String tmpfile;
extern String mktemp();
- tmpfile = mktemp("/tmp/dbxXXXX");
+ tmpfile = mktemp(_PATH_TMP);
setout(tmpfile);
status();
alias(nil, nil, nil);
}
if (coredump and corefile == nil) {
if (vaddrs) {
- corename = "/dev/mem";
+ corename = _PATH_MEM;
corefile = fopen(corename, "r");
if (corefile == nil) {
- panic("can't open /dev/mem");
+ panic("can't open %s", _PATH_MEM);
}
} else {
corename = "core";
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)makedefs.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)makedefs.c 5.4 (Berkeley) %G%";
#endif not lint
static char rcsid[] = "$Header: makedefs.c,v 1.2 87/03/26 19:14:02 donn Exp $";
#include "defs.h"
#include <signal.h>
+#include "pathnames.h"
#define procedure void
if (force) {
tmpname = argv[index + 1];
} else {
- tmpname = mktemp("/tmp/makedefsXXXXXX");
+ tmpname = mktemp(_PATH_TMP);
}
tmp = freopen(tmpname, "w", stdout);
if (tmp == nil) {
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 ld ${DESTDIR}/bin
+ install -s -o bin -g bin -m 755 ld ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 4.4 (Berkeley) %G%
+# @(#)Makefile 4.5 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 lex ${DESTDIR}/usr/bin/lex
- install -c -o bin -g bin -m 755 ncform ${DESTDIR}/usr/lib/lex/ncform
- install -c -o bin -g bin -m 755 nrform ${DESTDIR}/usr/lib/lex/nrform
+ install -s -o bin -g bin -m 755 lex ${DESTDIR}/usr/bin
+ install -c -o bin -g bin -m 444 nrform ncform ${DESTDIR}/usr/share/misc
install -c -o bin -g bin -m 755 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
#ifndef lint
-static char sccsid[] = "@(#)lmain.c 4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)lmain.c 4.4 (Berkeley) %G%";
#endif
+# include "pathnames.h"
# include "ldefs.c"
# include "once.c"
# ifdef DEBUG
free3core();
# endif
- if (ZCH>NCH) cname="/usr/lib/lex/ebcform";
+ if (ZCH>NCH) cname=_PATH_EBCFORM;
fother = fopen(ratfor?ratname:cname,"r");
if(fother == NULL)
error("Lex driver missing, file %s",ratfor?ratname:cname);
-/* once.c 4.1 83/08/11 */
+/* once.c 4.2 89/05/10 */
/* because of external definitions, this code should occur only once */
# ifdef ASCII
int ctable[2*NCH] = {
char *slptr = slist;
# if (unix || ibm)
-char *cname = "/usr/lib/lex/ncform";
-char *ratname = "/usr/lib/lex/nrform";
+char *cname = _PATH_NCFORM;
+char *ratname = _PATH_NRFORM;
# endif
# ifdef gcos
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.2 (Berkeley) %G%
+# @(#)Makefile 5.3 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install:
- install -s -o bin -g bin -m 755 fp ${DESTDIR}/usr/ucb
+ install -s -o bin -g bin -m 755 fp ${DESTDIR}/usr/bin
lint: ${SRCS}
lint ${CFLAGS} ${SRCS}
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 4.2 (Berkeley) %G%
+# @(#)Makefile 4.3 (Berkeley) %G%
#
DESTDIR =
${FP_SYSO}: specials.l fpMacs.o
-install: fp
- install -s fp ${DESTDIR}/usr/ucb/fp
+install:
+ install -s -o bin -g bin -m 755 fp ${DESTDIR}/usr/bin
clean:
rm -f core *.[ox] junk.fp
#
-# @(#)Makefile 1.23 (Berkeley) %G%
+# @(#)Makefile 1.24 (Berkeley) %G%
#
-M=../../lib/mip
-P=../../lib/pcc
+M=../../libexec/mip
+P=../../libexec/pcc
CFLAGS=-O
LINTLIBS=llib-port.ln llib-lc.ln llib-lcurses.ln llib-ldbm.ln llib-lm.ln \
llib-lmp.ln llib-lplot.ln llib-ltermcap.ln
$M/pftn.c $M/trees.c $M/optim.c lint.c
install: all SHELL ${MAN}
- install -s -o bin -g bin -m 755 lpass1 ${DESTDIR}/usr/lib/lint/lint1
- install -s -o bin -g bin -m 755 lpass2 ${DESTDIR}/usr/lib/lint/lint2
- install -c -o bin -g bin -m 444 llib-* ${DESTDIR}/usr/lib/lint
- -rm -f ${DESTDIR}/usr/lib/lint/llib-ltermlib*
- ln -s llib-ltermcap ${DESTDIR}/usr/lib/lint/llib-ltermlib
- ln -s llib-ltermcap.ln ${DESTDIR}/usr/lib/lint/llib-ltermlib.ln
+ install -s -o bin -g bin -m 755 lpass1 lpass2 /usr/libexec
+ install -c -o bin -g bin -m 444 llib-* /usr/libdata/lint
+ rm -f /usr/libdata/llib-ltermlib*
+ ln -s llib-ltermcap /usr/libdata/llib-ltermlib
+ ln -s llib-ltermcap.ln /usr/libdata/llib-ltermlib.ln
install -c -o bin -g bin -m 755 SHELL ${DESTDIR}/usr/bin/lint
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
#! /bin/sh
#
-# @(#)lint.sh 1.8 (Berkeley) %G%
+# @(#)lint.sh 1.9 (Berkeley) %G%
#
-L=/usr/lib/lint/lint T=/tmp/lint.$$ PATH=/bin:/usr/bin O="-C -Dlint"
-X= P=unix LL=/usr/lib/lint
+L=/usr/libexec/lint T=/tmp/lint.$$
+PATH=/bin:/usr/bin:/usr/pgrm
+O="-C -Dlint"
+X= P=unix LL=/usr/libdata/lint
C=
trap "rm -f $T; exit" 1 2 15
for A in $*
-[IDU]*)O="$O $A" ;;
-[ORpg]*)
;;
- -X) LL=/usr/src/usr.bin/lint
- L=/usr/src/usr.bin/lint/lpass ;;
-*) X="$X $A"
case $A in
-*n*) P= ;;
-*p*) P=port ;;
esac ;;
*) echo "$A:"
- (/lib/cpp $O $A | ${L}1 $X >>$T)2>&1
+ (cpp $O $A | ${L}1 $X >>$T)2>&1
esac
done
case $P in
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 4.4 (Berkeley) %G%
+# @(#)Makefile 4.5 (Berkeley) %G%
#
# If you don't want to plot, take out the -Dplot and the loader
# reference to plot.a
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 prof ${DESTDIR}/usr/bin/prof
+ install -s -o bin -g bin -m 755 prof ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.4 (Berkeley) %G%
+# @(#)Makefile 5.5 (Berkeley) %G%
#
CFLAGS= -O
YFLAGS= -d
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 ratfor ${DESTDIR}/usr/bin/ratfor
+ install -s -o bin -g bin -m 755 ratfor ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 4.5 (Berkeley) %G%
+# @(#)Makefile 4.6 (Berkeley) %G%
#
CFLAGS= -O -DWORD32
LIBC= /lib/libc.a
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 yacc ${DESTDIR}/usr/bin/yacc
- install -c -o bin -g bin -m 755 yaccpar ${DESTDIR}/usr/lib/yaccpar
+ install -s -o bin -g bin -m 755 yacc ${DESTDIR}/usr/bin
+ install -c -o bin -g bin -m 755 yaccpar ${DESTDIR}/usr/share/misc
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
/*
- * @(#)files 4.1 (Berkeley) 83/02/11
+ * @(#)files 4.2 (Berkeley) 89/05/10
*/
/* this file has the location of the parser, and the size of the progam desired */
/* It may also contain definitions to override various defaults: for example,
#ifndef WORD32
#define WORD32
#endif
- /* location of the parser text file */
-# define PARSER "/usr/lib/yaccpar"
/* basic size of the Yacc implementation */
# define HUGE
#ifndef lint
-static char sccsid[] = "@(#)y1.c 4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)y1.c 4.2 (Berkeley) %G%";
#endif not lint
# include "dextern"
+# include "pathnames.h"
/* variables used locally */
others(){ /* put out other arrays, copy the parsers */
register c, i, j;
- finput = fopen( PARSER, "r" );
- if( finput == NULL ) error( "cannot find parser %s", PARSER );
+ finput = fopen( _PATH_PARSER, "r" );
+ if( finput == NULL ) error( "cannot find parser %s", _PATH_PARSER);
warray( "yyr1", levprd, nprod );
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.4 (Berkeley) %G%
+# @(#)Makefile 5.5 (Berkeley) %G%
#
DESTDIR=
CFLAGS=-O -I.
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 ctags ${DESTDIR}/usr/ucb
+ install -s -o bin -g bin -m 755 ctags ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.6 (Berkeley) %G%
+# @(#)Makefile 5.7 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 error ${DESTDIR}/usr/ucb
+ install -s -o bin -g bin -m 755 error ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)error.h 5.3 (Berkeley) %G%
+ * @(#)error.h 5.4 (Berkeley) %G%
*/
typedef int boolean;
* be touched, or if the function reference is to a
* function the user doesn't want recorded.
*/
-#define IG_FILE1 "llib-lc"
-#define IG_FILE2 "llib-port"
-#define IG_FILE3 "/usr/lib/llib-lc"
-#define IG_FILE4 "/usr/lib/llib-port"
#define ERRORNAME "/.errorrc"
int nignored;
*/
#ifndef lint
-static char sccsid[] = "@(#)filter.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)filter.c 5.5 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#include <ctype.h>
#include <pwd.h>
#include "error.h"
+#include "pathnames.h"
char *lint_libs[] = {
IG_FILE1,
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.4 (Berkeley) %G%";
#endif /* not lint */
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
#include "error.h"
+#include "pathnames.h"
int nerrors = 0;
Eptr er_head;
-Eptr *errors;
+Eptr *errors;
int nfiles = 0;
Eptr **files; /* array of pointers into errors*/
char *currentfilename = "????";
char *processname;
-char im_on[] = "/dev/tty"; /* my tty name */
+char im_on[] = _PATH_TTY; /* my tty name */
boolean query = FALSE; /* query the operator if touch files */
boolean notouch = FALSE; /* don't touch ANY files */
*/
#ifndef lint
-static char sccsid[] = "@(#)touch.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)touch.c 5.5 (Berkeley) %G%";
#endif /* not lint */
-#include <stdio.h>
-#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <signal.h>
+#include <sys/signal.h>
+#include <stdio.h>
+#include <ctype.h>
#include "error.h"
+#include "pathnames.h"
/*
* Iterate through errors
FILE *n_touchedfile; /* the new file */
char *o_name;
char n_name[64];
-char *canon_name = "/tmp/ErrorXXXXXX";
+char *canon_name = _PATH_TMP;
int o_lineno;
int n_lineno;
boolean tempfileopen = FALSE;
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -DHERE=TAHOE -DTARGET=TAHOE -DFAMILY=PCC -DUCBVAXASM \
-DUCBPASS2 -O -I$(INCLDIR)/usr/include -I../include
f77: ${SRCS} ${LIBC}
${CC} -o $@ ${CFLAGS} ${SRCS}
-clean: FRC
+clean:
rm -f ${OBJS} core f77
-depend: FRC
+cleandir: clean
+ rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
mkdep -p ${CFLAGS} ${SRCS}
-install: FRC
- install -s -o bin -g bin -m 755 f77 ${DESTDIR}/usr/bin/f77
+install: ${MAN}
+ install -s -o bin -g bin -m 755 f77 ${DESTDIR}/usr/bin
-lint: FRC
+lint: ${SRCS}
lint ${CFLAGS} ${SRCS}
-tags: FRC
+tags: ${SRCS}
ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-f77: f77.c /usr/include/stdio.h /usr/include/sys/types.h
-f77: /usr/include/sys/stat.h /usr/include/ctype.h /usr/include/signal.h
-f77: /usr/include/machine/trap.h /usr/include/sys/time.h /usr/include/time.h
-f77: /usr/include/sys/resource.h /usr/include/sys/wait.h
-f77: /usr/include/machine/machparam.h ../include/defines.h
-f77: ../include/machdefs.h drivedefs.h ../include/version.h
-f77: /usr/include/errno.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
#include "defines.h"
#include "machdefs.h"
-#include "drivedefs.h"
+#include "pathnames.h"
#include "version.h"
static FILEP diagfile = {stderr} ;
static char *footname = FOOTNAME;
static char *proffoot = PROFFOOT;
static char *macroname = "m4";
-static char *shellname = "/bin/sh";
-static char *cppname = "/lib/cpp";
+static char *shellname = _PATH_BSHELL;
+static char *cppname = _PATH_CPP;
static char *aoutname = "a.out" ;
static char *temppref = TEMPPREF;
char *str;
{
register char *s, *t;
-char *argv[100], path[100];
+char *argv[100];
char *inname, *outname;
int append;
int waitpid;
return(-1);
argv[argc] = 0;
-s = path;
-t = "/usr/bin/";
-while(*t)
- *s++ = *t++;
-for(t = argv[1] ; *s++ = *t++ ; )
- ;
if((waitpid = fork()) == 0)
{
if(inname)
freopen(outname, (append ? "a" : "w"), stdout);
enbint(SIG_DFL);
- texec(path+9, argv); /* command */
- texec(path+4, argv); /* /bin/command */
- texec(path , argv); /* /usr/bin/command */
+ texec(argv[1] , argv);
- fatalstr("Cannot load %s",path+9);
+ fatalstr("Cannot load %s", argv[1]);
}
return( await(waitpid) );
LOCAL fname(name, suff)
char *name, *suff;
{
-sprintf(name, "/tmp/%s%d.%s", temppref, pid, suff);
+sprintf(name, "%s/%s%d.%s", _PATH_TMP, temppref, pid, suff);
}
Wrong Definitions File!
#endif
-#define PASS1NAME "/usr/lib/f77pass1"
-#define PASS2NAME "/lib/f1"
+#define PASS1NAME "/usr/libexec/f77pass1"
+#define PASS2NAME "/usr/libexec/f1"
#ifdef INLINE
-#define PASS2INAME "/usr/lib/if1"
-#endif INLINE
-#define PASS2OPT "/lib/c2"
-#define ASMNAME "/bin/as"
-#define LDNAME "/bin/ld"
+#define PASS2INAME "/usr/libexec/if1"
+#endif
+#define PASS2OPT "/usr/libexec/c2"
+#define ASMNAME "/usr/bin/as"
+#define LDNAME "/usr/bin/ld"
+#define _PATH_UBIN "/usr/bin"
#define CATNAME "/bin/cat"
-#define FOOTNAME "/lib/crt0.o"
-#define PROFFOOT "/lib/mcrt0.o"
+#define FOOTNAME "/usr/lib/crt0.o"
+#define PROFFOOT "/usr/lib/mcrt0.o"
#define GPRFFOOT "/usr/lib/gcrt0.o"
-#define TEMPPREF "fort"
+#define TEMPPREF "fort"
static char *liblist [ ] =
{ "/usr/lib/libU77.a",
"/usr/lib/libF77.a",
"/usr/lib/libI77.a",
"/usr/lib/libm.a",
- "/lib/libc.a",NULL };
+ "/usr/lib/libc.a",NULL };
static char *p_liblist [ ] =
{ "/usr/lib/libU77_p.a",
"/usr/lib/libF77_p.a",
"/usr/lib/libF77_p.a",
"/usr/lib/libm_p.a",
"/usr/lib/libc_p.a",NULL };
+
+#include <paths.h>
+
+#define _PATH_BSHELL "/bin/sh"
+#define _PATH_CPP "/usr/bin/cpp"
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -DHERE=VAX -DTARGET=VAX -DFAMILY=PCC -DUCBVAXASM -DUCBPASS2 \
-O -I../include
mkdep -p ${CFLAGS} ${SRCS}
install: FRC
- install -s -o bin -g bin -m 755 f77 ${DESTDIR}/usr/bin/f77
+ install -s -o bin -g bin -m 755 f77 ${DESTDIR}/usr/bin
lint: FRC
lint ${CFLAGS} ${SRCS}
*/
#ifndef lint
-static char sccsid[] = "@(#)f77.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)f77.c 5.5 (Berkeley) %G%";
#endif
/*
*/
char *xxxvers = "\n@(#) F77 DRIVER, VERSION 4.2, 1984 JULY 28\n";
-#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/signal.h>
#include <ctype.h>
-#include <signal.h>
+#include <stdio.h>
#ifdef SIGPROF
/*
#include "defines.h"
#include "machdefs.h"
-#include "drivedefs.h"
+#include "pathnames.h"
#include "version.h"
static FILEP diagfile = {stderr} ;
static char *footname = FOOTNAME;
static char *proffoot = PROFFOOT;
static char *macroname = "m4";
-static char *shellname = "/bin/sh";
-static char *cppname = "/lib/cpp";
+static char *shellname = _PATH_BSHELL;
+static char *cppname = _PATH_CPP;
static char *aoutname = "a.out" ;
static char *temppref = TEMPPREF;
char *str;
{
register char *s, *t;
-char *argv[100], path[100];
+char *argv[100];
char *inname, *outname;
int append;
int waitpid;
return(-1);
argv[argc] = 0;
-s = path;
-t = "/usr/bin/";
-while(*t)
- *s++ = *t++;
-for(t = argv[1] ; *s++ = *t++ ; )
- ;
if((waitpid = fork()) == 0)
{
if(inname)
fatalstr("Cannot open %s", outname);
enbint(SIG_DFL);
- texec(path+9, argv); /* command */
- texec(path+4, argv); /* /bin/command */
- texec(path , argv); /* /usr/bin/command */
+ texec(argv[1], argv);
- fatalstr("Cannot load %s",path+9);
+ fatalstr("Cannot load %s", argv[1]);
}
return( await(waitpid) );
LOCAL fname(name, suff)
char *name, *suff;
{
-sprintf(name, "/tmp/%s%d.%s", temppref, pid, suff);
+sprintf(name, "%s/%s%d.%s", _PATH_TMP, temppref, pid, suff);
}
Wrong Definitions File!
#endif
-#define PASS1NAME "/usr/lib/f77pass1"
-#define PASS2NAME "/lib/f1"
-#define PASS2OPT "/lib/c2"
-#define ASMNAME "/bin/as"
-#define LDNAME "/bin/ld"
+#define PASS1NAME "/usr/libexec/f77pass1"
+#define PASS2NAME "/usr/libexec/f1"
+#define PASS2OPT "/usr/libexec/c2"
+#define ASMNAME "/usr/bin/as"
+#define LDNAME "/usr/bin/ld"
#define CATNAME "/bin/cat"
-#define FOOTNAME "/lib/crt0.o"
-#define PROFFOOT "/lib/mcrt0.o"
+#define FOOTNAME "/usr/lib/crt0.o"
+#define PROFFOOT "/usr/lib/mcrt0.o"
#define GPRFFOOT "/usr/lib/gcrt0.o"
#define TEMPPREF "fort"
{ "-lU77", "-lF77", "-lI77", "-lm", "-lc", NULL };
static char *p_liblist [ ] =
{ "-lU77_p", "-lF77_p", "-lI77_p", "-lm_p", "-lc_p", NULL };
+
+#include <paths.h>
+
+#define _PATH_BSHELL "/bin/sh"
+#define _PATH_CPP "/usr/bin/cpp"
+#define _PATH_UBIN "/usr/bin"
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O -DHERE=TAHOE -DTARGET=TAHOE -DFAMILY=PCC -DUCBVAXASM \
-DUCBPASS2 -I$(INCLDIR)/usr/include -I../include
tokdefs.h: tokens
grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
-clean: FRC
+clean:
rm -f ${OBJS} core f77pass1 gram.c gram.in
-depend: ${SRCS} FRC
+cleandir: clean
+ rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
mkdep ${CFLAGS} ${SRCS}
-install: FRC
- install -s -o bin -g bin -m 755 f77pass1 ${DESTDIR}/usr/lib/f77pass1
+install: ${MAN}
+ install -s -o bin -g bin -m 755 f77pass1 ${DESTDIR}/usr/libexec
-lint: ${SRCS} FRC
+lint: ${SRCS}
lint ${CFLAGS} ${SRCS}
-tags: ${SRCS} FRC
+tags: ${SRCS}
ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-bb.o: bb.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-bb.o: ../include/defines.h ../include/machdefs.h optim.h
-conv.o: conv.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-conv.o: ../include/defines.h ../include/machdefs.h conv.h
-data.o: data.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-data.o: ../include/defines.h ../include/machdefs.h data.h
-equiv.o: equiv.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-equiv.o: ../include/defines.h ../include/machdefs.h /usr/include/a.out.h
-equiv.o: /usr/include/sys/exec.h /usr/include/stab.h
-error.o: error.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-error.o: ../include/defines.h ../include/machdefs.h
-exec.o: exec.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-exec.o: ../include/defines.h ../include/machdefs.h optim.h
-expr.o: expr.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-expr.o: ../include/defines.h ../include/machdefs.h
-fmt.o: fmt.c format.h
-gram.o: gram.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-gram.o: ../include/defines.h ../include/machdefs.h data.h /usr/include/a.out.h
-gram.o: /usr/include/sys/exec.h /usr/include/stab.h
-init.o: init.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-init.o: ../include/defines.h ../include/machdefs.h io.h /usr/include/sys/file.h
-intr.o: intr.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-intr.o: ../include/defines.h ../include/machdefs.h
-io.o: io.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-io.o: ../include/defines.h ../include/machdefs.h io.h
-lex.o: lex.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-lex.o: ../include/defines.h ../include/machdefs.h tokdefs.h
-main.o: main.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-main.o: ../include/defines.h ../include/machdefs.h /usr/include/signal.h
-main.o: /usr/include/machine/trap.h /usr/include/a.out.h
-main.o: /usr/include/sys/exec.h /usr/include/stab.h
-misc.o: misc.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-misc.o: ../include/defines.h ../include/machdefs.h
-optcse.o: optcse.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-optcse.o: ../include/defines.h ../include/machdefs.h optim.h
-optim.o: optim.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-optim.o: ../include/defines.h ../include/machdefs.h optim.h
-optloop.o: optloop.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-optloop.o: ../include/defines.h ../include/machdefs.h optim.h
-paramset.o: paramset.c defs.h /usr/include/stdio.h /usr/include/ctype.h
-paramset.o: ftypes.h ../include/defines.h ../include/machdefs.h data.h
-proc.o: proc.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-proc.o: ../include/defines.h ../include/machdefs.h /usr/include/a.out.h
-proc.o: /usr/include/sys/exec.h /usr/include/stab.h
-put.o: put.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-put.o: ../include/defines.h ../include/machdefs.h /usr/include/pcc.h
-putpcc.o: putpcc.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-putpcc.o: ../include/defines.h ../include/machdefs.h /usr/include/pcc.h
-regalloc.o: regalloc.c defs.h /usr/include/stdio.h /usr/include/ctype.h
-regalloc.o: ftypes.h ../include/defines.h ../include/machdefs.h optim.h
-setfmt.o: setfmt.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-setfmt.o: ../include/defines.h ../include/machdefs.h format.h
-stab.o: stab.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-stab.o: ../include/defines.h ../include/machdefs.h /usr/include/sys/types.h
-stab.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h
-tahoe.o: tahoe.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-tahoe.o: ../include/defines.h ../include/machdefs.h /usr/include/a.out.h
-tahoe.o: /usr/include/sys/exec.h /usr/include/stab.h /usr/include/pcc.h
-tahoex.o: tahoex.c /usr/include/stdio.h ../include/defines.h
-tahoex.o: ../include/machdefs.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
#include "defs.h"
#include "io.h"
#include <sys/file.h>
+#include "pathnames.h"
FILEP infile = { stdin };
int pid;
pid = getpid();
-sprintf(cdatafname, "/tmp/fortcd.%d", pid);
-sprintf(cchkfname, "/tmp/fortcc.%d", pid);
-sprintf(vdatafname, "/tmp/fortvd.%d", pid);
-sprintf(vchkfname, "/tmp/fortvc.%d", pid);
+sprintf(cdatafname, "%s/fortcd.%d", _PATH_TMP, pid);
+sprintf(cchkfname, "%s/fortcc.%d", _PATH_TMP, pid);
+sprintf(vdatafname, "%s/fortvd.%d", _PATH_TMP, pid);
+sprintf(vchkfname, "%s/fortvc.%d", _PATH_TMP, pid);
cdatafile = open(cdatafname, O_CREAT | O_RDWR, 0600);
if (cdatafile < 0)
#include "defs.h"
#include "tokdefs.h"
+#include "pathnames.h"
# define BLANK ' '
# define MYQUOTE (2)
if( (fp = fopen(temp, "r")) == NULL )
{
- sprintf(temp, "/usr/include/%s", name);
+ sprintf(temp, "%s/%s", _PATH_INCLUDES, name);
fp = fopen(temp, "r");
}
if(fp)
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 5.4 (Berkeley) %G%
+# @(#)Makefile 5.5 (Berkeley) %G%
#
CFLAGS= -O -DHERE=VAX -DTARGET=VAX -DFAMILY=PCC -DUCBVAXASM \
-DUCBPASS2 -DNAMELIST -I../include
tokdefs.h: tokens
grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
-clean: FRC
+clean:
rm -f ${OBJS} core f77pass1 gram.c gram.in
-depend: ${SRCS} FRC
+cleandir: clean
+ rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
mkdep ${CFLAGS} ${SRCS}
-install: FRC
- install -s -o bin -g bin -m 755 f77pass1 ${DESTDIR}/usr/lib/f77pass1
+install: ${MAN}
+ install -s -o bin -g bin -m 755 f77pass1 ${DESTDIR}/usr/libexec
-lint: ${SRCS} FRC
+lint: ${SRCS}
lint ${CFLAGS} ${SRCS}
-tags: ${SRCS} FRC
+tags: ${SRCS}
ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-bb.o: bb.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-bb.o: ../include/defines.h ../include/machdefs.h optim.h
-conv.o: conv.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-conv.o: ../include/defines.h ../include/machdefs.h conv.h
-data.o: data.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-data.o: ../include/defines.h ../include/machdefs.h data.h
-equiv.o: equiv.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-equiv.o: ../include/defines.h ../include/machdefs.h /usr/include/a.out.h
-equiv.o: /usr/include/sys/exec.h /usr/include/stab.h
-error.o: error.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-error.o: ../include/defines.h ../include/machdefs.h
-exec.o: exec.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-exec.o: ../include/defines.h ../include/machdefs.h optim.h
-expr.o: expr.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-expr.o: ../include/defines.h ../include/machdefs.h /usr/include/signal.h
-expr.o: /usr/include/setjmp.h
-fmt.o: fmt.c format.h
-gram.o: gram.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-gram.o: ../include/defines.h ../include/machdefs.h data.h /usr/include/a.out.h
-gram.o: /usr/include/sys/exec.h /usr/include/stab.h
-init.o: init.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-init.o: ../include/defines.h ../include/machdefs.h io.h /usr/include/sys/file.h
-intr.o: intr.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-intr.o: ../include/defines.h ../include/machdefs.h
-io.o: io.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-io.o: ../include/defines.h ../include/machdefs.h io.h
-lex.o: lex.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-lex.o: ../include/defines.h ../include/machdefs.h tokdefs.h
-main.o: main.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-main.o: ../include/defines.h ../include/machdefs.h /usr/include/signal.h
-main.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h
-misc.o: misc.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-misc.o: ../include/defines.h ../include/machdefs.h
-optcse.o: optcse.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-optcse.o: ../include/defines.h ../include/machdefs.h optim.h
-optim.o: optim.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-optim.o: ../include/defines.h ../include/machdefs.h optim.h
-optloop.o: optloop.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-optloop.o: ../include/defines.h ../include/machdefs.h optim.h
-paramset.o: paramset.c defs.h /usr/include/stdio.h /usr/include/ctype.h
-paramset.o: ftypes.h ../include/defines.h ../include/machdefs.h data.h
-proc.o: proc.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-proc.o: ../include/defines.h ../include/machdefs.h /usr/include/a.out.h
-proc.o: /usr/include/sys/exec.h /usr/include/stab.h
-put.o: put.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-put.o: ../include/defines.h ../include/machdefs.h /usr/include/pcc.h
-putpcc.o: putpcc.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-putpcc.o: ../include/defines.h ../include/machdefs.h /usr/include/pcc.h
-regalloc.o: regalloc.c defs.h /usr/include/stdio.h /usr/include/ctype.h
-regalloc.o: ftypes.h ../include/defines.h ../include/machdefs.h optim.h
-setfmt.o: setfmt.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-setfmt.o: ../include/defines.h ../include/machdefs.h format.h
-stab.o: stab.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-stab.o: ../include/defines.h ../include/machdefs.h /usr/include/sys/types.h
-stab.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h
-vax.o: vax.c defs.h /usr/include/stdio.h /usr/include/ctype.h ftypes.h
-vax.o: ../include/defines.h ../include/machdefs.h /usr/include/a.out.h
-vax.o: /usr/include/sys/exec.h /usr/include/stab.h /usr/include/pcc.h
-vaxx.o: vaxx.c /usr/include/stdio.h ../include/defines.h ../include/machdefs.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
*/
#ifndef lint
-static char *sccsid = "@(#)init.c 5.3 (Berkeley) %G%";
+static char *sccsid = "@(#)init.c 5.4 (Berkeley) %G%";
#endif
/*
#include "defs.h"
#include "io.h"
#include <sys/file.h>
+#include "pathnames.h"
FILEP infile = { stdin };
int pid;
pid = getpid();
-sprintf(cdatafname, "/tmp/fortcd.%d", pid);
-sprintf(cchkfname, "/tmp/fortcc.%d", pid);
-sprintf(vdatafname, "/tmp/fortvd.%d", pid);
-sprintf(vchkfname, "/tmp/fortvc.%d", pid);
+sprintf(cdatafname, "%s/fortcd.%d", _PATH_TMP, pid);
+sprintf(cchkfname, "%s/fortcc.%d", _PATH_TMP, pid);
+sprintf(vdatafname, "%s/fortvd.%d", _PATH_TMP, pid);
+sprintf(vchkfname, "%s/fortvc.%d", _PATH_TMP, pid);
cdatafile = open(cdatafname, O_CREAT | O_RDWR, 0600);
if (cdatafile < 0)
*/
#ifndef lint
-static char sccsid[] = "@(#)lex.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)lex.c 5.4 (Berkeley) %G%";
#endif not lint
/*
#include "defs.h"
#include "tokdefs.h"
+#include "pathnames.h"
# define BLANK ' '
# define MYQUOTE (2)
if( (fp = fopen(temp, "r")) == NULL )
{
- sprintf(temp, "/usr/include/%s", name);
+ sprintf(temp, "%s/%s", _PATH_INCLUDES, name);
fp = fopen(temp, "r");
}
if(fp)
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.2 (Berkeley) %G%
+# @(#)Makefile 5.3 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 fpr ${DESTDIR}/usr/ucb/fpr
+ install -s -o bin -g bin -m 755 fpr ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.2 (Berkeley) %G%
+# @(#)Makefile 5.3 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 fsplit ${DESTDIR}/usr/ucb/fsplit
+ install -s -o bin -g bin -m 755 fsplit ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g kmem -m 2755 gcore ${DESTDIR}/usr/ucb
+ install -s -o bin -g kmem -m 2755 gcore ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.15 (Berkeley) %G%
+# @(#)Makefile 5.16 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 gprof ${DESTDIR}/usr/ucb/gprof
- install -c -o bin -g bin -m 444 gprof.flat ${DESTDIR}/usr/lib
- install -c -o bin -g bin -m 444 gprof.callg ${DESTDIR}/usr/lib
+ install -s -o bin -g bin -m 755 gprof ${DESTDIR}/usr/bin
+ install -c -o bin -g bin -m 444 gprof.flat gprof.callg \
+ ${DESTDIR}/usr/share/misc
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)gprof.h 5.6 (Berkeley) %G%
+ * @(#)gprof.h 5.7 (Berkeley) %G%
*/
#include <stdio.h>
#define GMONNAME "gmon.out"
#define GMONSUM "gmon.sum"
- /*
- * blurbs on the flat and graph profiles.
- */
-#define FLAT_BLURB "/usr/lib/gprof.flat"
-#define CALLG_BLURB "/usr/lib/gprof.callg"
-
/*
* a constructed arc,
* with pointers to the namelist entry of the parent and the child,
*/
#ifndef lint
-static char sccsid[] = "@(#)printgprof.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)printgprof.c 5.6 (Berkeley) %G%";
#endif /* not lint */
#include "gprof.h"
+#include "pathnames.h"
printprof()
{
{
if ( bflag ) {
- printblurb( FLAT_BLURB );
+ printblurb( _PATH_FLAT_BLURB );
}
printf( "\ngranularity: each sample hit covers %d byte(s)" ,
(long) scale * sizeof(UNIT) );
{
if ( bflag ) {
- printblurb( CALLG_BLURB );
+ printblurb( _PATH_CALLG_BLURB );
}
printf( "\ngranularity: each sample hit covers %d byte(s)" ,
(long) scale * sizeof(UNIT) );
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.4 (Berkeley) %G%
+# @(#)Makefile 5.5 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin/m4
+ install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
Virgin BTL M4 as sent out in 4.1
#ifndef lint
-static char sccsid[] = "@(#)m4.c 1.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)m4.c 1.5 (Berkeley) %G%";
#endif
#include <stdio.h>
#include <signal.h>
+#include "pathnames.h"
#define ERROR NULL
#define READ "r"
char *dumploc;
char *errploc;
-char tempname[] = "/tmp/m4aXXXXX";
+char tempname[] = _PATH_TMP;
struct nlist *lookup();
char *install();
char *malloc();
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 mkstr ${DESTDIR}/usr/ucb
+ install -s -o bin -g bin -m 755 mkstr ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 nm ${DESTDIR}/bin
+ install -s -o bin -g bin -m 755 nm ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 size ${DESTDIR}/bin
+ install -s -o bin -g bin -m 755 size ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 strings ${DESTDIR}/usr/ucb
+ install -s -o bin -g bin -m 755 strings ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 strip ${DESTDIR}/bin
+ install -s -o bin -g bin -m 755 strip ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 4.6 {Berkeley} %G%
+# @(#)Makefile 4.7 {Berkeley} %G%
#
CFLAGS= -O
YFLAGS= -d
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- -[ -d ${DESTDIR}/usr/lib/struct ] || mkdir ${DESTDIR}/usr/lib/struct
- install -s -o bin -g bin -m 755 structure ${DESTDIR}/usr/lib/struct
- install -s -o bin -g bin -m 755 beautify ${DESTDIR}/usr/lib/struct
- install -c -o bin -g bin -m 755 struct ${DESTDIR}/usr/bin/struct
+ install -s -o bin -g bin -m 755 structure beautify \
+ ${DESTDIR}/usr/libexec
+ install -c -o bin -g bin -m 755 struct ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
#! /bin/sh
#
-# @(#)struct.sh 4.2 (Berkeley) 83/12/19
+# @(#)struct.sh 4.3 (Berkeley) 89/05/10
#
trap "rm -f /tmp/struct*$$" 0 1 2 3 13 15
files=no
case $files in
yes)
- /usr/lib/struct/structure $* >/tmp/struct$$
+ /usr/libexec/structure $* >/tmp/struct$$
;;
no)
cat >/tmp/structin$$
- /usr/lib/struct/structure /tmp/structin$$ $* >/tmp/struct$$
+ /usr/libexec/structure /tmp/structin$$ $* >/tmp/struct$$
esac &&
- /usr/lib/struct/beautify</tmp/struct$$
+ /usr/libexec/beautify</tmp/struct$$
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
# FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
#
CFLAGS= -O
mkdep -p ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 xstr ${DESTDIR}/usr/ucb
+ install -s -o bin -g bin -m 755 xstr ${DESTDIR}/usr/bin
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
lint: ${SRCS}
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)xstr.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)xstr.c 5.5 (Berkeley) %G%";
#endif /* not lint */
-#include <stdio.h>
-#include <ctype.h>
#include <sys/types.h>
#include <signal.h>
+#include <stdio.h>
+#include <ctype.h>
+#include "pathnames.h"
/*
* xstr - extract and hash strings in a C program
if (cflg || argc == 0 && !readstd)
inithash();
else
- strings = mktemp(savestr("/tmp/xstrXXXXXX"));
+ strings = mktemp(savestr(_PATH_TMP));
while (readstd || argc > 0) {
if (freopen("x.c", "w", stdout) == NULL)
perror("x.c"), exit(1);