2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
18 #include <sys/types.h>
21 extern char *soutput
, *tagout
, usedir
[];
28 result(unsigned *mptr
, int nf
, FILE *fc
)
38 master
.b
= (long *)mptr
;
43 for (i
= 0; i
< nf
; i
++) {
44 lp
= iflong
? master
.b
[i
] : master
.a
[i
];
47 for (s
= res
; c
= *s
; s
++)
53 if (res
[0] == '/' || usedir
[0] == 0)
54 sprintf(tagout
, "%s", res
);
56 sprintf(tagout
, "%s/%s", usedir
, res
);
57 while (*tagout
) tagout
++;
59 if (res
[0] != '/' || usedir
[0] == 0)
60 printf("%s/", usedir
);
71 fstat(fileno(f
), &sb
);
72 return (sb
. st_mtime
);