Changeset b08ef1fd in mainline for uspace/lib/posix/sys/stat.h


Ignore:
Timestamp:
2011-06-16T02:57:47Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
491e1ee
Parents:
4f4b4e7
Message:

POSIX types moved from stat.h to types.h.
Added function stubs into stdio.h and unistd.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/sys/stat.h

    r4f4b4e7 rb08ef1fd  
    3838
    3939#include "../libc/sys/stat.h"
    40 #include "time.h"
     40#include "types.h"
     41#include "../time.h"
    4142
    4243/* values are the same as on Linux */
     
    108109#define S_ISSOCK(m) ((m & S_IFSOCK) != 0) /* socket? (Not in POSIX.1-1996.) */
    109110
    110 typedef devmap_handle_t posix_dev_t;
    111 typedef unsigned int posix_ino_t;
    112 typedef unsigned int posix_nlink_t;
    113 typedef unsigned int posix_uid_t;
    114 typedef unsigned int posix_gid_t;
    115 typedef aoff64_t posix_off_t;
    116 typedef unsigned int posix_blksize_t;
    117 typedef unsigned int posix_blkcnt_t;
    118 
    119111struct posix_stat {
    120112        struct stat sys_stat;
     
    139131
    140132#ifndef LIBPOSIX_INTERNAL
    141         #define dev_t posix_dev_t
    142         #define nlink_t posix_nlink_t
    143         #define uid_t posix_uid_t
    144         #define gid_t posix_gid_t
    145         #define off_t posix_off_t
    146         #define blksize_t posix_blksize_t
    147         #define blkcnt_t posix_blkcnt_t
    148 
    149133        #define fstat posix_fstat
    150134        #define stat posix_stat
Note: See TracChangeset for help on using the changeset viewer.