mirror of
https://github.com/adtools/clib2.git
synced 2026-05-05 20:55:14 +00:00
- Added <sys/time.h> include to <sys/socket.h> due to latest "TimeVal" change
in the OS4 SDK. Otherwise "struct timeval" will not be defined at the time the <net/if.h> of the netincludes will be included by <proto/bsdsocket.h>. - The strftime() hook function had the locale and character parameters switched, which made 'setlocale(LC_ALL,""); strftime(..);' unusable. Fixed. - fchown() and chown() now accept owner and group ID values of -1, which indicate that the respective information should not be changed. - The OS4 library build now includes the crtbegin.o and crtend.o object files in the libc.a library, which solves a problem with the thread-safe shared library support code. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15090 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: lib_user.c,v 1.6 2006-01-08 12:06:14 obarthel Exp $
|
||||
* $Id: lib_user.c,v 1.7 2006-04-05 06:43:56 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -100,7 +100,7 @@ UserLibOpen(struct UserData * ud)
|
||||
{
|
||||
BOOL result = FALSE;
|
||||
|
||||
/* For the AmigaOS4 build, invoke the clib2 shared library
|
||||
/* For the thread safe build, invoke the clib2 shared library
|
||||
initialization code. Note that this is not strictly
|
||||
necessary. In fact, you should not need this functionality
|
||||
if you stick to use Amiga operating system routines only
|
||||
@@ -109,15 +109,15 @@ UserLibOpen(struct UserData * ud)
|
||||
Use this feature only if you are porting code to the Amiga
|
||||
which cannot be easily converted to follow the AmigaOS
|
||||
API definitions only. */
|
||||
#if defined(__amigaos4__) && defined(__THREAD_SAFE)
|
||||
#if defined(__THREAD_SAFE)
|
||||
{
|
||||
/* Note that the clib2 library initialization is
|
||||
called exactly once, when the first client
|
||||
opens this library. */
|
||||
if(ud->ud_UseCount == 0 && !__lib_init(SysBase))
|
||||
if(ud->ud_UseCount == 0 && !__lib_init(ud->ud_SysBase))
|
||||
goto out;
|
||||
}
|
||||
#endif /* __amigaos4__ && __THREAD_SAFE */
|
||||
#endif /* __THREAD_SAFE */
|
||||
|
||||
/* Remember that one more customer is using this data structure. */
|
||||
ud->ud_UseCount++;
|
||||
@@ -140,7 +140,7 @@ UserLibClose(struct UserData * ud)
|
||||
/* Remember that one less customer is using this data structure. */
|
||||
ud->ud_UseCount--;
|
||||
|
||||
/* For the AmigaOS4 build, invoke the clib2 shared library
|
||||
/* For the thread safe build, invoke the clib2 shared library
|
||||
cleanup code. Note that this is not strictly
|
||||
necessary. In fact, you should not need this functionality
|
||||
if you stick to use Amiga operating system routines only
|
||||
@@ -149,7 +149,7 @@ UserLibClose(struct UserData * ud)
|
||||
Use this feature only if you are porting code to the Amiga
|
||||
which cannot be easily converted to follow the AmigaOS
|
||||
API definitions only. */
|
||||
#if defined(__amigaos4__) && defined(__THREAD_SAFE)
|
||||
#if defined(__THREAD_SAFE)
|
||||
{
|
||||
/* Note that the clib2 library cleanup code is
|
||||
called exactly once, when the last client
|
||||
@@ -157,7 +157,7 @@ UserLibClose(struct UserData * ud)
|
||||
if(ud->ud_UseCount == 0)
|
||||
__lib_exit();
|
||||
}
|
||||
#endif /* __amigaos4__ && __THREAD_SAFE */
|
||||
#endif /* __THREAD_SAFE */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user