/* */
/* */
/* */
-/* (C) 1998-2011, Ullrich von Bassewitz */
+/* (C) 1998-2012, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
# include <utime.h>
#endif
#include <time.h>
-#include <sys/stat.h>
/* common */
#include "cddefs.h"
#include "exprdefs.h"
+#include "filestat.h"
#include "fname.h"
#include "symdefs.h"
#include "xmalloc.h"
* if a file has changed in the debugger, we will ignore this problem
* here.
*/
- if (stat (Name, &StatBuf) != 0) {
+ if (FileStat (Name, &StatBuf) != 0) {
Error ("Cannot stat object file `%s': %s", Name, strerror (errno));
}
/* */
/* */
/* */
-/* (C) 1998-2011, Ullrich von Bassewitz */
+/* (C) 1998-2012, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
#include <string.h>
#include <ctype.h>
#include <errno.h>
-#include <sys/types.h> /* EMX needs this */
-#include <sys/stat.h>
/* common */
#include "alignment.h"
#include "bitops.h"
#include "cddefs.h"
#include "coll.h"
+#include "filestat.h"
#include "gentype.h"
#include "intstack.h"
#include "scopedefs.h"
* here.
*/
SB_Terminate (&Name);
- if (stat (SB_GetConstBuf (&Name), &StatBuf) != 0) {
+ if (FileStat (SB_GetConstBuf (&Name), &StatBuf) != 0) {
Fatal ("Cannot stat input file `%m%p': %s", &Name, strerror (errno));
}
#include <string.h>
#include <ctype.h>
#include <errno.h>
-#include <sys/types.h> /* EMX needs this */
-#include <sys/stat.h>
/* common */
#include "addrsize.h"
#include "attrib.h"
#include "chartype.h"
#include "check.h"
+#include "filestat.h"
#include "fname.h"
#include "xmalloc.h"
* if a file has changed in the debugger, we will ignore this problem
* here.
*/
- if (stat (Name, &Buf) != 0) {
+ if (FileStat (Name, &Buf) != 0) {
Fatal ("Cannot stat input file `%s': %s", Name, strerror (errno));
}
/* */
/* */
/* */
-/* (C) 2000-2010, Ullrich von Bassewitz */
+/* (C) 2000-2012, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
/* common */
#include "check.h"
#include "coll.h"
+#include "filestat.h"
#include "fname.h"
#include "print.h"
#include "strbuf.h"
* here.
*/
struct stat Buf;
- if (stat (IF->Name, &Buf) != 0) {
+ if (FileStat (IF->Name, &Buf) != 0) {
/* Error */
Fatal ("Cannot stat `%s': %s", IF->Name, strerror (errno));
}