mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added getdtablesize(3) for gzip compatibility.
Remove this once sysconf(_SC_OPEN_MAX) is implemented.
This commit is contained in:
parent
35347ec709
commit
b2b54d108d
2 changed files with 9 additions and 0 deletions
|
@ -184,6 +184,7 @@ ssize_t write(int, const void*, size_t);
|
||||||
|
|
||||||
#if defined(_SORTIX_SOURCE)
|
#if defined(_SORTIX_SOURCE)
|
||||||
int execvpe(const char*, char* const [], char* const []);
|
int execvpe(const char*, char* const [], char* const []);
|
||||||
|
int getdtablesize(void);
|
||||||
size_t getpagesize(void);
|
size_t getpagesize(void);
|
||||||
int memstat(size_t* memused, size_t* memtotal);
|
int memstat(size_t* memused, size_t* memtotal);
|
||||||
size_t preadall(int fd, void* buf, size_t count, off_t off);
|
size_t preadall(int fd, void* buf, size_t count, off_t off);
|
||||||
|
|
|
@ -359,6 +359,14 @@ retry:
|
||||||
}
|
}
|
||||||
return templ;
|
return templ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: This has been replaced with sysconf(_SC_OPEN_MAX). This is only
|
||||||
|
// here for compatibility with gzip and should be removed as soon as sysconf
|
||||||
|
// is implemented.
|
||||||
|
extern "C" int getdtablesize(void)
|
||||||
|
{
|
||||||
|
return 0x10000;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue