pike.git / src / modules / _Stdio / efuns.c

version» Context lines:

pike.git/src/modules/_Stdio/efuns.c:107: Inside #if defined(S_IFLNK)
  #ifdef S_IFLNK    case S_IFLNK: ITEM(a)[1].u.integer=-3; break;   #endif    default:   #ifdef DEBUG_FILE    fprintf(stderr, "encode_stat(): mode:%ld\n", (long)S_IFMT & s->st_mode);   #endif /* DEBUG_FILE */    ITEM(a)[1].u.integer=-4;    break;    } -  ITEM(a)[2].u.integer = DO_NOT_WARN ((INT_TYPE) s->st_atime); -  ITEM(a)[3].u.integer = DO_NOT_WARN ((INT_TYPE) s->st_mtime); -  ITEM(a)[4].u.integer = DO_NOT_WARN ((INT_TYPE) s->st_ctime); +  ITEM(a)[2].u.integer = (INT_TYPE) s->st_atime; +  ITEM(a)[3].u.integer = (INT_TYPE) s->st_mtime; +  ITEM(a)[4].u.integer = (INT_TYPE) s->st_ctime;    ITEM(a)[5].u.integer=s->st_uid;    ITEM(a)[6].u.integer=s->st_gid;    return a;   }      #if defined(HAVE_FSETXATTR) && defined(HAVE_FGETXATTR) && defined(HAVE_FLISTXATTR)   /*! @decl array(string) listxattr( string file, void|int(0..1) symlink )    *!    *! Return an array of all extended attributes set on the file    */
pike.git/src/modules/_Stdio/efuns.c:489:    pop_n_elems(args);    push_int(0);    return;    }      #ifdef __NT__    {    HANDLE h = CreateFile(str->str, GENERIC_WRITE,    FILE_SHARE_READ|FILE_SHARE_WRITE,    NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); -  if(h == DO_NOT_WARN(INVALID_HANDLE_VALUE)) { +  if(h == INVALID_HANDLE_VALUE) {    errno = GetLastError();    res=-1;    } else {    LONG high;    DWORD err;   #ifdef INT64 -  high = DO_NOT_WARN ((LONG) (len >> 32)); +  high = (LONG) (len >> 32);    len &= ((INT64) 1 << 32) - 1;   #else    high = 0;   #endif -  if (SetFilePointer(h, DO_NOT_WARN ((LONG) len), &high, FILE_BEGIN) == +  if (SetFilePointer(h, (LONG) len, &high, FILE_BEGIN) ==    INVALID_SET_FILE_POINTER &&    (err = GetLastError()) != NO_ERROR) {    errno = err;    res = -1;    }    else if (!SetEndOfFile(h)) {    errno = GetLastError();    res=-1;    }    else
pike.git/src/modules/_Stdio/efuns.c:1090: Inside #if defined(__NT__)
   }      #ifdef READDIR_DEBUG    fprintf(stderr, "FindFirstFile(\"%S\")...\n", STR1(sb.s));   #endif /* READDIR_DEBUG */       dir = FindFirstFileW(STR1(sb.s), &d);       free_string_builder(&sb);    -  if (dir == DO_NOT_WARN(INVALID_HANDLE_VALUE)) { +  if (dir == INVALID_HANDLE_VALUE) {    int err = GetLastError();   #ifdef READDIR_DEBUG    fprintf(stderr, " INVALID_HANDLE_VALUE, error %d\n", err);   #endif /* READDIR_DEBUG */       pop_n_elems(args);    if (err == ERROR_FILE_NOT_FOUND) {    /* Normally there should at least be a "." entry, so this seldom    * happens. But it seems unwise to count on it, considering this    * being Windows and all..