399 |
do { \ |
do { \ |
400 |
ssize_t __n; \ |
ssize_t __n; \ |
401 |
\ |
\ |
402 |
result=(ioctl(filedescriptor,FIONREAD,(char*)&n)==0)?TARGET_NATIVE_OK:TARGET_NATIVE_ERROR; \ |
result=(ioctl(filedescriptor,FIONREAD,(char*)&__n)==0)?TARGET_NATIVE_OK:TARGET_NATIVE_ERROR; \ |
403 |
length=TARGET_NATIVE_MATH_INT_INT32_TO_INT64(n); \ |
length=TARGET_NATIVE_MATH_INT_INT32_TO_INT64(__n); \ |
404 |
} while (0) |
} while (0) |
405 |
#elif defined(HAVE_FSTAT) |
#elif defined(HAVE_FSTAT) |
406 |
#include <sys/types.h> |
#include <sys/types.h> |
624 |
#include <sys/types.h> |
#include <sys/types.h> |
625 |
#include <sys/stat.h> |
#include <sys/stat.h> |
626 |
#include <unistd.h> |
#include <unistd.h> |
627 |
#include <utime.h> |
#ifdef HAVE_UTIME |
628 |
|
#include <utime.h> |
629 |
|
#elif HAVE_SYS_UTIME |
630 |
|
#include <sys/utime.h> |
631 |
|
#else |
632 |
|
#error utime.h not found. Please check configuration. |
633 |
|
#endif |
634 |
#define TARGET_NATIVE_FILE_SET_LAST_MODIFIED(filename,time,result) \ |
#define TARGET_NATIVE_FILE_SET_LAST_MODIFIED(filename,time,result) \ |
635 |
do { \ |
do { \ |
636 |
struct stat __statBuffer; \ |
struct stat __statBuffer; \ |