libc: Add Luna-specific limits
This commit is contained in:
parent
4bad782aad
commit
6507146c60
10
libs/libc/include/luna/os-limits.h
Normal file
10
libs/libc/include/luna/os-limits.h
Normal 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
|
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include <bits/seek.h>
|
#include <bits/seek.h>
|
||||||
|
|
||||||
|
#define FOPEN_MAX 32
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int f_fd;
|
int f_fd;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <bits/macros.h>
|
#include <bits/macros.h>
|
||||||
#include <bits/seek.h>
|
#include <bits/seek.h>
|
||||||
|
#include <luna/os-limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define STDOUT_FILENO 0
|
#define STDOUT_FILENO 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user