mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
Userland: Move HOST_NAME_MAX to limits.h
POSIX mandates its definition there.
This commit is contained in:
parent
f9d82ecf18
commit
b3e070b2f3
4 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,8 @@
|
||||||
# define PAGE_SIZE 4096
|
# define PAGE_SIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define HOST_NAME_MAX 64
|
||||||
|
|
||||||
#define PATH_MAX 4096
|
#define PATH_MAX 4096
|
||||||
#if !defined MAXPATHLEN && defined PATH_MAX
|
#if !defined MAXPATHLEN && defined PATH_MAX
|
||||||
# define MAXPATHLEN PATH_MAX
|
# define MAXPATHLEN PATH_MAX
|
||||||
|
|
|
@ -129,8 +129,6 @@ enum {
|
||||||
_PC_VDISABLE
|
_PC_VDISABLE
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HOST_NAME_MAX 64
|
|
||||||
|
|
||||||
#define R_OK 4
|
#define R_OK 4
|
||||||
#define W_OK 2
|
#define W_OK 2
|
||||||
#define X_OK 1
|
#define X_OK 1
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/DirIterator.h>
|
#include <LibCore/DirIterator.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue