Branch: Tag:

2003-03-27

2003-03-27 18:25:09 by Martin Stjernholm <mast@lysator.liu.se>

Fixes to get 64 bit stat on NT.

Rev: src/backend.cmod:1.39
Rev: src/fdlib.c:1.57
Rev: src/fdlib.h:1.44
Rev: src/modules/HTTPLoop/filesystem.c:1.9
Rev: src/modules/Image/font.c:1.79
Rev: src/modules/files/efuns.c:1.121
Rev: src/modules/files/file.c:1.263
Rev: src/modules/files/file.h:1.25
Rev: src/modules/files/sendfile.c:1.60
Rev: src/modules/files/stat.c:1.26
Rev: src/modules/spider/spider.c:1.122
Rev: src/modules/system/memory.c:1.22
Rev: src/object.c:1.230
Rev: src/post_modules/Shuffler/b_source_normal_file.c:1.9
Rev: src/uncompressor.c:1.7

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: font.c,v 1.78 2003/02/20 13:22:40 grubba Exp $ + || $Id: font.c,v 1.79 2003/03/27 18:25:08 mast Exp $   */      #include "global.h"
242:      static INLINE off_t file_size(int fd)   { -  struct stat tmp; +  PIKE_STAT_T tmp;    if((!fd_fstat(fd, &tmp)) &&    ( tmp.st_mode & S_IFMT) == S_IFREG)    return (off_t)tmp.st_size;