view modules/sys_socket-tests @ 15979:69cc1dcd696b

unlockpt: Detect invalid argument. * lib/unlockpt.c: Include <fcntl.h>. (unlockpt): Check whether fd is valid, using fcntl(). * modules/unlockpt (Depends-on): Add fcntl-h.
author Bruno Haible <bruno@clisp.org>
date Fri, 21 Oct 2011 02:22:04 +0200
parents d7eed0b7ef06
children
line wrap: on
line source

Files:
tests/test-sys_socket.c

Depends-on:
sys_socket-c++-tests

configure.ac:
AC_CHECK_FUNCS_ONCE([shutdown])

Makefile.am:
TESTS += test-sys_socket
check_PROGRAMS += test-sys_socket