ARCHIVE_ENTRY_TIME(3) | FreeBSD Library Functions Manual | ARCHIVE_ENTRY_TIME(3) |
名称
archive_entry_atime, archive_entry_atime_nsec, archive_entry_atime_is_set, archive_entry_set_atime, archive_entry_unset_atime, archive_entry_birthtime, archive_entry_birthtime_nsec, archive_entry_birthtime_is_set, archive_entry_set_birthtime, archive_entry_unset_birthtime, archive_entry_ctime, archive_entry_ctime_nsec, archive_entry_ctime_is_set, archive_entry_set_ctime, archive_entry_unset_ctime, archive_entry_mtime, archive_entry_mtime_nsec, archive_entry_mtime_is_set, archive_entry_set_mtime, archive_entry_unset_mtime, — アーカイブエントリの記述で時間を操作するための関数ライブラリ
ストリーミングアーカイブライブラリ (libarchive, -larchive)書式
#include < archive_entry.h> time_t
archive_entry_atime( struct archive_entry *a);
long
archive_entry_atime_nsec( struct archive_entry *a);
int
archive_entry_atime_is_set( struct archive_entry *a);
void
archive_entry_set_atime( struct archive_entry *a, time_t sec, long nanosec);
void
archive_entry_unset_atime( struct archive_entry *a);
time_t
archive_entry_birthtime( struct archive_entry *a);
long
archive_entry_birthtime_nsec( struct archive_entry *a);
int
archive_entry_birthtime_is_set( struct archive_entry *a);
void
archive_entry_set_birthtime( struct archive_entry *a, time_t sec, long nanosec);
void
archive_entry_unset_birthtime( struct archive_entry *a);
time_t
archive_entry_ctime( struct archive_entry *a);
long
archive_entry_ctime_nsec( struct archive_entry *a);
int
archive_entry_ctime_is_set( struct archive_entry *a);
void
archive_entry_set_ctime( struct archive_entry *a, time_t sec, long nanosec);
void
archive_entry_unset_ctime( struct archive_entry *a);
time_t
archive_entry_mtime( struct archive_entry *a);
long
archive_entry_mtime_nsec( struct archive_entry *a);
int
archive_entry_mtime_is_set( struct archive_entry *a);
void
archive_entry_set_mtime( struct archive_entry *a, time_t sec, long nanosec);
void
archive_entry_unset_mtime( struct archive_entry *a);
解説
これらの関数は、 archive_entry の時間フィールドを作成し操作します。ポートされる時間フィールドは、atime (アクセス時刻)、birthtime (生成時刻)、 ctime (inode 特性が変更された最後の時刻) と mtime (更新時刻) です。libarchive(3) は、高分解能インタフェースを提供しています。タイムスタンプは、(アーカイブのための) アーカイブ形式または (復旧のための) ファイルシステムケーパビリティに依存して自動的に切り詰められます。
すべてのタイムスタンプフィールドは、オプションです。失われたものとして対応するフィールドをマークするために XXX_unset() 関数を使用することができます。 XXX_is_set() を使用して現在の状態を問い合わせることができます。 1 秒と 0 のナノ秒がある時間フィールドを未設定とします。
歴史
libarchive ライブラリは、 FreeBSD 5.3 ではじめて登場しました。作者
libarchive ライブラリは、 <kientzle@acm.org>によって書かれました。February 2, 2012 | FreeBSD |