mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 08:53:39 +02:00
glocalfileinfo: Support STX_BTIME for G_FILE_ATTRIBUTE_TIME_CREATED
If `statx()` is supported, query it for the file creation time and use that if returned. Incorporating some minor code rearrangement by Philip Withnall <withnall@endlessm.com>. Fixes: #1970
This commit is contained in:
committed by
Philip Withnall
parent
60eefd4de9
commit
18aaf33cf1
@@ -540,7 +540,8 @@ typedef struct _GFileInfoClass GFileInfoClass;
|
||||
* and contains the time since the file was created, in seconds since the UNIX
|
||||
* epoch.
|
||||
*
|
||||
* This corresponds to the NTFS ctime.
|
||||
* This may correspond to Linux stx_btime, FreeBSD st_birthtim, NetBSD
|
||||
* st_birthtime or NTFS ctime.
|
||||
**/
|
||||
#define G_FILE_ATTRIBUTE_TIME_CREATED "time::created" /* uint64 */
|
||||
|
||||
|
Reference in New Issue
Block a user