From f547068f88348f54941dc06da46491f99701933e Mon Sep 17 00:00:00 2001 From: David Leonard Date: Fri, 20 Nov 1998 11:19:02 +0000 Subject: Add thread-safety to libc, so that libc_r will build (on i386 at least). All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO --- include/limits.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/limits.h') diff --git a/include/limits.h b/include/limits.h index f9998eb748b..772688e8204 100644 --- a/include/limits.h +++ b/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.5 1998/07/11 06:02:44 deraadt Exp $ */ +/* $OpenBSD: limits.h,v 1.6 1998/11/20 11:18:25 d Exp $ */ /* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */ /* @@ -63,6 +63,10 @@ #define _POSIX2_LINE_MAX 2048 #define _POSIX2_RE_DUP_MAX 255 +/* P1003.1c */ +#define _POSIX_TTY_NAME_MAX 260 +#define _POSIX_LOGIN_NAME_MAX MAXLOGNAME + #if !defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) #define PASS_MAX 128 @@ -78,6 +82,10 @@ #endif /* !_ANSI_SOURCE */ +/* where does this belong? it is defined by P1003.1c */ +#define TTY_NAME_MAX _POSIX_TTY_NAME_MAX +#define LOGIN_NAME_MAX MAXLOGNAME + #include #include -- cgit v1.2.3