equal
deleted
inserted
replaced
18 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * information: Portions Copyright [yyyy] [name of copyright owner] |
19 * |
19 * |
20 * CDDL HEADER END |
20 * CDDL HEADER END |
21 */ |
21 */ |
22 /* |
22 /* |
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. |
24 * Use is subject to license terms. |
25 */ |
25 */ |
26 |
26 |
27 #pragma ident "%Z%%M% %I% %E% SMI" |
27 #pragma ident "%Z%%M% %I% %E% SMI" |
28 |
28 |
680 (void) close(fd); |
680 (void) close(fd); |
681 return (-1); |
681 return (-1); |
682 } |
682 } |
683 |
683 |
684 if ((dentp = (struct dirent *)malloc(sizeof (struct dirent) + |
684 if ((dentp = (struct dirent *)malloc(sizeof (struct dirent) + |
685 _PC_NAME_MAX + 1)) == NULL) { |
685 PATH_MAX + 1)) == NULL) { |
686 /* out of memory */ |
686 /* out of memory */ |
687 (void) close(fd); |
687 (void) close(fd); |
688 return (-1); |
688 return (-1); |
689 } |
689 } |
690 #ifdef _LP64 |
690 #ifdef _LP64 |