mirror of
https://github.com/adtools/clib2.git
synced 2026-05-03 10:53:04 +00:00
- Corrected the lock variable name.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15092 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# $Id: GNUmakefile.68k,v 1.81 2006-04-05 07:53:23 obarthel Exp $
|
# $Id: GNUmakefile.68k,v 1.82 2006-04-05 08:19:11 obarthel Exp $
|
||||||
#
|
#
|
||||||
# :ts=8
|
# :ts=8
|
||||||
#
|
#
|
||||||
@@ -105,7 +105,7 @@ WARNINGS = \
|
|||||||
|
|
||||||
INCLUDES = -Iinclude -I. -Inetinclude
|
INCLUDES = -Iinclude -I. -Inetinclude
|
||||||
#OPTIONS = -fno-builtin -fno-common -DDEBUG
|
#OPTIONS = -fno-builtin -fno-common -DDEBUG
|
||||||
OPTIONS = -fno-builtin -fno-common -DNDEBUG
|
OPTIONS = -fno-builtin -fno-common -DNDEBUG -D__THREAD_SAFE
|
||||||
#OPTIONS = -fno-builtin -fno-common -D__MEM_DEBUG
|
#OPTIONS = -fno-builtin -fno-common -D__MEM_DEBUG
|
||||||
#OPTIONS = -fno-builtin -fno-common -DDEBUG -D__MEM_DEBUG -DNO_INLINE_STDARG
|
#OPTIONS = -fno-builtin -fno-common -DDEBUG -D__MEM_DEBUG -DNO_INLINE_STDARG
|
||||||
OPTIMIZE = -O -fomit-frame-pointer -fstrength-reduce -finline-functions
|
OPTIMIZE = -O -fomit-frame-pointer -fstrength-reduce -finline-functions
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: unistd_chown.c,v 1.10 2006-04-05 06:43:56 obarthel Exp $
|
* $Id: unistd_chown.c,v 1.11 2006-04-05 08:19:11 obarthel Exp $
|
||||||
*
|
*
|
||||||
* :ts=4
|
* :ts=4
|
||||||
*
|
*
|
||||||
@@ -116,8 +116,8 @@ chown(const char * path_name, uid_t owner, gid_t group)
|
|||||||
|
|
||||||
/* Try to find out which owner/group information
|
/* Try to find out which owner/group information
|
||||||
is currently in use. */
|
is currently in use. */
|
||||||
lock = Lock(path_name,SHARED_LOCK);
|
file_lock = Lock((STRPTR)path_name,SHARED_LOCK);
|
||||||
if(lock == ZERO || CANNOT Examine(file_lock,fib))
|
if(file_lock == ZERO || CANNOT Examine(file_lock,fib))
|
||||||
{
|
{
|
||||||
PROFILE_ON();
|
PROFILE_ON();
|
||||||
|
|
||||||
@@ -125,8 +125,8 @@ chown(const char * path_name, uid_t owner, gid_t group)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
UnLock(lock);
|
UnLock(file_lock);
|
||||||
lock = ZERO;
|
file_lock = ZERO;
|
||||||
|
|
||||||
PROFILE_ON();
|
PROFILE_ON();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user