1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The thread-safety code is now subject to conditional compilation.

Both the library and the user code need to be rebuilt with the
  preprocessor symbol __THREAD_SAFE defined to get thread-safe
  code.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14843 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-02-28 10:07:35 +00:00
parent f51faeb168
commit 1df294c07e
61 changed files with 488 additions and 319 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: stat_lstat.c,v 1.4 2005-02-03 16:56:15 obarthel Exp $
* $Id: stat_lstat.c,v 1.5 2005-02-28 10:07:30 obarthel Exp $
*
* :ts=4
*
@@ -59,6 +59,9 @@ lstat(const char * path_name, struct stat * buffer)
assert( path_name != NULL && buffer != NULL );
if(__check_abort_enabled)
__check_abort();
#if defined(CHECK_FOR_NULL_POINTERS)
{
if(path_name == NULL || buffer == NULL)
@@ -71,9 +74,6 @@ lstat(const char * path_name, struct stat * buffer)
}
#endif /* CHECK_FOR_NULL_POINTERS */
if(__check_abort_enabled)
__check_abort();
result = stat(path_name,buffer);
out: