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

version» Context lines:

pike.git/src/modules/_Stdio/efuns.c:43: Inside #if 0, #if defined(HAVE_LIBZFS_INIT) and #if defined(HAVE_LIBZFS_H)
  #ifdef HAVE_LIBZFS_INIT   #ifdef HAVE_LIBZFS_H   #include <libzfs.h>   #endif /* HAVE_LIBZFS_H */   static libzfs_handle_t *libzfs_handle;   #endif /* HAVE_LIBZFS_INIT */   #endif /* 0 */      #define sp Pike_sp    - /* #define DEBUG_FILE */ +    /* #define READDIR_DEBUG */      #ifdef __NT__      #include <winbase.h>   #include <io.h>   #include <direct.h>      /* Old versions of the headerfiles don't have this constant... */   #ifndef INVALID_SET_FILE_POINTER
pike.git/src/modules/_Stdio/efuns.c:92:    push_int64((INT64)s->st_size);    stack_pop_to_no_free (ITEM(a) + 1);    if (TYPEOF(ITEM(a)[1]) == T_OBJECT) a->type_field |= BIT_OBJECT;    break;       case S_IFDIR: ITEM(a)[1].u.integer=-2; break;   #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 = (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;   }