Mercurial > hg > octave-nkf > gnulib-hg
changeset 8903:33db9cbd68d7
Explicitly close file descriptors where needed.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 31 May 2007 01:09:03 +0000 |
parents | eb07e44564a4 |
children | 51fbf26a13ed |
files | ChangeLog tests/test-lseek.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-30 Bruno Haible <bruno@clisp.org> + + * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before + assuming that they are closed. Needed on HP-UX 11. + 2007-05-29 Bruno Haible <bruno@clisp.org> Fix a problem with #include_next.
--- a/tests/test-lseek.c +++ b/tests/test-lseek.c @@ -72,6 +72,10 @@ break; case '2': /* closed */ + /* Explicitly close file descriptors 0 and 1. The <&- and >&- in the + invoking shell are not enough on HP-UX. */ + close (0); + close (1); errno = 0; ASSERT (lseek (0, (off_t)0, SEEK_CUR) == -1); ASSERT (errno == EBADF);