mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
solaris thread-saff errrno fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33983 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9f68d90c98
commit
fbdcab1d55
20 changed files with 26 additions and 29 deletions
20
ChangeLog
20
ChangeLog
|
@ -3,6 +3,26 @@
|
|||
* Source/GSString.m: Implement -hash for literal UTF-8 performance.
|
||||
* Source/NSScanner.m: Fix initialisation bug which could cause
|
||||
scanning to fail on some strings.
|
||||
* Source/inet_pton.m:
|
||||
* Source/NSProcessInfo.m:
|
||||
* Source/NSSocketPort.m:
|
||||
* Source/NSUserDefaults.m:
|
||||
* Source/unix/NSStream.m:
|
||||
* Source/inet_ntop.m:
|
||||
* Source/GSHTTPURLHandle.m:
|
||||
* Source/NSMessagePort.m:
|
||||
* Source/GSPrivate.h:
|
||||
* Source/win32/GSFileHandle.m:
|
||||
* Source/win32/NSMessagePort.m:
|
||||
* Source/win32/NSMessagePortNameServer.m:
|
||||
* Source/NSFileManager.m:
|
||||
* Source/Additions/Unicode.m:
|
||||
* Source/Additions/NSError+GNUstepBase.m:
|
||||
* Source/NSThread.m:
|
||||
* Source/GSNetwork.h:
|
||||
* Source/GSFileHandle.m:
|
||||
* Source/NSLock.m:
|
||||
Fix for thread-safe errno on solaris.
|
||||
|
||||
2011-10-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -36,10 +36,6 @@
|
|||
#import "Foundation/NSError.h"
|
||||
#import "GSPrivate.h"
|
||||
|
||||
#if !defined(__MINGW__)
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* GNUstep specific (non-standard) additions to the NSError class.
|
||||
* Possibly to be made public
|
||||
|
|
|
@ -71,7 +71,6 @@ typedef struct {unichar from; unsigned char to;} _ucc_;
|
|||
#else
|
||||
#include <iconv.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
/*
|
||||
* The whole of the GNUstep code stores UNICODE in internal byte order,
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
/*
|
||||
* Stuff for setting the sockets into non-blocking mode.
|
||||
|
|
|
@ -62,8 +62,6 @@
|
|||
#include <sys/socket.h> // For MSG_PEEK, etc
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
/*
|
||||
* Implement map keys for strings with case insensitive comparisons,
|
||||
* so we can have case insensitive matching of http headers (correct
|
||||
|
|
|
@ -28,12 +28,10 @@
|
|||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
#ifndef _GSPrivate_h_
|
||||
#define _GSPrivate_h_
|
||||
|
||||
/* Generally may need this for posix thread-safe errno
|
||||
*/
|
||||
#define _XOPEN_SOURCE 600
|
||||
#include <errno.h>
|
||||
|
||||
#import "Foundation/NSError.h"
|
||||
|
||||
@class _GSInsensitiveDictionary;
|
||||
|
|
|
@ -147,8 +147,6 @@
|
|||
#include <sys/mount.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,10 @@
|
|||
#import "common.h"
|
||||
#include <pthread.h>
|
||||
#import "GNUstepBase/GSConfig.h"
|
||||
#import "GSPrivate.h"
|
||||
#define gs_cond_t pthread_cond_t
|
||||
#define gs_mutex_t pthread_mutex_t
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define EXPOSE_NSLock_IVARS 1
|
||||
#define EXPOSE_NSRecursiveLock_IVARS 1
|
||||
|
|
|
@ -58,7 +58,6 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/un.h>
|
||||
#include <arpa/inet.h> /* for inet_ntoa() */
|
||||
#include <errno.h>
|
||||
#include <string.h> /* for strchr() */
|
||||
#include <ctype.h> /* for strchr() */
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -59,10 +59,6 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRERROR
|
||||
#include <errno.h>
|
||||
#endif /* HAVE_STRERROR */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h> /* for inet_ntoa() */
|
||||
#endif /* !__MINGW__ */
|
||||
#include <errno.h>
|
||||
#include <string.h> /* for strchr() */
|
||||
#include <ctype.h> /* for strchr() */
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -55,8 +55,6 @@
|
|||
#include <sys/fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __POSIX_SOURCE
|
||||
#define NBLK_OPT O_NONBLOCK
|
||||
#else
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#define EXPOSE_NSUserDefaults_IVARS 1
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
|
||||
#import "Foundation/NSUserDefaults.h"
|
||||
#import "Foundation/NSArchiver.h"
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#import "GSPrivate.h"
|
||||
#import "GSNetwork.h"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <errno.h>
|
||||
|
||||
#import "GSPrivate.h"
|
||||
#import "GSNetwork.h"
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#import "common.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#import "Foundation/NSData.h"
|
||||
#import "Foundation/NSArray.h"
|
||||
|
|
|
@ -57,7 +57,6 @@
|
|||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#ifndef O_BINARY
|
||||
#ifdef _O_BINARY
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
#include "../GSPortPrivate.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define UNISTR(X) \
|
||||
((const unichar*)[(X) cStringUsingEncoding: NSUnicodeStringEncoding])
|
||||
|
|
|
@ -42,8 +42,6 @@
|
|||
|
||||
#include "GNUstepBase/GSMime.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "../GSPrivate.h"
|
||||
#include "../GSPortPrivate.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue