From 4383596e9d7ca2b696a3a8490e2c44bed7bdaa22 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 22 Jun 2010 09:30:26 +0000 Subject: [PATCH] includes: small fixes and additions to help compiling programs. --- include/limits.h | 1 + include/minix/paths.h | 2 ++ include/minix/types.h | 1 + include/sys/stat.h | 2 ++ 4 files changed, 6 insertions(+) diff --git a/include/limits.h b/include/limits.h index 60503af3f..3baa81d0e 100644 --- a/include/limits.h +++ b/include/limits.h @@ -99,6 +99,7 @@ #define STREAM_MAX 20 /* must be the same as FOPEN_MAX in stdio.h */ #define TZNAME_MAX 3 /* maximum bytes in a time zone name is 3 */ #define SSIZE_MAX 32767 /* max defined byte count for read() */ +#define SIZE_MAX UINT_MAX #define SYMLINK_MAX 1024 /* # bytes in a symbolic link */ #define SYMLOOP_MAX 16 /* maximum number of symbolic links that can * be reliably traversed in the resolution of diff --git a/include/minix/paths.h b/include/minix/paths.h index 900c7e45f..e20e5e9de 100644 --- a/include/minix/paths.h +++ b/include/minix/paths.h @@ -14,7 +14,9 @@ #define _PATH_DEFTAPE "/dev/sa0" #define _PATH_RAMDISK "/dev/ram" +#define _PATH_TTY "/dev/tty" #define _PATH_TMP "/tmp" +#define _PATH_DEVNULL "/dev/null" #define _PATH_BSHELL "/bin/sh" #define _PATH_SERVICE "/bin/service" diff --git a/include/minix/types.h b/include/minix/types.h index 65c1173e4..dd325d662 100644 --- a/include/minix/types.h +++ b/include/minix/types.h @@ -103,6 +103,7 @@ typedef short uid_t; /* user id */ /* Signal handler type, e.g. SIG_IGN */ typedef void _PROTOTYPE( (*sighandler_t), (int) ); +typedef sighandler_t sig_t; /* Compatibility with other systems */ typedef unsigned char u_char; diff --git a/include/sys/stat.h b/include/sys/stat.h index 0f65f88a2..ea3fba762 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -65,6 +65,8 @@ struct stat { #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) /* is a symlink */ #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) /* is a pipe/FIFO */ +#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) + /* Function Prototypes. */ _PROTOTYPE( int chmod, (const char *_path, mode_t _mode) ); _PROTOTYPE( int fchmod, (int fd, mode_t _mode) ); -- 2.44.0