Ignore:
Timestamp:
Jul 3, 2005, 5:48:26 AM (20 years ago)
Author:
bird
Message:

..

Location:
trunk/src/libctests/glibc/io
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/io/bug-ftw4.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2175 r2176  
    2626#include <sys/stat.h>
    2727#include <unistd.h>
     28
     29#ifndef HAVE_64BIT_FILEIO_TYPES
     30#define ftw64 ftw
     31#define stat64 stat
     32#endif
    2833
    2934static int cb_called;
  • trunk/src/libctests/glibc/io/ftwtest.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2175 r2176  
    77#include <unistd.h>
    88#include <sys/stat.h>
     9#ifdef FTW_CONTINUE
     10#define FTW_CONTINUE 0
     11#endif
     12#ifdef FTW_STOP
     13#define FTW_STOP 1
     14#endif
     15
    916
    1017
     
    5562  printf (", level = %d\n", f->level);
    5663
     64#ifdef FTW_ACTIONRETVAL
    5765  if (skip_siblings && strcmp (name + f->base, skip_siblings) == 0)
    5866    return FTW_SKIP_SIBLINGS;
     
    6068  if (skip_subtree && strcmp (name + f->base, skip_subtree) == 0)
    6169    return FTW_SKIP_SUBTREE;
     70#endif
    6271
    6372  return do_exit ? 26 : FTW_CONTINUE;
     
    8897  if (skip_subtree || skip_siblings)
    8998    {
     99#ifdef FTW_ACTIONRETVAL
    90100      flag |= FTW_ACTIONRETVAL;
     101#endif
    91102      if (do_exit)
    92103        {
  • trunk/src/libctests/glibc/io/test-lfs.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2175 r2176  
    2727#include <errno.h>
    2828#include <sys/resource.h>
     29#ifndef HAVE_64BIT_FILEIO_TYPES
     30#define getrlimit64     getrlimit
     31#define setrlimit64     setrlimit
     32#define mkstemp64       mkstemp
     33#define fopen64         fopen
     34#define fstat64         fstat
     35#define stat64          stat
     36#define fseeko64        fseeko
     37#define ftello64        ftello
     38#define lseek64         lseek
     39#define rlimit64        rlimit
     40#define off64_t         off_t
     41#endif
     42
    2943
    3044/* Prototype for our test function.  */
  • trunk/src/libctests/glibc/io/test-utime.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2175 r2176  
    5151  /* Test utime with arg */
    5252  ut.actime = 500000000;
    53   ut.modtime = 500000001;
     53  ut.modtime = 500000002; /* OS/2 have a two-second resolution api */
    5454  if (utime (file, &ut))
    5555    {
  • trunk/src/libctests/glibc/io/tst-fcntl.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2175 r2176  
    2525#include <unistd.h>
    2626#include <sys/stat.h>
    27 
     27#ifndef HAVE_64BIT_FILEIO_TYPES
     28#define stat64 stat
     29#define fstat64 fstat
     30#endif
    2831
    2932/* Prototype for our test function.  */
Note: See TracChangeset for help on using the changeset viewer.