view modules/ttyname_r @ 15836:46afe93343fd

modf: Use a .m4 file. * m4/modf.m4: New file. * modules/modf (Files): Add it. (configure.ac): Just invoke gl_FUNC_MODF.
author Bruno Haible <bruno@clisp.org>
date Thu, 06 Oct 2011 01:21:12 +0200
parents 9ed2584c6e17
children d28ebf7351e2
line wrap: on
line source

Description:
ttyname_r() function: Determine name of a terminal.

Files:
lib/ttyname_r.c
m4/ttyname_r.m4

Depends-on:
unistd
extensions

configure.ac:
gl_FUNC_TTYNAME_R
if test $HAVE_TTYNAME_R = 0 || test $REPLACE_TTYNAME_R = 1; then
  AC_LIBOBJ([ttyname_r])
  gl_PREREQ_TTYNAME_R
fi
gl_UNISTD_MODULE_INDICATOR([ttyname_r])

Makefile.am:

Include:
<unistd.h>

License:
LGPL

Maintainer:
Bruno Haible