Update limit values
This commit is contained in:
@@ -39,3 +39,9 @@
|
||||
|
||||
/// Maximum value a `signed long int' can hold.
|
||||
#define LONG_MIN (-LONG_MAX - 1L)
|
||||
|
||||
/// Maximum number of characters in a file name.
|
||||
#define NAME_MAX 255
|
||||
|
||||
/// Maximum number of characters in a path name.
|
||||
#define PATH_MAX 4096
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "unistd.h"
|
||||
#include "list_head.h"
|
||||
#include "signal_defs.h"
|
||||
#include "limits.h"
|
||||
|
||||
/// The maximum length of a name for a task_struct.
|
||||
#define TASK_NAME_MAX_LENGTH 100
|
||||
@@ -170,7 +171,7 @@ typedef struct task_struct {
|
||||
int error_no;
|
||||
|
||||
/// The current working directory.
|
||||
char cwd[MAX_PATH_LENGTH];
|
||||
char cwd[PATH_MAX];
|
||||
|
||||
//==== Future work =========================================================
|
||||
// - task's attributes:
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "stddef.h"
|
||||
|
||||
/// The maximum length for a name.
|
||||
#define NAME_MAX 30
|
||||
#include "limits.h"
|
||||
|
||||
/// @brief Contains the entries of a directory.
|
||||
typedef struct dirent_t {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "stdint.h"
|
||||
#include "kernel.h"
|
||||
#include "limits.h"
|
||||
|
||||
/// Maximum length of credentials.
|
||||
#define CREDENTIALS_LENGTH 50
|
||||
@@ -55,7 +56,7 @@ typedef struct userenv_t
|
||||
char username[CREDENTIALS_LENGTH];
|
||||
|
||||
/// The current path.
|
||||
char cur_path[MAX_PATH_LENGTH];
|
||||
char cur_path[PATH_MAX];
|
||||
|
||||
/// The user identifier.
|
||||
unsigned int uid;
|
||||
|
||||
Reference in New Issue
Block a user