1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Aliases of file descriptors are now using the signal semaphore

of the original file descriptor.

- close() did not return 0 if the file descriptor in question
  was really just an alias. Fixed.

- Added a feature which makes it possible to have several clients
  use the standard I/O streams (stdin/stdout/stderr) and have these
  referring to their process' Input()/Output()/ErrorOutput()
  streams. This is intended to support the upcoming shared
  library feature.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14885 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-12 09:43:48 +00:00
parent 08cc54d3fa
commit b048323196
5 changed files with 69 additions and 15 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: socket_hook_entry.c,v 1.12 2005-03-09 12:06:10 obarthel Exp $
* $Id: socket_hook_entry.c,v 1.13 2005-03-12 09:43:47 obarthel Exp $
*
* :ts=4
*
@ -104,6 +104,8 @@ __socket_hook_entry(
SHOWMSG("file_action_close");
result = 0;
/* If this is an alias, just remove it. */
if(__fd_is_aliased(fd))
{
@ -116,7 +118,7 @@ __socket_hook_entry(
{
PROFILE_OFF();
__CloseSocket((LONG)fd->fd_DefaultFile);
result = __CloseSocket((LONG)fd->fd_DefaultFile);
PROFILE_ON();
}
@ -134,8 +136,6 @@ __socket_hook_entry(
/* And that's the last for this file descriptor. */
memset(fd,0,sizeof(*fd));
result = 0;
break;
case file_action_seek: