mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Added __set_h_errno() and __get_h_errno() functions.
- The thread-safe library now tries to enable bsdsocket.library base sharing and attempts to make the TCP/IP stack call the local __set_errno() and __set_h_errno(), so that any Process calling the library functions will get a chance to see proper error codes. Whether any of these features could be enabled can be tested through two global variables __can_share_socket_library_base and __thread_safe_errno_h_errno which are defined in <dos.h>. Note that for both features to work you will need the Roadshow bsdsocket.library version 4.275 or higher. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15048 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: socket_headers.h,v 1.9 2005-10-09 12:32:18 obarthel Exp $
|
||||
* $Id: socket_headers.h,v 1.10 2005-10-17 13:54:25 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -94,6 +94,8 @@ extern int NOCOMMON h_errno;
|
||||
|
||||
extern struct fd * __get_file_descriptor_socket(int socket_descriptor);
|
||||
extern int __socket_hook_entry(struct fd * fd,struct file_action_message * fam);
|
||||
extern int __get_h_errno(void);
|
||||
extern void __set_h_errno(int new_h_errno);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user