Changeset 391996b in mainline


Ignore:
Timestamp:
2019-02-10T13:27:33Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8df5f20
Parents:
b583311
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-10 13:26:11)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-10 13:27:33)
Message:

Hide internal details of <dirent.h> structure DIR

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dirent.c

    rb583311 r391996b  
    3939#include <errno.h>
    4040#include <assert.h>
     41
     42struct __dirstream {
     43        int fd;
     44        struct dirent res;
     45        aoff64_t pos;
     46};
    4147
    4248/** Open directory.
  • uspace/lib/c/include/dirent.h

    rb583311 r391996b  
    3838#define NAME_MAX  256
    3939
    40 #include <offset.h>
    41 
    4240struct dirent {
    4341        char d_name[NAME_MAX + 1];
    4442};
    4543
    46 typedef struct {
    47         int fd;
    48         struct dirent res;
    49         aoff64_t pos;
    50 } DIR;
     44typedef struct __dirstream DIR;
    5145
    5246extern DIR *opendir(const char *);
Note: See TracChangeset for help on using the changeset viewer.