Branch
Hash :
26a37f80
Author :
Date :
2025-01-03T10:38:58
gen-uni-tables, get-rusage-data, isatty: Use str_endswith. * lib/gen-uni-tables.c (fill_attributes): Use str_endswith. * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Likewise. * lib/isatty.c (IsCygwinConsoleHandle): Likewise. * modules/gen-uni-tables (Depends-on): Add str_endswith. * modules/get-rusage-data (Depends-on): Likewise. * modules/isatty (Depends-on): Likewise.
Description:
Test whether a file descriptor is a terminal.
Files:
lib/isatty.c
m4/isatty.m4
Depends-on:
unistd-h
msvc-inval [test $REPLACE_ISATTY = 1]
msvc-nothrow [test $REPLACE_ISATTY = 1]
str_endswith [test $REPLACE_ISATTY = 1]
configure.ac:
gl_FUNC_ISATTY
gl_CONDITIONAL([GL_COND_OBJ_ISATTY], [test $REPLACE_ISATTY = 1])
AM_COND_IF([GL_COND_OBJ_ISATTY], [
gl_PREREQ_ISATTY
])
gl_UNISTD_MODULE_INDICATOR([isatty])
Makefile.am:
if GL_COND_OBJ_ISATTY
lib_SOURCES += isatty.c
endif
Include:
<unistd.h>
License:
LGPLv2+
Maintainer:
all