Formerly unix/sysv/sco3.2.4/__sysconf.S.~2~
This commit is contained in:
parent
2d8c1da501
commit
0f9a34c5ee
@ -17,6 +17,20 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
|||||||
Cambridge, MA 02139, USA. */
|
Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
|
#include <confname.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
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
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user