diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
commit | ff0f694d466fb114c185bf464811658f97d012f1 (patch) | |
tree | 1eef0becdabdf6a9902d265a84fc9bf9fd9389d5 /cpukit/libnetworking/sys | |
parent | changed version to 980820-BSD (diff) | |
download | rtems-ff0f694d466fb114c185bf464811658f97d012f1.tar.bz2 |
Fixed many warnings.
Diffstat (limited to 'cpukit/libnetworking/sys')
-rw-r--r-- | cpukit/libnetworking/sys/libkern.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/param.h | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/syslimits.h | 21 |
3 files changed, 27 insertions, 0 deletions
diff --git a/cpukit/libnetworking/sys/libkern.h b/cpukit/libnetworking/sys/libkern.h index bdc060346a..c01e35b273 100644 --- a/cpukit/libnetworking/sys/libkern.h +++ b/cpukit/libnetworking/sys/libkern.h @@ -79,9 +79,11 @@ int skpc __P((int, int, char *)); void srandom __P((u_long)); char *strcat __P((char *, const char *)); int strcmp __P((const char *, const char *)); +char *strdup __P((const char *s)); char *strcpy __P((char *, const char *)); size_t strlen __P((const char *)); int strncmp __P((const char *, const char *, size_t)); char *strncpy __P((char *, const char *, size_t)); +char *strerror __P((int errnum)); #endif /* !_SYS_LIBKERN_H_ */ diff --git a/cpukit/libnetworking/sys/param.h b/cpukit/libnetworking/sys/param.h index 31551c7e06..21a9758520 100644 --- a/cpukit/libnetworking/sys/param.h +++ b/cpukit/libnetworking/sys/param.h @@ -42,6 +42,8 @@ #ifndef _SYS_PARAM_H_ #define _SYS_PARAM_H_ +#include <unistd.h> + #define BSD 199506 /* System version (year & month). */ #define BSD4_3 1 #define BSD4_4 1 @@ -168,7 +170,9 @@ * It should be set high enough to allow all legitimate uses, but halt * infinite loops reasonably quickly. */ +#if !defined(__rtems__) #define MAXPATHLEN PATH_MAX +#endif #define MAXSYMLINKS 32 /* Bit map related macros. */ diff --git a/cpukit/libnetworking/sys/syslimits.h b/cpukit/libnetworking/sys/syslimits.h index 3546e6b1d3..283a0241e3 100644 --- a/cpukit/libnetworking/sys/syslimits.h +++ b/cpukit/libnetworking/sys/syslimits.h @@ -37,19 +37,40 @@ #ifndef _SYS_SYSLIMITS_H_ #define _SYS_SYSLIMITS_H_ +#if !defined(__rtems__) #define ARG_MAX 65536 /* max bytes for an exec function */ +#endif + +#if !defined(__rtems__) #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ #endif +#endif + +#if !defined(__rtems__) #define LINK_MAX 32767 /* max file link count */ +#endif + #define MAX_CANON 255 /* max bytes in term canon input line */ + #define MAX_INPUT 255 /* max bytes in terminal input */ + +#if !defined(__rtems__) #define NAME_MAX 255 /* max bytes in a file name */ +#endif + #define NGROUPS_MAX 16 /* max supplemental group id's */ + +#if !defined(__rtems__) #ifndef OPEN_MAX #define OPEN_MAX 64 /* max open files per process */ #endif +#endif + +#if !defined(__rtems__) #define PATH_MAX 1024 /* max bytes in pathname */ +#endif + #define PIPE_BUF 512 /* max bytes for atomic pipe writes */ #define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */ |