1 /* Convert between `struct stat' format, and `struct stat64' format.
2 Copyright (C) 2000, 2001 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 xstat64_conv (struct stat *buf, struct stat64 *buf64)
26 memset (buf64, 0, sizeof (struct stat64));
28 buf64->st_fstype = buf->st_fstype;
29 buf64->st_fsid = buf->st_fsid;
30 buf64->st_ino = buf->st_ino;
31 buf64->st_gen = buf->st_gen;
32 buf64->st_rdev = buf->st_rdev;
33 buf64->st_mode = buf->st_mode;
34 buf64->st_nlink = buf->st_nlink;
35 buf64->st_uid = buf->st_uid;
36 buf64->st_gid = buf->st_gid;
37 buf64->st_size = buf->st_size;
38 buf64->st_atime = buf->st_atime;
39 buf64->st_atime_usec = buf->st_atime_usec;
40 buf64->st_mtime = buf->st_mtime;
41 buf64->st_mtime_usec = buf->st_mtime_usec;
42 buf64->st_ctime = buf->st_ctime;
43 buf64->st_ctime_usec = buf->st_ctime_usec;
44 buf64->st_blksize = buf->st_blksize;
45 buf64->st_blocks = buf->st_blocks;
46 buf64->st_author = buf->st_author;
47 buf64->st_flags = buf->st_flags;