newlib: struct dirent

pixlib3: enable linear texture filtration
libsync: user space synchronization

git-svn-id: svn://kolibrios.org@5602 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2015-07-23 10:10:52 +00:00
parent fb406006f7
commit 1918b713af
11 changed files with 1983 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
#ifndef __LBSYNC_H__
#define __LBSYNC_H__
typedef struct
{
volatile int lock;
unsigned int handle;
}mutex_t;
int __fastcall mutex_init(mutex_t *mutex);
int __fastcall mutex_destroy(mutex_t *mutex);
void __fastcall mutex_lock(mutex_t *mutex);
int __fastcall mutex_trylock (mutex_t *mutex);
void __fastcall mutex_unlock(mutex_t *mutex);
#endif

View File

@@ -7,7 +7,26 @@
#ifdef __cplusplus
extern "C" {
#endif
//#error "<dirent.h> not supported"
struct dirent {
char d_namlen;
char d_name[256];
};
typedef struct
{
// struct systree_info2 fileinfo;
struct dirent entry;
// __u8 bdfeheader[0x20];
// struct bdfe_item bdfebase;
// __u8 bdfename[264];
} DIR;
int closedir(DIR *dirp);
DIR * opendir(const char *_dirname);
struct dirent * readdir(DIR *_dirp);
void rewinddir(DIR *_dirp);
#ifdef __cplusplus
}
#endif

File diff suppressed because it is too large Load Diff