1. 03 May, 2018 1 commit
    • Bruno Haible's avatar
      Simplify code. Drop support for Borland C++ on Windows. · 44b65c48
      Bruno Haible authored
      Reported by Gisle Vanem <gisle.vanem@gmail.com>.
      
      * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
      'defined _WIN32'.
      * lib/canonicalize-lgpl.c: Likewise.
      * lib/classpath.c: Likewise.
      * lib/clean-temp.c: Likewise.
      * lib/csharpexec.c: Likewise.
      * lib/ctime.c: Likewise.
      * lib/dosname.h: Likewise.
      * lib/dup2.c: Likewise.
      * lib/errno.in.h: Likewise.
      * lib/error.c: Likewise.
      * lib/euidaccess.c: Likewise.
      * lib/execute.c: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/fcntl.c: Likewise.
      * lib/filename.h: Likewise.
      * lib/findprog.c: Likewise.
      * lib/flock.c: Likewise.
      * lib/fopen.c: Likewise.
      * lib/freopen.c: Likewise.
      * lib/fstat.c: Likewise.
      * lib/fsync.c: Likewise.
      * lib/gc-gnulib.c: Likewise.
      * lib/get-rusage-data.c: Likewise.
      * lib/getaddrinfo.c: Likewise.
      * lib/getdelim.c: Likewise.
      * lib/getdtablesize.c: Likewise.
      * lib/gethostname.c: Likewise.
      * lib/getlogin.c: Likewise.
      * lib/getlogin_r.c: Likewise.
      * lib/getopt.c: Likewise.
      * lib/getpagesize.c: Likewise.
      * lib/getpass.c: Likewise.
      * lib/getrusage.c: Likewise.
      * lib/gettimeofday.c: Likewise.
      * lib/glob.c: Likewise.
      * lib/inttypes.in.h: Likewise.
      * lib/isapipe.c: Likewise.
      * lib/javaexec.c: Likewise.
      * lib/link.c: Likewise.
      * lib/localcharset.c: Likewise.
      * lib/localename.h: Likewise.
      * lib/localename.c: Likewise.
      * lib/localtime.c: Likewise.
      * lib/lseek.c: Likewise.
      * lib/mbsinit.c: Likewise.
      * lib/mkdir.c: Likewise.
      * lib/msvc-nothrow.h: Likewise.
      * lib/nanosleep.c: Likewise.
      * lib/nl_langinfo.c: Likewise.
      * lib/nonblocking.c: Likewise.
      * lib/nproc.c: Likewise.
      * lib/open.c: Likewise.
      * lib/openpty.c: Likewise.
      * lib/pathmax.h: Likewise.
      * lib/pipe-filter-aux.c: Likewise.
      * lib/pipe-filter-gi.c: Likewise.
      * lib/pipe-filter-ii.c: Likewise.
      * lib/pipe.c: Likewise.
      * lib/pipe2.c: Likewise.
      * lib/poll.c: Likewise.
      * lib/popen.c: Likewise.
      * lib/posix_openpt.c: Likewise.
      * lib/printf-parse.c: Likewise.
      * lib/progreloc.c: Likewise.
      * lib/putenv.c: Likewise.
      * lib/read.c: Likewise.
      * lib/relocatable.c: Likewise.
      * lib/rename.c: Likewise.
      * lib/same-inode.h: Likewise.
      * lib/secure_getenv.c: Likewise.
      * lib/select.c: Likewise.
      * lib/sethostname.c: Likewise.
      * lib/setlocale.c: Likewise.
      * lib/sigaction.c: Likewise.
      * lib/sigprocmask.c: Likewise.
      * lib/sleep.c: Likewise.
      * lib/spawn-pipe.h: Likewise.
      * lib/spawn-pipe.c: Likewise.
      * lib/spawni.c: Likewise.
      * lib/stat-time.h: Likewise.
      * lib/stat-w32.c: Likewise.
      * lib/stat.c: Likewise.
      * lib/stdio.in.h: Likewise.
      * lib/stdio-impl.h: Likewise.
      * lib/stdio-read.c: Likewise.
      * lib/stdio-write.c: Likewise.
      * lib/stdlib.in.h: Likewise.
      * lib/strerror_r.c: Likewise.
      * lib/strftime-fixes.c: Likewise.
      * lib/sys_stat.in.h: Likewise.
      * lib/sys_types.in.h: Likewise.
      * lib/sys_wait.in.h : Likewise.
      * lib/system-quote.h: Likewise.
      * lib/system-quote.c: Likewise.
      * lib/tmpdir.c: Likewise.
      * lib/tzset.c: Likewise.
      * lib/uname.c: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/utime.in.h: Likewise.
      * lib/utime.c: Likewise.
      * lib/utimecmp.c: Likewise.
      * lib/utimens.c: Likewise.
      * lib/vasnprintf.c: Likewise.
      * lib/vma-iter.h: Likewise.
      * lib/vma-iter.c: Likewise.
      * lib/wait-process.c: Likewise.
      * lib/wcsftime.c: Likewise.
      * lib/wctype.in.h: Likewise.
      * lib/write.c: Likewise.
      * tests/nap.h: Likewise.
      * tests/test-cloexec.c: Likewise.
      * tests/test-dup-safer.c: Likewise.
      * tests/test-dup2.c: Likewise.
      * tests/test-dup3.c: Likewise.
      * tests/test-fcntl.c: Likewise.
      * tests/test-get-rusage-data.c: Likewise.
      * tests/test-getaddrinfo.c: Likewise.
      * tests/test-getlogin.h: Likewise.
      * tests/test-isatty.c: Likewise.
      * tests/test-localename.c: Likewise.
      * tests/test-mbrtowc-w32.c: Likewise.
      * tests/test-nonblocking.c: Likewise.
      * tests/test-nonblocking-pipe-main.c: Likewise.
      * tests/test-nonblocking-socket-main.c: Likewise.
      * tests/test-nonblocking-socket.h: Likewise.
      * tests/test-pipe.c: Likewise.
      * tests/test-pipe2.c: Likewise.
      * tests/test-poll.c: Likewise.
      * tests/test-pthread_sigmask1.c: Likewise.
      * tests/test-select.h: Likewise.
      * tests/test-sethostname2.c: Likewise.
      * tests/test-sigprocmask.c: Likewise.
      * tests/test-spawn-pipe-child.c: Likewise.
      * tests/test-stat-time.c: Likewise.
      * tests/test-system-quote-main.c: Likewise.
      * tests/test-utimens-common.h: Likewise.
      * tests/test-wcrtomb-w32.c: Likewise.
      * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
      * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
      * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
      * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
      * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
      * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
      * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
      * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
      * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
      * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
      * m4/nocrash.m4 (GL_NOCRASH): Likewise.
      * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
      * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
      * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
      * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
      * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
      44b65c48
  2. 01 Jan, 2018 1 commit
  3. 13 Jul, 2017 1 commit
    • Bruno Haible's avatar
      Improve cross-compilation guesses for native Windows. · a9b04535
      Bruno Haible authored
      * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
      Windows.
      * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
      * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
      * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
      * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
      * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
      * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
      * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
      * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
      * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
      * m4/dup.m4 (gl_FUNC_DUP): Likewise.
      * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
      * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
      * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
      * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
      * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
      * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
      * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
      * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
      * m4/float_h.m4 (gl_FLOAT_H): Likewise.
      * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
      * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
      * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
      * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
      * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
      * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
      * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
      * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
      * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
      * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
      * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
      * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
      * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
      * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
      * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
      * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
      * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
      * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
      * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
      * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
      * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
      * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
      * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
      * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
      * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
      * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
      * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
      * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
      * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
      * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
      * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
      * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
      * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
      * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
      * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
      * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
      * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
      * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
      * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
      * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
      * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
      * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
      * m4/modf.m4 (gl_FUNC_MODF): Likewise.
      * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
      * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
      * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
      * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
      * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
      * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
      gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
      gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
      * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
      * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
      * m4/regex.m4 (gl_REGEX): Likewise.
      * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
      * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
      gl_FUNC_REMAINDERF_WORKS): Likewise.
      * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
      gl_FUNC_REMAINDERL_WORKS): Likewise.
      * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
      * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
      * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
      * m4/round.m4 (gl_FUNC_ROUND): Likewise.
      * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
      * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
      * m4/signbit.m4 (gl_SIGNBIT): Likewise.
      * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
      * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
      * m4/stdint.m4 (gl_STDINT_H): Likewise.
      * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
      * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
      * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
      * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
      * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
      * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
      * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
      * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
      * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
      * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
      * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
      * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
      * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
      * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
      * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
      * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
      * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
      Likewise.
      * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
      * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
      Windows. Enable also on Autoconf 2.70.
      * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
      gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
      gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
      gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
      gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
      gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
      for native Windows.
      (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
      gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
      a9b04535
  4. 01 Jan, 2017 1 commit
    • Paul Eggert's avatar
      version-etc: new year · a3fd683d
      Paul Eggert authored
      * build-aux/gendocs.sh (version):
      * doc/gendocs_template:
      * doc/gendocs_template_min:
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR):
      Update copyright dates by hand in templates and the like.
      * all files: Run 'make update-copyright'.
      a3fd683d
  5. 27 Nov, 2016 1 commit
    • Mike Frysinger's avatar
      ptsname_r: leverage AC_HEADER_MAJOR · b799aee9
      Mike Frysinger authored
      Like the mountlist module, ptsname_r uses makedev/major/minor,
      so use the existing autoconf macro which will probe some headers
      for use and set up some defines.
      
      * lib/ptsname_r.c: Likewise.
      [__sun]: Delete sys/sysmacros.h include.
      [_AIX || __osf__]: Likewise.
      * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
      b799aee9
  6. 01 Jan, 2016 1 commit
    • Paul Eggert's avatar
      version-etc: new year · 71090a2a
      Paul Eggert authored
      * build-aux/gendocs.sh (version):
      * doc/gendocs_template:
      * doc/gendocs_template_min:
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR):
      Update copyright dates by hand in templates and the like.
      * all files: Run 'make update-copyright'.
      71090a2a
  7. 01 Jan, 2015 1 commit
    • Paul Eggert's avatar
      version-etc: new year · b9bfe784
      Paul Eggert authored
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
      * all files: Run 'make update-copyright'.
      b9bfe784
  8. 01 Jan, 2014 1 commit
  9. 01 Jan, 2013 1 commit
  10. 24 Jun, 2012 1 commit
    • Bruno Haible's avatar
      ptsname_r: Fix test failures on IRIX, Solaris. · f68069b3
      Bruno Haible authored
      * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
      errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
      accordingly.
      * lib/ptsname_r.c: Include <fcntl.h>.
      (__ptsname_r): When isatty returned false, then on IRIX, Solaris
      set errno if fd is invalid.
      * tests/test-isatty.c (main): Update comments.
      f68069b3
  11. 01 Jan, 2012 1 commit
  12. 10 Nov, 2011 1 commit
    • Bruno Haible's avatar
      ptsname_r: Avoid compilation error on OSF/1 5.1. · f5562fca
      Bruno Haible authored
      * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
      * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
      * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
      function is not declared or incompatibly declared.
      * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
      * modules/ptsname_r (Depends-on, configure.ac): Update.
      * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
      f5562fca
  13. 09 Nov, 2011 1 commit
    • Eric Blake's avatar
      ptsname_r: new module · 78232883
      Eric Blake authored
      For now, this replacement focuses solely on compilation
      compatibility, and assumes that isatty() and ttyname_r() work
      on a master side pty; if this assumption fails, or if
      thread-safety is also required, then a later patch can follow
      the lead of strerror_r.c in wrapping the system ptsname()
      with a lock.
      
      * modules/ptsname_r: New module.
      * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
      * lib/ptsname.c (__ptsname_r): Split...
      * lib/ptsname_r.c: ...into new file.
      * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
      (gl_STDLIB_H_DEFAULTS): Set witness defaults.
      * modules/stdlib (Makefile.am): Substitute witnesses.
      * lib/stdlib.in.h (ptsname_r): Declare it.
      * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
      * MODULES.html.sh (Misc): Likewise.
      * modules/ptsname (Depends-on): Alter dependency.
      * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
      Signed-off-by: 's avatarEric Blake <eblake@redhat.com>
      78232883
  14. 15 Jun, 2011 1 commit
  15. 01 Jan, 2011 1 commit
  16. 21 Mar, 2010 1 commit