forked from KolibriOS/kolibrios
kolibri-libc:
- Added ungetc, tollower and toupper to export - Fixed ungetc emu - Fixed file io functions - Update file_io test git-svn-id: svn://kolibrios.org@8730 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
typedef unsigned ino_t;
|
||||
|
||||
struct dirent{
|
||||
ino_t d_ino; //File serial number.
|
||||
ino_t d_ino; //File serial number.
|
||||
char d_name[PATH_MAX]; // Name of entry.
|
||||
unsigned d_type;
|
||||
};
|
||||
@@ -31,4 +31,4 @@ void _FUNC(rewinddir)(DIR *dir);
|
||||
void _FUNC(seekdir)(DIR *dir, unsigned pos);
|
||||
unsigned _FUNC(telldir)(DIR *dir);
|
||||
|
||||
#endif // _DIRENT_H_
|
||||
#endif // _DIRENT_H_
|
||||
|
||||
@@ -884,7 +884,12 @@ int _ksys_file_read_file(const char *name, unsigned long long offset, unsigned s
|
||||
k.p21 = name;
|
||||
int status;
|
||||
unsigned bytes_read_v;
|
||||
_ksys_work_files(&k);
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
:"=a"(status), "=b"(bytes_read_v)
|
||||
:"a"(70), "b"(&k)
|
||||
:"memory"
|
||||
);
|
||||
if (!status) {
|
||||
*bytes_read = bytes_read_v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user