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

- The buffered and unbuffered file hook code is now invoked through

function pointers alone. The utility.library/CallHookPkt mechanism
  is no longer required.

- Moved the entire lseek() code relevant for files into the hook
  function.

- Simplified the close() function which now just calls into the
  hook code to perform whatever is necessary. The hook code is
  responsible for cleaning up after aliases, etc. This change in
  turn made it possible to greatly simplify the hook code for
  buffered files which now bypasses close/read/write/lseek and
  directly invokes the hook code for unbuffered files.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14835 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-02-20 13:19:40 +00:00
parent cfa6f566db
commit 410833d2ed
42 changed files with 841 additions and 999 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_vsnprintf.c,v 1.4 2005-02-03 16:56:16 obarthel Exp $
* $Id: stdio_vsnprintf.c,v 1.5 2005-02-20 13:19:40 obarthel Exp $
*
* :ts=4
*
@ -78,7 +78,7 @@ vsnprintf(char *buffer,size_t size,const char *format,va_list arg)
if(__check_abort_enabled)
__check_abort();
__initialize_iob(&string_iob,(HOOKFUNC)__vsnprintf_hook_entry,
__initialize_iob(&string_iob,__vsnprintf_hook_entry,
NULL,
local_buffer,sizeof(local_buffer),
-1,