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

version» Context lines:

pike.git/src/modules/_Stdio/efuns.c:761: Inside #if defined(HAVE_STATFS) and #if defined(HAVE_STRUCT_STATFS)
   push_static_text("bfree"); push_int(st.f_bfree);    push_static_text("files"); push_int(st.f_files);    push_static_text("ffree"); push_int(st.f_ffree);    push_static_text("favail"); push_int(st.f_ffree);    num_fields += 6;   #ifdef HAVE_STATFS_F_BAVAIL    push_static_text("bavail"); push_int(st.f_bavail);    num_fields++;   #endif /* HAVE_STATFS_F_BAVAIL */    push_static_text("fstype"); + #ifdef HAVE_STATFS_F_FSTYPENAME +  push_text(st.f_fstypename); + #else    switch(st.f_type) {   #ifdef BTRFS_SUPER_MAGIC    case BTRFS_SUPER_MAGIC: push_static_text("btrfs"); break;   #endif /* BTRFS_SUPER_MAGIC */   #ifdef EXT2_SUPER_MAGIC    case EXT2_SUPER_MAGIC: push_static_text("ext"); break;   #endif /* EXT2_SUPER_MAGIC */   #ifdef ISOFS_SUPER_MAGIC    case ISOFS_SUPER_MAGIC: push_static_text("isofs"); break;   #endif /* ISOFS_SUPER_MAGIC */
pike.git/src/modules/_Stdio/efuns.c:809: Inside #if defined(HAVE_STATFS) and #if defined(TMPFS_MAGIC)
  #ifdef TMPFS_MAGIC    case TMPFS_MAGIC: push_static_text("tmpfs"); break;   #endif /* TMPFS_MAGIC */   #ifdef XENFS_SUPER_MAGIC    case XENFS_SUPER_MAGIC: push_static_text("xenfs"); break;   #endif /* XENFS_SUPER_MAGIC */    default:    push_int(st.f_type);    break;    } + #endif /* HAVE_STATFS_F_FSTYPENAME */    num_fields++;   #else /* !HAVE_STRUCT_STATFS */   #ifdef HAVE_STRUCT_FS_DATA    /* ULTRIX */    push_static_text("blocksize"); push_int(st.fd_bsize);    push_static_text("blocks"); push_int(st.fd_btot);    push_static_text("bfree"); push_int(st.fd_bfree);    push_static_text("bavail"); push_int(st.fd_bfreen);    num_fields += 4;   #else /* !HAVE_STRUCT_FS_DATA */