Edit

kc3-lang/gnulib/modules/ftruncate

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2011-09-25 14:10:58
    Hash : 5d91e956
    Message : ftruncate: Support for MSVC 9. * lib/ftruncate.c: Include errno.h, msvc-inval.h. (chsize_nothrow): New function. (chsize): Redefine as a macro. * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE. * modules/ftruncate (Depends-on): Add msvc-inval.

  • modules/ftruncate
  • Description:
    ftruncate() function: truncate an open file to a specified length.
    
    Files:
    lib/ftruncate.c
    m4/ftruncate.m4
    
    Depends-on:
    unistd
    largefile
    msvc-inval      [test $HAVE_FTRUNCATE = 0]
    
    configure.ac:
    gl_FUNC_FTRUNCATE
    if test $HAVE_FTRUNCATE = 0; then
      AC_LIBOBJ([ftruncate])
      gl_PREREQ_FTRUNCATE
    fi
    gl_UNISTD_MODULE_INDICATOR([ftruncate])
    
    Makefile.am:
    
    Include:
    <unistd.h>
    
    License:
    GPL
    
    Maintainer:
    Jim Meyering