[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openat-die module
From: |
Jim Meyering |
Subject: |
Re: openat-die module |
Date: |
Sat, 12 May 2007 10:01:47 +0200 |
"Sergey Poznyakoff" <address@hidden> wrote:
> Application developers might wish to use custom versions of
> openat_save_fail and openat_restore_fail, instead of the
> ones provided in openat-die.c. Therefore, I propose the
> following patch:
>
> 2007-05-11 Sergey Poznyakoff <address@hidden>
>
> * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die
> * modules/openat (Files): Remove openat-die.c
> (Depends-on): Add openat-die
> * modules/openat-die: New module.
Hi Sergey,
That's a fine idea.
openat-die.c was extracted from openat.c with this in mind, but
no one bothered to create the module, since we hadn't yet found
a client with that need. Do you know of such a client application?
With the change below, you're welcome to commit.
...
> Index: modules/openat-die
> ===================================================================
> --- /dev/null 1994-07-18 02:46:18.000000000 +0300
> +++ modules/openat-die 2007-05-11 21:44:03.000000000 +0300
> @@ -0,0 +1,25 @@
> +Description:
> +Report an openat failure and exit.
The description from openat-die.c is more precise:
Report a save- or restore-cwd failure in our openat replacement and then exit.
> +Files:
> +lib/openat-die.c
...
- openat-die module, Sergey Poznyakoff, 2007/05/11
- Re: openat-die module,
Jim Meyering <=