Menu

Commit [r153]  Maximize  Restore  History

- 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.

obarthel 2005-02-20

1 2 > >> (Page 1 of 2)
changed /trunk/library/GNUmakefile.68k
changed /trunk/library/GNUmakefile.os4
changed /trunk/library/changes
changed /trunk/library/fcntl_close.c
changed /trunk/library/fcntl_fcntl.c
changed /trunk/library/fcntl_lseek.c
changed /trunk/library/fcntl_open.c
changed /trunk/library/fcntl_read.c
changed /trunk/library/fcntl_write.c
changed /trunk/library/smakefile
changed /trunk/library/socket_accept.c
changed /trunk/library/socket_headers.h
changed /trunk/library/socket_hook_entry.c
changed /trunk/library/socket_init_exit.c
changed /trunk/library/socket_socket.c
changed /trunk/library/stat_fstat.c
changed /trunk/library/stdio_dropiobreadbuffer.c
changed /trunk/library/stdio_duplicate_fd.c
changed /trunk/library/stdio_fclose.c
changed /trunk/library/stdio_fdhookentry.c
changed /trunk/library/stdio_filliobreadbuffer.c
changed /trunk/library/stdio_flushiobwritebuffer.c
changed /trunk/library/stdio_fseek.c
changed /trunk/library/stdio_ftell.c
changed /trunk/library/stdio_headers.h
/trunk/library/GNUmakefile.68k Diff Switch to side-by-side view
Loading...
/trunk/library/GNUmakefile.os4 Diff Switch to side-by-side view
Loading...
/trunk/library/changes Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_close.c Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_fcntl.c Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_lseek.c Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_open.c Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_read.c Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_write.c Diff Switch to side-by-side view
Loading...
/trunk/library/smakefile Diff Switch to side-by-side view
Loading...
/trunk/library/socket_accept.c Diff Switch to side-by-side view
Loading...
/trunk/library/socket_headers.h Diff Switch to side-by-side view
Loading...
/trunk/library/socket_hook_entry.c Diff Switch to side-by-side view
Loading...
/trunk/library/socket_init_exit.c Diff Switch to side-by-side view
Loading...
/trunk/library/socket_socket.c Diff Switch to side-by-side view
Loading...
/trunk/library/stat_fstat.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_dropiobreadbuffer.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_duplicate_fd.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fclose.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fdhookentry.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_filliobreadbuffer.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_flushiobwritebuffer.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fseek.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_ftell.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_headers.h Diff Switch to side-by-side view
Loading...
1 2 > >> (Page 1 of 2)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.