• Show log

    Commit

  • Hash : b1c67ccf
    Author : Bruno Haible
    Date : 2024-08-19T16:20:08

    hasmntopt: New module.
    
    * lib/mntent.in.h: Add config.h check.
    (hasmntopt): New declaration.
    * lib/hasmntopt.c: New file, based on glibc/misc/mntent_r.c.
    * m4/hasmntopt.m4: New file.
    * m4/mntent_h.m4 (gl_MNTENT_H): Test whether hasmntopt is declared.
    (gl_MNTENT_H_REQUIRE_DEFAULTS): Initialize GNULIB_HASMNTOPT.
    (gl_MNTENT_H_DEFAULTS): Initialize HAVE_HASMNTOPT, HAVE_SETMNTENT,
    REPLACE_HASMNTOPT.
    * modules/mntent (Depends-on): Add snippet/arg-nonnull, snippet/c++defs,
    snippet/warn-on-use.
    (Makefile.am): Insert c++defs.h, arg-nonnull.h, warn-on-use.h into
    mntent.h. Substitute GNULIB_HASMNTOPT, HAVE_HASMNTOPT, HAVE_SETMNTENT,
    REPLACE_HASMNTOPT.
    * modules/hasmntopt: New file.
    * doc/glibc-functions/hasmntopt.texi: Mention the new module and the
    musl bug.
    * doc/glibc-functions/setmntent.texi: Update info about Android.
    * doc/glibc-functions/getmntent_r.texi: Likewise.
    * doc/glibc-functions/endmntent.texi: Likewise.