[PATCH v2 2/2] Split __path_search into a separate file
Florian Weimer
fweimer@redhat.com
Fri Aug 26 09:47:00 GMT 2022
* Paul Eggert:
> This simplifies sharing tempname with Gnulib.
> Suggested by Bruno Haible in:
> https://lists.gnu.org/r/bug-gnulib/2022-08/msg00077.html
> * stdio-common/Makefile (routines): Add path-search.
> (CFLAGS-path-search.c): New macro, which has -fexceptions
> because tempname.c has it.
> * stdio-common/path-search.c, sysdeps/posix/path-search.c:
> New files.
> * stdio-common/tempname.c (__need_size_t): Do not define.
> No need to include stddef.h, since stdio.h declares size_t.
> (__path_search): Move to path-search.c.
> * sysdeps/posix/tempname.c:
> Don't include sys/types.h, assert.h, stddef.h; not needed.
> (P_tmpdir): Remove.
> (__secure_getenv) [_LIBC]: Remove.
> (__stat64) [!_LIBC]: Remove.
> (direxists, __path_search) [_LIBC]: Move to path-search.c.
sysdeps/posix/path-search.c is not intended to be shared with gnulib,
right? Change looks okay to me.
Thanks,
Florian
More information about the Libc-alpha
mailing list