* PATCH: rlim_t = unsigned long
@ 1999-05-12 12:17 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1999-05-12 12:17 UTC (permalink / raw)
To: Zsh hackers list
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@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-05-12 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-12 12:17 PATCH: rlim_t = unsigned long Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).