Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: rlim_t = unsigned long
- X-seq: zsh-workers 6272
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: rlim_t = unsigned long
- Date: Wed, 12 May 1999 14:17:04 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I don't know how this got missed out, but I know who I suspect most.
--- Src/Builtins/rlimits.c.rl2 Wed May 5 09:34:36 1999
+++ Src/Builtins/rlimits.c Wed May 12 13:50:10 1999
@@ -112,9 +112,15 @@
else
printf("%lldkB\n", val / 1024L);
# else
+# ifdef RLIM_T_IS_UNSIGNED
+ printf("%luMB\n", val / (1024L * 1024L));
+ else
+ printf("%lukB\n", val / 1024L);
+# else
printf("%ldMB\n", val / (1024L * 1024L));
else
printf("%ldkB\n", val / 1024L);
+# endif /* RLIM_T_IS_UNSIGNED */
# endif /* RLIM_T_IS_LONG_LONG */
# endif /* RLIM_T_IS_QUAD_T */
}
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author