Compare commits

...

2 Commits

Author SHA1 Message Date
6507146c60 libc: Add Luna-specific limits 2022-10-15 14:31:55 +02:00
4bad782aad Kernel: Increment the maximum number of file descriptors a task can have
Doesn't use up more space in the Task structure, and now we are above the Minimum Acceptable Value as defined by POSIX (20), I think.
2022-10-15 14:20:29 +02:00
4 changed files with 14 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#include "memory/AddressSpace.h"
#include "sys/elf/Image.h"
#define TASK_MAX_FDS 8
#define TASK_MAX_FDS 32
struct Task
{

View File

@ -0,0 +1,10 @@
#ifndef _LUNA_OS_LIMITS_H
#define _LUNA_OS_LIMITS_H
#define OPEN_MAX 32
#define ATEXIT_MAX 32
#define PAGESIZE 4096
#define PAGE_SIZE 4096
#endif

View File

@ -6,6 +6,8 @@
#include <bits/seek.h>
#define FOPEN_MAX 32
typedef struct
{
int f_fd;

View File

@ -3,6 +3,7 @@
#include <bits/macros.h>
#include <bits/seek.h>
#include <luna/os-limits.h>
#include <sys/types.h>
#define STDOUT_FILENO 0