]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/opendir.c
Libc-763.12.tar.gz
[apple/libc.git] / gen / FreeBSD / opendir.c
index 9148240d7f3fc41ac45e64215d7ee52254fdc414..1892c36936d1f1c3881285416723d332ff6a6fff 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/*-
  * Copyright (c) 1983, 1993
  *     The Regents of the University of California.  All rights reserved.
  *
  * Copyright (c) 1983, 1993
  *     The Regents of the University of California.  All rights reserved.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
@@ -35,7 +31,7 @@
 static char sccsid[] = "@(#)opendir.c  8.8 (Berkeley) 5/1/95";
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
 static char sccsid[] = "@(#)opendir.c  8.8 (Berkeley) 5/1/95";
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/gen/opendir.c,v 1.22 2004/08/14 17:46:10 stefanf Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/gen/opendir.c,v 1.24 2008/04/16 18:40:52 delphij Exp $");
 
 #include "namespace.h"
 #include <sys/param.h>
 
 #include "namespace.h"
 #include <sys/param.h>
@@ -55,17 +51,14 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/opendir.c,v 1.22 2004/08/14 17:46:10 stefan
  * Open a directory.
  */
 DIR *
  * Open a directory.
  */
 DIR *
-opendir(name)
-       const char *name;
+opendir(const char *name)
 {
 
        return (__opendir2(name, DTF_HIDEW|DTF_NODUP));
 }
 
 DIR *
 {
 
        return (__opendir2(name, DTF_HIDEW|DTF_NODUP));
 }
 
 DIR *
-__opendir2(name, flags)
-       const char *name;
-       int flags;
+__opendir2(const char *name, int flags)
 {
        DIR *dirp;
        int fd;
 {
        DIR *dirp;
        int fd;