1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2012-05-28 23:11:44 +02:00
parent 35347ec709
commit b2b54d108d
2 changed files with 9 additions and 0 deletions

View file

@ -184,6 +184,7 @@ ssize_t write(int, const void*, size_t);
#if defined(_SORTIX_SOURCE)
int execvpe(const char*, char* const [], char* const []);
int getdtablesize(void);
size_t getpagesize(void);
int memstat(size_t* memused, size_t* memtotal);
size_t preadall(int fd, void* buf, size_t count, off_t off);

View file

@ -359,6 +359,14 @@ retry:
}
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
}