summaryrefslogtreecommitdiff
path: root/include/limits.h
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1998-11-20 11:19:02 +0000
committerDavid Leonard <d@cvs.openbsd.org>1998-11-20 11:19:02 +0000
commitf547068f88348f54941dc06da46491f99701933e (patch)
tree8548a6b78719cba1de575b7f49e5f8ac4e6f1683 /include/limits.h
parent394c7a9821726b84f284c0c4385b1a9198afa0b0 (diff)
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
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h10
1 files changed, 9 insertions, 1 deletions
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 <machine/limits.h>
#include <sys/syslimits.h>