[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH] fchdir: move fd shadowing into fd-hook
From: |
Bastien ROUCARIES |
Subject: |
Re: [RFC PATCH] fchdir: move fd shadowing into fd-hook |
Date: |
Thu, 28 Apr 2011 13:43:53 +0200 |
> Now there are two ways to proceed:
>
> a) Formalize the notion of a set of :AROUND methods for 'dup', 'dup2',
> 'dup3', 'fcntl', 'close', in such a way that the first and third code
> can share the same infrastructure. That would mean a file fd-hook2.c,
> similar to fd-hook.c but just with other functions to hook in.
>
> b) Search for all uses of "#if REPLACE_FCHDIR" and add a
> "#if WINDOWS_NONBLOCKING" section next to it (before or after, does not
> matter, since they operate independently).
And if we overwrite socket for UNIX behavior ? The b approach will work ?
Bastien