mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
c.lib 1.166 (28.7.2004)
- Added h_strerror() function to libnet.a; there's a global 'h_errno' variable available, too. - <signal.h> now defines a type 'sig_t'. - <unistd.h> now allows the 'fd_set' type to be referenced as 'struct fd_set', too. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14690 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: socket_init_exit.c,v 1.1.1.1 2004-07-26 16:31:16 obarthel Exp $
|
||||
* $Id: socket_init_exit.c,v 1.2 2004-07-28 15:50:45 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -61,6 +61,7 @@ extern BOOL __detach;
|
||||
#define SBTC_BREAKMASK 1 /* Interrupt signal mask */
|
||||
#define SBTC_LOGTAGPTR 11 /* Under which name log entries are filed */
|
||||
#define SBTC_ERRNOLONGPTR 24 /* Pointer to errno, length == sizeof(errno) */
|
||||
#define SBTC_HERRNOLONGPTR 25 /* 'h_errno' pointer (with sizeof(h_errno) == sizeof(long)) */
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
@ -151,7 +152,7 @@ int
|
||||
__socket_init(void)
|
||||
{
|
||||
struct Process * this_process;
|
||||
struct TagItem tags[4];
|
||||
struct TagItem tags[5];
|
||||
int result = ERROR;
|
||||
LONG status;
|
||||
|
||||
@ -203,7 +204,11 @@ __socket_init(void)
|
||||
tags[2].ti_Tag = SBTM_SETVAL(SBTC_LOGTAGPTR);
|
||||
tags[2].ti_Data = (ULONG)__program_name;
|
||||
|
||||
tags[3].ti_Tag = TAG_END;
|
||||
/* Wire the library's h_errno variable to our local h_errno. */
|
||||
tags[3].ti_Tag = SBTM_SETVAL(SBTC_HERRNOLONGPTR);
|
||||
tags[3].ti_Data = (ULONG)&errno;
|
||||
|
||||
tags[4].ti_Tag = TAG_END;
|
||||
|
||||
PROFILE_OFF();
|
||||
status = __SocketBaseTagList(tags);
|
||||
|
||||
Reference in New Issue
Block a user