* Copyright (c) 1990 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)genbuildname.c 5.3 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
static int dirlen
, chkobjdir
= UNKNOWN
;
if (chkobjdir
== NODIR
|| index(name
, '/') != (char *)0)
if (chkobjdir
== UNKNOWN
&&
(stat(objdir
, &stbuf
) < 0 ||
(stbuf
.st_mode
& S_IFMT
) != S_IFDIR
)) {
dirlen
= strlen(objdir
) + 2;
newname
= (char *)malloc(dirlen
+ strlen(name
));
if (newname
== (char *)0)