Changeset 852b801 in mainline for uspace/lib/libc/include/sys/stat.h


Ignore:
Timestamp:
2009-06-28T18:59:02Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75160a6
Parents:
4198f9c3
Message:

Introduce VFS_IN_FSTAT and VFS_OUT_STAT.
Provide libc fstat() and devfs_stat().
This functionality replaces VFS_IN_NODE
and VFS_IN/OUT_DEVICE. FAT and TMPFS
still do not implement this and VFS_IN_STAT
and stat() need implementation as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/sys/stat.h

    r4198f9c3 r852b801  
    3737
    3838#include <sys/types.h>
     39#include <bool.h>
     40#include <ipc/vfs.h>
     41#include <ipc/devmap.h>
    3942
     43struct stat {
     44        fs_handle_t     fs_handle;
     45        dev_handle_t    dev_handle;
     46        fs_index_t      index;
     47        unsigned        lnkcnt;
     48        bool            is_file;
     49        off_t           size;
     50        union {
     51                struct {
     52                        dev_handle_t    device;
     53                } devfs_stat;
     54        };
     55};
     56
     57extern int fstat(int, struct stat *);
    4058extern int mkdir(const char *, mode_t);
    4159
Note: See TracChangeset for help on using the changeset viewer.