summaryrefslogtreecommitdiff
path: root/modules/isatty
blob: dce8551c9fa6e84d95912f47388fd9806641efa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description:
Test whether a file descriptor is a terminal.

Files:
lib/isatty.c
m4/isatty.m4

Depends-on:
unistd
msvc-inval      [test $REPLACE_ISATTY = 1]
msvc-nothrow    [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