libc: Add Luna-specific limits

This commit is contained in:
apio 2022-10-15 14:31:55 +02:00
parent 4bad782aad
commit 6507146c60
3 changed files with 13 additions and 0 deletions

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