From 0f9a34c5eebf14e459b06c87af0f71e7b8489822 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 21 Jun 1993 23:36:26 +0000 Subject: [PATCH] Formerly unix/sysv/sco3.2.4/__sysconf.S.~2~ --- sysdeps/unix/sysv/sco3.2.4/sysconf.S | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/sco3.2.4/sysconf.S b/sysdeps/unix/sysv/sco3.2.4/sysconf.S index bb78d5df66..2ec8c9d139 100644 --- a/sysdeps/unix/sysv/sco3.2.4/sysconf.S +++ b/sysdeps/unix/sysv/sco3.2.4/sysconf.S @@ -17,6 +17,20 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include +#include +#include -SYSCALL__ (sysconf, 1) +.globl __tzname_max +ENTRY (sysconf) + cmpl 4(%esp), $_SC_TZNAME_MAX /* Is the arg _SC_TZNAME_MAX? */ + je tzname + DO_CALL (sysconf, 1) /* No; use the SCO system call. */ + ret +tzname: movl (C_SYMBOL_NAME(__tzname_max)), %eax /* Yes; use __tzname_max. */ +#ifdef TZNAME_MAX + cmpl $TZNAME_MAX, %eax /* Is TZNAME_MAX larger? */ + jle out + movl $TZNAME_MAX, %eax /* Yes; return it. */ +out: +#endif ret