* cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will have
been set by a previous function. * dtable.h (dtable::extend): Accept second size_t argument. * dtable.cc (dtable::extend): Accept second "min" argument which allows checking for OPEN_MAX_MAX boundary conditions. (dtable_init): Accommodate second argument to dtable::extend. (dtable::find_unused_handle): Ditto. * syscalls.cc (setdtablesize): Ditto. (dup): Return any error passed by cygheap_fdnew() directly. (getdtablesize): Just return dtable size directly.
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
||||
void vfork_parent_restore ();
|
||||
void vfork_child_fixup ();
|
||||
fhandler_base *dup_worker (fhandler_base *oldfh, int flags);
|
||||
int extend (size_t howmuch);
|
||||
int extend (size_t, size_t) __reg3;
|
||||
void fixup_after_fork (HANDLE);
|
||||
void fixup_close (size_t, fhandler_base *);
|
||||
|
||||
|
Reference in New Issue
Block a user