mirror of
https://github.com/dlang/phobos.git
synced 2025-05-08 20:19:43 +03:00
* Added declarations for struct_stat64, stat64, and fstat64.
This commit is contained in:
parent
71226e5948
commit
058fb734e3
1 changed files with 27 additions and 0 deletions
|
@ -10,6 +10,33 @@ module std.c.linux.linux;
|
||||||
|
|
||||||
public import std.c.linux.linuxextern;
|
public import std.c.linux.linuxextern;
|
||||||
public import std.c.linux.pthread;
|
public import std.c.linux.pthread;
|
||||||
|
|
||||||
|
struct struct_stat64 // distinguish it from the stat() function
|
||||||
|
{
|
||||||
|
ulong st_dev; /// device
|
||||||
|
uint __pad1;
|
||||||
|
uint st_ino; /// file serial number
|
||||||
|
uint st_mode; /// file mode
|
||||||
|
uint st_nlink; /// link count
|
||||||
|
uint st_uid; /// user ID of file's owner
|
||||||
|
uint st_gid; /// user ID of group's owner
|
||||||
|
ulong st_rdev; /// if device then device number
|
||||||
|
uint __pad2;
|
||||||
|
align(4) ulong st_size;
|
||||||
|
int st_blksize; /// optimal I/O block size
|
||||||
|
ulong st_blocks; /// number of allocated 512 byte blocks
|
||||||
|
int st_atime;
|
||||||
|
uint st_atimensec;
|
||||||
|
int st_mtime;
|
||||||
|
uint st_mtimensec;
|
||||||
|
int st_ctime;
|
||||||
|
uint st_ctimensec;
|
||||||
|
|
||||||
|
ulong st_ino64;
|
||||||
|
}
|
||||||
|
int fstat64(int, struct_stat64*);
|
||||||
|
int fstat64(in char*, struct_stat64*);
|
||||||
|
|
||||||
public import core.sys.posix.dirent;
|
public import core.sys.posix.dirent;
|
||||||
public import core.sys.posix.dlfcn;
|
public import core.sys.posix.dlfcn;
|
||||||
public import core.sys.posix.fcntl;
|
public import core.sys.posix.fcntl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue