bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about the kernel_stat structure in glibc


From: Shen Feng
Subject: Question about the kernel_stat structure in glibc
Date: Mon, 12 Jan 2004 09:34:33 +0800

Hello,

I have a question about the kernel_stat in glibc.
In Linux kernel 2.6, device number will be extended from 16-bit to 32-bit. All 
utilities and libraries should make corresponding extension for this new 
feature in kernel 2.6. 

In sysdeps/unix/sysv/linux/kernel_stat.h, the stat structure passed to the 
kernel is defined as following,

/* Definition of `struct stat' used in the kernel..  */
struct kernel_stat
  {
    unsigned short int st_dev;
    unsigned short int __pad1;
#define _HAVE___PAD1
    unsigned long int st_ino;
    unsigned short int st_mode;
    unsigned short int st_nlink;
    unsigned short int st_uid;
    unsigned short int st_gid;
    unsigned short int st_rdev;
    unsigned short int __pad2;
#define _HAVE___PAD2
    unsigned long int st_size;
    unsigned long int st_blksize;
    unsigned long int st_blocks;
    struct timespec st_atim;
    struct timespec st_mtim;
    struct timespec st_ctim;
    unsigned long int __unused4;
#define _HAVE___UNUSED4
    unsigned long int __unused5;
#define _HAVE___UNUSED5
  }; 

The member "st_dev" and "st_rdev" is still define as "unsigned short int". Is 
there any problem about this definition? 

Regards,
Shen Feng
--------------------------------------------------
Dept. of Technology and Development 
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No. 16-5, Guanzhou Rd., Nanjing, P.R.China 
PHONE: +86+25-86630523-633 
FUJITSU INTERNAL: 79955-633 
FAX: +86+25-83317685  
Mail: address@hidden 
--------------------------------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]