* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Hugh Smith at The University of Guelph.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)touch.c 5.2 (Berkeley) %G%";
extern CHDR chdr
; /* converted header */
extern char *archive
; /* archive name */
afd
= open_archive(O_RDWR
);
strncmp(RANLIBMAG
, chdr
.name
, sizeof(RANLIBMAG
) - 1)) {
"ranlib: %s: no symbol table.\n", archive
);
size
= SARMAG
+ sizeof(hdr
->ar_name
);
if (lseek(afd
, size
, SEEK_SET
) == (off_t
)-1)
(void)sprintf(buf
, "%-12ld", time((time_t *)NULL
) + RANLIBSKEW
);
if (write(afd
, buf
, sizeof(hdr
->ar_date
)) != sizeof(hdr
->ar_date
))