Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
typos
[simgrid.git] / include / xbt / file_stat.h
1 /*
2  * file_stat.h
3  *
4  *  Created on: 3 avr. 2012
5  *      Author: navarro
6  */
7
8 #ifndef _FILE_STAT_H
9 #define _FILE_STAT_H
10
11 #include "xbt/sysdep.h"
12
13 /** \ingroup msg_file_management
14   \brief Strucure containing information on file like stat on POSIX
15  */
16 typedef struct file_stat {
17   char *user_rights;
18   char *user;
19   char *group;
20   char *date; /* FIXME: update to time_t or double */
21   char *time; /* FIXME: update to time_t or double */
22   double size;
23 } s_file_stat_t, *file_stat_t;
24
25 static XBT_INLINE void file_stat_copy(s_file_stat_t *src, s_file_stat_t *dst)
26 {
27     dst->date = xbt_strdup(src->date);
28     dst->group = xbt_strdup(src->group);
29     dst->size = src->size;
30     dst->time = xbt_strdup(src->time);
31     dst->user = xbt_strdup(src->user);
32     dst->user_rights = xbt_strdup(src->user_rights);
33 }
34
35 #endif /* _FILE_STAT_H */