diff options
Diffstat (limited to 'usr/src/lib/libc/inc/libc.h')
-rw-r--r-- | usr/src/lib/libc/inc/libc.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/usr/src/lib/libc/inc/libc.h b/usr/src/lib/libc/inc/libc.h index d09aae7ce0..65f68f7e2c 100644 --- a/usr/src/lib/libc/inc/libc.h +++ b/usr/src/lib/libc/inc/libc.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -21,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -37,7 +36,7 @@ #include <thread.h> #include <stdio.h> -#include <sys/dirent.h> +#include <dirent.h> #include <ucontext.h> #include <nsswitch.h> #include <stddef.h> @@ -86,6 +85,15 @@ extern int _pollsys(struct pollfd *, nfds_t, const timespec_t *, const sigset_t *); extern void _private_testcancel(void); +/* + * The private_DIR structure is the same as the DIR structure, + * with the addition of a mutex lock for libc's internal use. + */ +typedef struct { + DIR dd_dir; + mutex_t dd_lock; +} private_DIR; + #if !defined(_LP64) /* * getdents64 transitional interface is intentionally internal to libc |