* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)opendir.c 5.1 (Berkeley) %G%";
if ((fd
= open(name
, 0)) == -1)
if ((dirp
= (DIR *)malloc(sizeof(DIR))) == NULL
) {