Userland: Move HOST_NAME_MAX to limits.h

POSIX mandates its definition there.
This commit is contained in:
Jean-Baptiste Boric 2021-04-25 21:05:02 +02:00 committed by Linus Groh
parent f9d82ecf18
commit b3e070b2f3
Notes: sideshowbarker 2024-07-18 19:01:16 +09:00
4 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,8 @@
# define PAGE_SIZE 4096
#endif
#define HOST_NAME_MAX 64
#define PATH_MAX 4096
#if !defined MAXPATHLEN && defined PATH_MAX
# define MAXPATHLEN PATH_MAX

View file

@ -129,8 +129,6 @@ enum {
_PC_VDISABLE
};
#define HOST_NAME_MAX 64
#define R_OK 4
#define W_OK 2
#define X_OK 1

View file

@ -6,6 +6,7 @@
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View file

@ -12,6 +12,7 @@
#include <LibCore/ArgsParser.h>
#include <LibCore/DirIterator.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>