SCCS-vsn: usr.sbin/timed/timed/master.c 2.18
SCCS-vsn: usr.sbin/timed/timed/slave.c 2.20
SCCS-vsn: usr.sbin/timed/timed/timed.c 2.15
SCCS-vsn: usr.sbin/trpt/trpt.c 5.7
SCCS-vsn: usr.sbin/trsp/trsp.c 6.4
-static char sccsid[] = "@(#)master.c 2.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)master.c 2.18 (Berkeley) %G%";
#endif /* not lint */
#include "globals.h"
#endif /* not lint */
#include "globals.h"
#include <sys/file.h>
#include <setjmp.h>
#include <utmp.h>
#include <sys/file.h>
#include <setjmp.h>
#include <utmp.h>
extern int machup;
extern int measure_delta;
extern int machup;
extern int measure_delta;
#ifdef MEASURE
if (fp == NULL) {
#ifdef MEASURE
if (fp == NULL) {
- fp = fopen("/usr/adm/timed.masterlog", "w");
+ fp = fopen(_PATH_MASTERLOG, "w");
-static char sccsid[] = "@(#)slave.c 2.19 (Berkeley) %G%";
+static char sccsid[] = "@(#)slave.c 2.20 (Berkeley) %G%";
#endif /* not lint */
#include "globals.h"
#include <protocols/timed.h>
#include <setjmp.h>
#endif /* not lint */
#include "globals.h"
#include <protocols/timed.h>
#include <setjmp.h>
if (status & MASTER) {
#ifdef MEASURE
if (fp == NULL) {
if (status & MASTER) {
#ifdef MEASURE
if (fp == NULL) {
- fp = fopen("/usr/adm/timed.masterlog", "w");
+ fp = fopen(_PATH_MASTERLOG, "w");
* (file not open)
*/
if (fp == NULL) {
* (file not open)
*/
if (fp == NULL) {
- fp = fopen("/usr/adm/timed.masterlog", "w");
+ fp = fopen(_PATH_MASTERLOG, "w");
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)timed.c 2.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)timed.c 2.15 (Berkeley) %G%";
#endif /* not lint */
#include "globals.h"
#endif /* not lint */
#include "globals.h"
#include <sys/file.h>
#include <sys/ioctl.h>
#include <setjmp.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <setjmp.h>
long random();
char hostname[MAXHOSTNAMELEN];
struct host hp[NHOSTS];
long random();
char hostname[MAXHOSTNAMELEN];
struct host hp[NHOSTS];
-char tracefile[] = "/usr/adm/timed.log";
+char tracefile[] = _PATH_TIMEDLOG;
FILE *fd;
jmp_buf jmpenv;
struct netinfo *nettab = NULL;
FILE *fd;
jmp_buf jmpenv;
struct netinfo *nettab = NULL;
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)trpt.c 5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)trpt.c 5.7 (Berkeley) %G%";
#endif /* not lint */
#include <machine/pte.h>
#endif /* not lint */
#include <machine/pte.h>
#include <stdio.h>
#include <errno.h>
#include <nlist.h>
#include <stdio.h>
#include <errno.h>
#include <nlist.h>
struct nlist nl[] = {
#define N_TCP_DEBUG 0
struct nlist nl[] = {
#define N_TCP_DEBUG 0
break;
case '?':
default:
break;
case '?':
default:
- fputs("usage: trpt [-afjst] [-p hex-address] [system [core]]\n", stderr);
+ (void)fprintf(stderr,
+"usage: trpt [-afjst] [-p hex-address] [system [core]]\n");
exit(1);
}
argc -= optind;
argv += optind;
exit(1);
}
argc -= optind;
argv += optind;
if (argc > 0) {
system = *argv;
argc--, argv++;
if (argc > 0) {
system = *argv;
argc--, argv++;
if (nlist(system, nl) < 0 || !nl[0].n_value) {
fprintf(stderr, "trpt: %s: no namelist\n", system);
if (nlist(system, nl) < 0 || !nl[0].n_value) {
fprintf(stderr, "trpt: %s: no namelist\n", system);
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)trsp.c 6.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)trsp.c 6.4 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
#include <stdio.h>
#include <errno.h>
#include <nlist.h>
#include <stdio.h>
#include <errno.h>
#include <nlist.h>
unsigned long ntime;
int sflag;
unsigned long ntime;
int sflag;
char **argv;
{
int i, mask = 0, npcbs = 0;
char **argv;
{
int i, mask = 0, npcbs = 0;
- char *system = "/vmunix", *core = "/dev/kmem";
+ char *system, *core;
+
+ system = _PATH_UNIX;
+ core = _PATH_KMEM;