source: trunk/libs/newlib/src/libgloss/riscv/kernel_stat.h @ 523

Last change on this file since 523 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.1 KB
Line 
1/* Copyright (c) 2017  SiFive Inc. All rights reserved.
2
3   This copyrighted material is made available to anyone wishing to use,
4   modify, copy, or redistribute it subject to the terms and conditions
5   of the FreeBSD License.   This program is distributed in the hope that
6   it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
7   including the implied warranties of MERCHANTABILITY or FITNESS FOR
8   A PARTICULAR PURPOSE.  A copy of this license is available at
9   http://www.opensource.org/licenses.
10*/
11
12#ifndef _RISCV_KERNEL_STAT_H
13#define _RISCV_KERNEL_STAT_H
14
15#include <sys/types.h>
16#include <sys/stat.h>
17
18struct  kernel_stat
19{
20  unsigned long long st_dev;
21  unsigned long long st_ino;
22  unsigned int st_mode;
23  unsigned int st_nlink;
24  unsigned int st_uid;
25  unsigned int st_gid;
26  unsigned long long st_rdev;
27  unsigned long long __pad1;
28  long long st_size;
29  int st_blksize;
30  int __pad2;
31  long long st_blocks;
32  struct timespec st_atim;
33  struct timespec st_mtim;
34  struct timespec st_ctim;
35  int __glibc_reserved[2];
36};
37
38void _conv_stat (struct stat *, struct kernel_stat *);
39#endif /* _RISCV_KERNEL_STAT_H */
Note: See TracBrowser for help on using the repository browser.