18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * include/asm-xtensa/stat.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 68c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 78c2ecf20Sopenharmony_ci * for more details. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Copyright (C) 2001 - 2007 Tensilica Inc. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef _XTENSA_STAT_H 138c2ecf20Sopenharmony_ci#define _XTENSA_STAT_H 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define STAT_HAVE_NSEC 1 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistruct stat { 188c2ecf20Sopenharmony_ci unsigned long st_dev; 198c2ecf20Sopenharmony_ci unsigned long st_ino; 208c2ecf20Sopenharmony_ci unsigned int st_mode; 218c2ecf20Sopenharmony_ci unsigned int st_nlink; 228c2ecf20Sopenharmony_ci unsigned int st_uid; 238c2ecf20Sopenharmony_ci unsigned int st_gid; 248c2ecf20Sopenharmony_ci unsigned long st_rdev; 258c2ecf20Sopenharmony_ci long st_size; 268c2ecf20Sopenharmony_ci unsigned long st_blksize; 278c2ecf20Sopenharmony_ci unsigned long st_blocks; 288c2ecf20Sopenharmony_ci unsigned long st_atime; 298c2ecf20Sopenharmony_ci unsigned long st_atime_nsec; 308c2ecf20Sopenharmony_ci unsigned long st_mtime; 318c2ecf20Sopenharmony_ci unsigned long st_mtime_nsec; 328c2ecf20Sopenharmony_ci unsigned long st_ctime; 338c2ecf20Sopenharmony_ci unsigned long st_ctime_nsec; 348c2ecf20Sopenharmony_ci unsigned long __unused4; 358c2ecf20Sopenharmony_ci unsigned long __unused5; 368c2ecf20Sopenharmony_ci}; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_cistruct stat64 { 398c2ecf20Sopenharmony_ci unsigned long long st_dev; /* Device */ 408c2ecf20Sopenharmony_ci unsigned long long st_ino; /* File serial number */ 418c2ecf20Sopenharmony_ci unsigned int st_mode; /* File mode. */ 428c2ecf20Sopenharmony_ci unsigned int st_nlink; /* Link count. */ 438c2ecf20Sopenharmony_ci unsigned int st_uid; /* User ID of the file's owner. */ 448c2ecf20Sopenharmony_ci unsigned int st_gid; /* Group ID of the file's group. */ 458c2ecf20Sopenharmony_ci unsigned long long st_rdev; /* Device number, if device. */ 468c2ecf20Sopenharmony_ci long long st_size; /* Size of file, in bytes. */ 478c2ecf20Sopenharmony_ci unsigned long st_blksize; /* Optimal block size for I/O. */ 488c2ecf20Sopenharmony_ci unsigned long __unused2; 498c2ecf20Sopenharmony_ci unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ 508c2ecf20Sopenharmony_ci unsigned long st_atime; /* Time of last access. */ 518c2ecf20Sopenharmony_ci unsigned long st_atime_nsec; 528c2ecf20Sopenharmony_ci unsigned long st_mtime; /* Time of last modification. */ 538c2ecf20Sopenharmony_ci unsigned long st_mtime_nsec; 548c2ecf20Sopenharmony_ci unsigned long st_ctime; /* Time of last status change. */ 558c2ecf20Sopenharmony_ci unsigned long st_ctime_nsec; 568c2ecf20Sopenharmony_ci unsigned long __unused4; 578c2ecf20Sopenharmony_ci unsigned long __unused5; 588c2ecf20Sopenharmony_ci}; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci#endif /* _XTENSA_STAT_H */ 61