We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c793430 commit 38abd9bCopy full SHA for 38abd9b
compat/mingw.h
@@ -233,6 +233,22 @@ int mingw_getpagesize(void);
233
#define getpagesize mingw_getpagesize
234
#endif
235
236
+struct rlimit {
237
+ unsigned int rlim_cur;
238
+};
239
+#define RLIMIT_NOFILE 0
240
+
241
+static inline int getrlimit(int resource, struct rlimit *rlp)
242
+{
243
+ if (resource != RLIMIT_NOFILE) {
244
+ errno = EINVAL;
245
+ return -1;
246
+ }
247
248
+ rlp->rlim_cur = 2048;
249
+ return 0;
250
+}
251
252
/* Use mingw_lstat() instead of lstat()/stat() and
253
* mingw_fstat() instead of fstat() on Windows.
254
*/
0 commit comments