includes: small fixes and additions to help compiling programs.

This commit is contained in:
Ben Gras 2010-06-22 09:30:26 +00:00
parent e68d8eb1ff
commit 4383596e9d
4 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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"

View file

@ -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;

View file

@ -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) );