Laurent MOULIN / Mbed 2 deprecated tinypy

Dependencies:   mbed

Committer:
gignops
Date:
Sun Oct 07 11:49:09 2012 +0000
Revision:
0:4ab1392a0142
This project is an adaptation of tinypy code. The aim is to run python code on Mbed.; ; Have fun !

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gignops 0:4ab1392a0142 1 #ifndef STAT_H
gignops 0:4ab1392a0142 2 #define STAT_H
gignops 0:4ab1392a0142 3
gignops 0:4ab1392a0142 4 #include <stdio.h>
gignops 0:4ab1392a0142 5
gignops 0:4ab1392a0142 6 #define dev_t int
gignops 0:4ab1392a0142 7 #define ino_t int
gignops 0:4ab1392a0142 8 #define mode_t char
gignops 0:4ab1392a0142 9 #define nlink_t int
gignops 0:4ab1392a0142 10 #define uid_t short
gignops 0:4ab1392a0142 11 #define gid_t short
gignops 0:4ab1392a0142 12 #define off_t int
gignops 0:4ab1392a0142 13 #define time_t int
gignops 0:4ab1392a0142 14 #define blksize_t int
gignops 0:4ab1392a0142 15 #define blkcnt_t int
gignops 0:4ab1392a0142 16
gignops 0:4ab1392a0142 17
gignops 0:4ab1392a0142 18 struct stat
gignops 0:4ab1392a0142 19 {
gignops 0:4ab1392a0142 20 dev_t st_dev; /*ID of device containing file*/
gignops 0:4ab1392a0142 21 ino_t st_ino; /*file serial number*/
gignops 0:4ab1392a0142 22 mode_t st_mode; /*mode of file (see below)*/
gignops 0:4ab1392a0142 23 nlink_t st_nlink; /* number of links to the file*/
gignops 0:4ab1392a0142 24 uid_t st_uid; /*user ID of file*/
gignops 0:4ab1392a0142 25 gid_t st_gid; /*group ID of file*/
gignops 0:4ab1392a0142 26 dev_t st_rdev; /*device ID (if file is character or block special)*/
gignops 0:4ab1392a0142 27 off_t st_size; /*file size in bytes (if file is a regular file)*/
gignops 0:4ab1392a0142 28 time_t st_atime; /*time of last access*/
gignops 0:4ab1392a0142 29 time_t st_mtime; /*time of last data modification*/
gignops 0:4ab1392a0142 30 time_t st_ctime; /*time of last status change*/
gignops 0:4ab1392a0142 31 blksize_t st_blksize; /*a filesystem-specific preferred I/O block size for
gignops 0:4ab1392a0142 32 this object. In some filesystem types, this may
gignops 0:4ab1392a0142 33 vary from file to file*/
gignops 0:4ab1392a0142 34 blkcnt_t st_blocks; /*number of blocks allocated for this object*/
gignops 0:4ab1392a0142 35 };
gignops 0:4ab1392a0142 36
gignops 0:4ab1392a0142 37 int stat(const char *filename, struct stat *buf);
gignops 0:4ab1392a0142 38
gignops 0:4ab1392a0142 39 #endif
gignops 0:4ab1392a0142 40