Ignore:
Timestamp:
Jul 18, 2008, 11:28:30 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Implement srget on FreeBSD, which is yet another version of srefill.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2562 r2569  
    4040
    4141AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
    42 AC_CHECK_FUNCS(open64 __open64 lseek64 __lseek64 mmap64 fopen64 __fopen64 freopen64 __freopen64 dup dup2 fseeko fseeko64 __fseeko64 fsetpos64 __fsetpos64 _IO_getc getline getdelim __getdelim fgetln __srefill __filbuf map_fd memalign posix_memalign aio_read accept bind connect socket readv pread recv recvfrom recvmsg mmap valloc sigaction getpagesize getc_unlocked getchar_unlocked fgetc_unlocked fread_unlocked fgets_unlocked)
     42AC_CHECK_FUNCS(open64 __open64 lseek64 __lseek64 mmap64 fopen64 __fopen64 freopen64 __freopen64 dup dup2 fseeko fseeko64 __fseeko64 fsetpos64 __fsetpos64 _IO_getc getline getdelim __getdelim fgetln __srefill __filbuf __srget map_fd memalign posix_memalign aio_read accept bind connect socket readv pread recv recvfrom recvmsg mmap valloc sigaction getpagesize getc_unlocked getchar_unlocked fgetc_unlocked fread_unlocked fgets_unlocked)
    4343
    4444AC_CHECK_TYPES(sighandler_t, [], [],
     
    7474AC_TRY_COMPILE([#include <stdio.h>],
    7575 [FILE *fp; fp->__cnt++; fp->__ptr++],
    76  [ac_v_fp_cnt=__cnt; ac_v_fp_ptr=__ptr])
    77 AC_TRY_COMPILE([#include <stdio.h>],
    78  [FILE *fp; fp->_cnt++; fp->_ptr++],
    79  [ac_v_fp_cnt=_cnt; ac_v_fp_ptr=_ptr])
    80 AC_TRY_COMPILE([#include <stdio.h>],
    81  [FILE *fp; fp->_c++; fp->_p++],
    82  [ac_v_fp_cnt=_c; ac_v_fp_ptr=_p])
     76 [ac_v_fp_cnt=__cnt; ac_v_fp_ptr=__ptr],
     77 [AC_TRY_COMPILE([#include <stdio.h>],
     78   [FILE *fp; fp->_cnt++; fp->_ptr++],
     79   [ac_v_fp_cnt=_cnt; ac_v_fp_ptr=_ptr],
     80   [AC_TRY_COMPILE([#include <stdio.h>],
     81     [FILE *fp; fp->_c++; fp->_p++],
     82     [ac_v_fp_cnt=_c; ac_v_fp_ptr=_p],
     83     [AC_TRY_COMPILE([#include <stdio.h>],
     84       [FILE *fp; fp->_r++; fp->_p++],
     85       [ac_v_fp_cnt=_r; ac_v_fp_ptr=_p])])])])
    8386AC_MSG_RESULT($ac_v_fp_cnt/$ac_v_fp_ptr)
    8487AC_DEFINE_UNQUOTED(FILE_CNT, $ac_v_fp_cnt, [Define to the FILE::cnt member name])
Note: See TracChangeset for help on using the changeset viewer.