home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / time-1.7-diffs.gz / time-1.7-diffs
Text File  |  1996-10-13  |  38KB  |  1,229 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/time/Makefile.in amiga/fsf/time/Makefile.in
  12. --- baseline/fsf/time/Makefile.in    Thu Jul 11 14:07:03 1996
  13. +++ amiga/fsf/time/Makefile.in    Sat Sep 28 00:00:00 1996
  14. @@ -25,6 +25,9 @@ infodir = @infodir@
  15.  mandir = @mandir@
  16.  includedir = @includedir@
  17.  oldincludedir = /usr/include
  18. +guidedir = $(prefix)/guide
  19. +dvidir = $(prefix)/dvi
  20. +psdir = $(prefix)/ps
  21.  
  22.  pkgdatadir = $(datadir)/@PACKAGE@
  23.  pkglibdir = $(libdir)/@PACKAGE@
  24. @@ -67,6 +70,7 @@ time_LDADD = $(LDADD)
  25.  
  26.  MAKEINFO = makeinfo
  27.  TEXI2DVI = texi2dvi
  28. +DVIPS = dvips
  29.  INFOS = time.info*
  30.  INFO_DEPS = time.info
  31.  DVIS = time.dvi
  32. @@ -170,21 +174,39 @@ time.info: time.texi version.texi
  33.  
  34.  
  35.  .texi.info:
  36. -    $(MAKEINFO) -I$(srcdir) $< -o $(srcdir)/$@
  37. +    $(MAKEINFO) -I$(srcdir) $< -o $@
  38.  
  39.  .texi.dvi:
  40.      TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
  41.  
  42. +.texi.guide:
  43. +    $(MAKEINFO) -I$(srcdir) $< -o $@ --no-split --amiga
  44. +
  45. +.dvi.ps:
  46. +    $(DVIPS) -o $@ $<
  47. +
  48. +install-dvi:
  49. +    $(mkinstalldirs) $(dvidir)
  50. +    $(INSTALL_DATA) time.dvi $(dvidir)/time.dvi
  51. +
  52. +install-guide:
  53. +    $(mkinstalldirs) $(guidedir)
  54. +    $(INSTALL_DATA) time.guide $(guidedir)/time.guide
  55. +
  56. +install-ps:
  57. +    $(mkinstalldirs) $(psdir)
  58. +    $(INSTALL_DATA) time.ps $(psdir)/time.ps
  59. +
  60.  install-info: $(INFO_DEPS)
  61.      $(mkinstalldirs) $(infodir)
  62.      for file in $(INFO_DEPS); do        \
  63. -      for ifile in `cd $(srcdir) && echo $$file*`; do \
  64. -        $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
  65. +      for ifile in `echo $$file*`; do \
  66. +        $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
  67.        done;                    \
  68.      done
  69.  
  70.  uninstall-info:
  71. -    cd $(srcdir) && for file in *.info*; do    \
  72. +    for file in *.info*; do    \
  73.        rm -f $(infodir)/$$file; \
  74.      done
  75.  
  76. @@ -261,20 +283,24 @@ info: $(INFO_DEPS)
  77.  
  78.  dvi: $(DVIS)
  79.  
  80. +guide: time.guide
  81. +
  82. +ps: time.ps
  83. +
  84.  check: all
  85.  
  86.  installcheck:
  87.  
  88.  install-exec: install-binPROGRAMS
  89.  
  90. -install-data: install-info
  91. +install-data: install-info install-guide install-dvi install-ps
  92.  
  93.  install: install-exec install-data all
  94.      @:
  95.  
  96.  uninstall: uninstall-binPROGRAMS uninstall-info
  97.  
  98. -all: $(INFO_DEPS) $(PROGRAMS) Makefile
  99. +all: $(INFO_DEPS) $(PROGRAMS) Makefile guide dvi ps
  100.  
  101.  install-strip:
  102.      $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
  103. @@ -337,7 +363,7 @@ stamp-v: Makefile
  104.      fi
  105.      echo timestamp > $@
  106.  .SUFFIXES:
  107. -.SUFFIXES: .c .o .texi .info .dvi
  108. +.SUFFIXES: .c .o .texi .info .dvi .guide .ps
  109.  
  110.  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  111.  # Otherwise a system limit (for SysV at least) may be exceeded.
  112. diff -rup --new-file baseline/fsf/time/Product-Info amiga/fsf/time/Product-Info
  113. --- baseline/fsf/time/Product-Info    Wed Dec 31 17:00:00 1969
  114. +++ amiga/fsf/time/Product-Info    Sat Sep 28 00:00:00 1996
  115. @@ -0,0 +1,33 @@
  116. +.name
  117. +time
  118. +.fullname
  119. +GNU time
  120. +.type
  121. +Miscellaneous
  122. +.short
  123. +GNU util to measure program resource use
  124. +.description
  125. +The `time' command runs another program, then displays information
  126. +about the resources used by that program, collected by the system while
  127. +the program was running.  You can select which information is reported
  128. +and the format in which it is shown, or have `time' save the information
  129. +in a file instead of display it on the screen.
  130. +
  131. +The resources that `time' can report on fall into the general
  132. +categories of time, memory, I/O, and IPC calls.  Some systems do not
  133. +provide much information about program resource use; `time' reports
  134. +unavailable information as zero values.
  135. +.version
  136. +1.7
  137. +.author
  138. +David Keppel\n
  139. +David MacKenzie
  140. +.requirements
  141. +Binary version requires ixemul.library.
  142. +.distribution
  143. +GNU Public License
  144. +.email
  145. +pardo@cs.washington.edu
  146. +djm@gnu.ai.mit.edu
  147. +.described-by
  148. +Lars Hecking (lhecking@nmrc.ucc.ie)
  149. diff -rup --new-file baseline/fsf/time/configure amiga/fsf/time/configure
  150. --- baseline/fsf/time/configure    Wed Jun 12 11:45:14 1996
  151. +++ amiga/fsf/time/configure    Thu Oct  3 12:23:43 1996
  152. @@ -44,6 +44,9 @@ libdir='${exec_prefix}/lib'
  153.  includedir='${prefix}/include'
  154.  oldincludedir='/usr/include'
  155.  infodir='${prefix}/info'
  156. +guidedir='${prefix}/guide'
  157. +psdir='${prefix}/ps'
  158. +dvidir='${prefix}/dvi'
  159.  mandir='${prefix}/man'
  160.  
  161.  # Initialize some other variables.
  162. @@ -158,6 +161,9 @@ Directory and file names:
  163.    --includedir=DIR        C header files in DIR [PREFIX/include]
  164.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  165.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  166. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  167. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  168. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  169.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.    --program-prefix=PREFIX prepend PREFIX to installed program names
  172. @@ -200,6 +206,18 @@ EOF
  173.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  174.      infodir="$ac_optarg" ;;
  175.  
  176. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  177. +   ac_prev=guidedir ;;
  178. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  179. +
  180. + -psdir | --psdir | --psdi | --psd | --ps)
  181. +   ac_prev=psdir ;;
  182. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  183. +
  184. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  185. +   ac_prev=dvidir ;;
  186. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  187. +
  188.    -libdir | --libdir | --libdi | --libd)
  189.      ac_prev=libdir ;;
  190.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  191. @@ -623,7 +641,7 @@ else
  192.    yes;
  193.  #endif
  194.  EOF
  195. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  196. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  197.    ac_cv_prog_gcc=yes
  198.  else
  199.    ac_cv_prog_gcc=no
  200. @@ -650,9 +668,9 @@ fi
  201.  
  202.  echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  203.      if test $ac_cv_prog_gcc_g = yes; then
  204. -      CFLAGS="-g -O"
  205. +      CFLAGS="-g -O2"
  206.      else
  207. -      CFLAGS="-O"
  208. +      CFLAGS="-O2"
  209.      fi
  210.    fi
  211.  else
  212. @@ -675,13 +693,13 @@ else
  213.    # On the NeXT, cc -E runs the code through the compiler's parser,
  214.    # not just through cpp.
  215.    cat > conftest.$ac_ext <<EOF
  216. -#line 679 "configure"
  217. +#line 697 "configure"
  218.  #include "confdefs.h"
  219.  #include <assert.h>
  220.  Syntax Error
  221.  EOF
  222.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  223. -{ (eval echo configure:685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  224. +{ (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  225.  ac_err=`grep -v '^ *+' conftest.out`
  226.  if test -z "$ac_err"; then
  227.    :
  228. @@ -690,13 +708,13 @@ else
  229.    rm -rf conftest*
  230.    CPP="${CC-cc} -E -traditional-cpp"
  231.    cat > conftest.$ac_ext <<EOF
  232. -#line 694 "configure"
  233. +#line 712 "configure"
  234.  #include "confdefs.h"
  235.  #include <assert.h>
  236.  Syntax Error
  237.  EOF
  238.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  239. -{ (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  240. +{ (eval echo configure:718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  241.  ac_err=`grep -v '^ *+' conftest.out`
  242.  if test -z "$ac_err"; then
  243.    :
  244. @@ -742,6 +760,7 @@ ac_configure=$ac_aux_dir/configure # Thi
  245.  # SunOS /usr/etc/install
  246.  # IRIX /sbin/install
  247.  # AIX /bin/install
  248. +# AmigaOS /c/install
  249.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  250.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  251.  # ./install, which can be erroneously created by make from ./install.sh.
  252. @@ -754,7 +773,7 @@ else
  253.    for ac_dir in $PATH; do
  254.      # Account for people who put trailing slashes in PATH elements.
  255.      case "$ac_dir/" in
  256. -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  257. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  258.      *)
  259.        # OSF1 and SCO ODT 3.0 have their own names for install.
  260.        for ac_prog in ginstall installbsd scoinst install; do
  261. @@ -804,11 +823,11 @@ else
  262.    ac_cv_c_cross=yes
  263.  else
  264.  cat > conftest.$ac_ext <<EOF
  265. -#line 808 "configure"
  266. +#line 827 "configure"
  267.  #include "confdefs.h"
  268.  main(){return(0);}
  269.  EOF
  270. -{ (eval echo configure:812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  271. +{ (eval echo configure:831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  272.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  273.    ac_cv_c_cross=no
  274.  else
  275. @@ -826,7 +845,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  276.    echo $ac_n "(cached) $ac_c" 1>&6
  277.  else
  278.    cat > conftest.$ac_ext <<EOF
  279. -#line 830 "configure"
  280. +#line 849 "configure"
  281.  #include "confdefs.h"
  282.  #include <stdlib.h>
  283.  #include <stdarg.h>
  284. @@ -834,7 +853,7 @@ else
  285.  #include <float.h>
  286.  EOF
  287.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  288. -{ (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  289. +{ (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  290.  ac_err=`grep -v '^ *+' conftest.out`
  291.  if test -z "$ac_err"; then
  292.    rm -rf conftest*
  293. @@ -849,7 +868,7 @@ rm -f conftest*
  294.  if test $ac_cv_header_stdc = yes; then
  295.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  296.  cat > conftest.$ac_ext <<EOF
  297. -#line 853 "configure"
  298. +#line 872 "configure"
  299.  #include "confdefs.h"
  300.  #include <string.h>
  301.  EOF
  302. @@ -867,7 +886,7 @@ fi
  303.  if test $ac_cv_header_stdc = yes; then
  304.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  305.  cat > conftest.$ac_ext <<EOF
  306. -#line 871 "configure"
  307. +#line 890 "configure"
  308.  #include "confdefs.h"
  309.  #include <stdlib.h>
  310.  EOF
  311. @@ -888,7 +907,7 @@ if test "$cross_compiling" = yes; then
  312.    :
  313.  else
  314.  cat > conftest.$ac_ext <<EOF
  315. -#line 892 "configure"
  316. +#line 911 "configure"
  317.  #include "confdefs.h"
  318.  #include <ctype.h>
  319.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  320. @@ -899,7 +918,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  321.  exit (0); }
  322.  
  323.  EOF
  324. -{ (eval echo configure:903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  325. +{ (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  326.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  327.    :
  328.  else
  329. @@ -923,7 +942,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  330.    echo $ac_n "(cached) $ac_c" 1>&6
  331.  else
  332.    cat > conftest.$ac_ext <<EOF
  333. -#line 927 "configure"
  334. +#line 946 "configure"
  335.  #include "confdefs.h"
  336.  #include <sys/types.h>
  337.  #include <sys/wait.h>
  338. @@ -940,7 +959,7 @@ wait (&s);
  339.  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  340.  ; return 0; }
  341.  EOF
  342. -if { (eval echo configure:944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  343. +if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  344.    rm -rf conftest*
  345.    ac_cv_header_sys_wait_h=yes
  346.  else
  347. @@ -967,12 +986,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  348.    echo $ac_n "(cached) $ac_c" 1>&6
  349.  else
  350.    cat > conftest.$ac_ext <<EOF
  351. -#line 971 "configure"
  352. +#line 990 "configure"
  353.  #include "confdefs.h"
  354.  #include <$ac_hdr>
  355.  EOF
  356.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  357. -{ (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  358. +{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  359.  ac_err=`grep -v '^ *+' conftest.out`
  360.  if test -z "$ac_err"; then
  361.    rm -rf conftest*
  362. @@ -1002,7 +1021,7 @@ if eval "test \"`echo '$''{'ac_cv_c_cons
  363.    echo $ac_n "(cached) $ac_c" 1>&6
  364.  else
  365.    cat > conftest.$ac_ext <<EOF
  366. -#line 1006 "configure"
  367. +#line 1025 "configure"
  368.  #include "confdefs.h"
  369.  
  370.  int main() { return 0; }
  371. @@ -1052,7 +1071,7 @@ ccp = (char const *const *) p;
  372.  
  373.  ; return 0; }
  374.  EOF
  375. -if { (eval echo configure:1056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  376. +if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  377.    rm -rf conftest*
  378.    ac_cv_c_const=yes
  379.  else
  380. @@ -1076,7 +1095,7 @@ if eval "test \"`echo '$''{'ac_cv_type_p
  381.    echo $ac_n "(cached) $ac_c" 1>&6
  382.  else
  383.    cat > conftest.$ac_ext <<EOF
  384. -#line 1080 "configure"
  385. +#line 1099 "configure"
  386.  #include "confdefs.h"
  387.  #include <sys/types.h>
  388.  #if STDC_HEADERS
  389. @@ -1084,8 +1103,7 @@ else
  390.  #endif
  391.  EOF
  392.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  393. -  egrep "
  394. -pid_t^a-zA-Z_0-9 " >/dev/null 2>&1; then
  395. +  egrep "pid_t" >/dev/null 2>&1; then
  396.    rm -rf conftest*
  397.    ac_cv_type_pid_t=yes
  398.  else
  399. @@ -1108,7 +1126,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  400.    echo $ac_n "(cached) $ac_c" 1>&6
  401.  else
  402.    cat > conftest.$ac_ext <<EOF
  403. -#line 1112 "configure"
  404. +#line 1130 "configure"
  405.  #include "confdefs.h"
  406.  #include <sys/types.h>
  407.  #if STDC_HEADERS
  408. @@ -1116,8 +1134,7 @@ else
  409.  #endif
  410.  EOF
  411.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  412. -  egrep "
  413. -size_t^a-zA-Z_0-9 " >/dev/null 2>&1; then
  414. +  egrep "size_t" >/dev/null 2>&1; then
  415.    rm -rf conftest*
  416.    ac_cv_type_size_t=yes
  417.  else
  418. @@ -1140,7 +1157,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  419.    echo $ac_n "(cached) $ac_c" 1>&6
  420.  else
  421.    cat > conftest.$ac_ext <<EOF
  422. -#line 1144 "configure"
  423. +#line 1161 "configure"
  424.  #include "confdefs.h"
  425.  #include <sys/types.h>
  426.  #include <signal.h>
  427. @@ -1158,7 +1175,7 @@ int t() {
  428.  int i;
  429.  ; return 0; }
  430.  EOF
  431. -if { (eval echo configure:1162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  432. +if { (eval echo configure:1179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  433.    rm -rf conftest*
  434.    ac_cv_type_signal=void
  435.  else
  436. @@ -1178,7 +1195,7 @@ EOF
  437.  
  438.  echo $ac_n "checking for struct timeval in sys/time.h""... $ac_c" 1>&6
  439.  cat > conftest.$ac_ext <<EOF
  440. -#line 1182 "configure"
  441. +#line 1199 "configure"
  442.  #include "confdefs.h"
  443.  #include <sys/time.h>
  444.  EOF
  445. @@ -1203,7 +1220,7 @@ if eval "test \"`echo '$''{'ac_cv_func_v
  446.    echo $ac_n "(cached) $ac_c" 1>&6
  447.  else
  448.    cat > conftest.$ac_ext <<EOF
  449. -#line 1207 "configure"
  450. +#line 1224 "configure"
  451.  #include "confdefs.h"
  452.  /* System header to define __stub macros and hopefully few prototypes,
  453.      which can conflict with char vprintf(); below.  */
  454. @@ -1213,7 +1230,7 @@ else
  455.      builtin and then its argument prototype would still apply.  */
  456.  char vprintf();
  457.  
  458. -int main() { return 0; }
  459. +int main() { t(); return 0; }
  460.  int t() {
  461.  
  462.  /* The GNU C library defines this for functions which it implements
  463. @@ -1227,7 +1244,7 @@ vprintf();
  464.  
  465.  ; return 0; }
  466.  EOF
  467. -if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  468. +if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  469.    rm -rf conftest*
  470.    eval "ac_cv_func_vprintf=yes"
  471.  else
  472. @@ -1253,7 +1270,7 @@ if eval "test \"`echo '$''{'ac_cv_func__
  473.    echo $ac_n "(cached) $ac_c" 1>&6
  474.  else
  475.    cat > conftest.$ac_ext <<EOF
  476. -#line 1257 "configure"
  477. +#line 1274 "configure"
  478.  #include "confdefs.h"
  479.  /* System header to define __stub macros and hopefully few prototypes,
  480.      which can conflict with char _doprnt(); below.  */
  481. @@ -1263,7 +1280,7 @@ else
  482.      builtin and then its argument prototype would still apply.  */
  483.  char _doprnt();
  484.  
  485. -int main() { return 0; }
  486. +int main() { t(); return 0; }
  487.  int t() {
  488.  
  489.  /* The GNU C library defines this for functions which it implements
  490. @@ -1277,7 +1294,7 @@ _doprnt();
  491.  
  492.  ; return 0; }
  493.  EOF
  494. -if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  495. +if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  496.    rm -rf conftest*
  497.    eval "ac_cv_func__doprnt=yes"
  498.  else
  499. @@ -1300,14 +1317,14 @@ fi
  500.  fi
  501.  
  502.  echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
  503. -if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
  504. +if eval "test \"`echo '$''{'ac_cv_func_wait3_rsuage'+set}'`\" = set"; then
  505.    echo $ac_n "(cached) $ac_c" 1>&6
  506.  else
  507.    if test "$cross_compiling" = yes; then
  508. -  ac_cv_func_wait3=no
  509. +  ac_cv_func_wait3_rsuage=no
  510.  else
  511.  cat > conftest.$ac_ext <<EOF
  512. -#line 1311 "configure"
  513. +#line 1328 "configure"
  514.  #include "confdefs.h"
  515.  #include <sys/types.h>
  516.  #include <sys/time.h>
  517. @@ -1325,7 +1342,11 @@ main() {
  518.    r.ru_stime.tv_sec = 0;
  519.    r.ru_stime.tv_usec = 0;
  520.    r.ru_majflt = r.ru_minflt = 0;
  521. +#ifdef __amigaos__
  522. +  switch (vfork()) {
  523. +#else
  524.    switch (fork()) {
  525. +#endif
  526.    case 0: /* Child.  */
  527.      sleep(1); /* Give up the CPU.  */
  528.      _exit(0);
  529. @@ -1338,18 +1359,18 @@ main() {
  530.    }
  531.  }
  532.  EOF
  533. -{ (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  534. +{ (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  535.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  536. -  ac_cv_func_wait3=yes
  537. +  ac_cv_func_wait3_rsuage=yes
  538.  else
  539. -  ac_cv_func_wait3=no
  540. +  ac_cv_func_wait3_rsuage=no
  541.  fi
  542.  fi
  543.  rm -fr conftest*
  544.  fi
  545.  
  546. -echo "$ac_t""$ac_cv_func_wait3" 1>&6
  547. -if test $ac_cv_func_wait3 = yes; then
  548. +echo "$ac_t""$ac_cv_func_wait3_rsuage" 1>&6
  549. +if test $ac_cv_func_wait3_rsuage = yes; then
  550.    cat >> confdefs.h <<\EOF
  551.  #define HAVE_WAIT3 1
  552.  EOF
  553. @@ -1363,7 +1384,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  554.    echo $ac_n "(cached) $ac_c" 1>&6
  555.  else
  556.    cat > conftest.$ac_ext <<EOF
  557. -#line 1367 "configure"
  558. +#line 1388 "configure"
  559.  #include "confdefs.h"
  560.  /* System header to define __stub macros and hopefully few prototypes,
  561.      which can conflict with char $ac_func(); below.  */
  562. @@ -1373,7 +1394,7 @@ else
  563.      builtin and then its argument prototype would still apply.  */
  564.  char $ac_func();
  565.  
  566. -int main() { return 0; }
  567. +int main() { t(); return 0; }
  568.  int t() {
  569.  
  570.  /* The GNU C library defines this for functions which it implements
  571. @@ -1387,7 +1408,7 @@ $ac_func();
  572.  
  573.  ; return 0; }
  574.  EOF
  575. -if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  576. +if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  577.    rm -rf conftest*
  578.    eval "ac_cv_func_$ac_func=yes"
  579.  else
  580. @@ -1412,15 +1433,15 @@ done
  581.  
  582.  echo $ac_n "checking for getpagesize""... $ac_c" 1>&6
  583.  cat > conftest.$ac_ext <<EOF
  584. -#line 1416 "configure"
  585. +#line 1437 "configure"
  586.  #include "confdefs.h"
  587.  #include <sys/param.h>
  588. -int main() { return 0; }
  589. +int main() { t(); return 0; }
  590.  int t() {
  591.  getpagesize();
  592.  ; return 0; }
  593.  EOF
  594. -if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  595. +if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  596.    rm -rf conftest*
  597.    have_gp=yes
  598.  else
  599. @@ -1502,7 +1523,9 @@ rm -f conftest.defs
  600.  : ${CONFIG_STATUS=./config.status}
  601.  
  602.  echo creating $CONFIG_STATUS
  603. -rm -f $CONFIG_STATUS
  604. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  605. +# being executed, so just move it out of the way instead.
  606. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  607.  cat > $CONFIG_STATUS <<EOF
  608.  #! /bin/sh
  609.  # Generated automatically by configure.
  610. @@ -1563,6 +1586,9 @@ s%@libdir@%$libdir%g
  611.  s%@includedir@%$includedir%g
  612.  s%@oldincludedir@%$oldincludedir%g
  613.  s%@infodir@%$infodir%g
  614. +s%@guidedir@%$guidedir%g
  615. +s%@psdir@%$psdir%g
  616. +s%@dvidir@%$dvidir%g
  617.  s%@mandir@%$mandir%g
  618.  s%@VERSION@%$VERSION%g
  619.  s%@PACKAGE@%$PACKAGE%g
  620. @@ -1636,6 +1662,7 @@ rm -f conftest.subs
  621.  exit 0
  622.  EOF
  623.  chmod +x $CONFIG_STATUS
  624. +rm -f CONFIG.STATUS.old
  625.  rm -fr confdefs* $ac_clean_files
  626.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  627.  
  628. diff -rup --new-file baseline/fsf/time/error.c amiga/fsf/time/error.c
  629. --- baseline/fsf/time/error.c    Wed Jun 12 10:45:02 1996
  630. +++ amiga/fsf/time/error.c    Sat Sep 28 00:00:00 1996
  631. @@ -23,6 +23,7 @@
  632.  #endif
  633.  
  634.  #include <stdio.h>
  635. +#include <string.h>
  636.  
  637.  #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
  638.  # if __STDC__
  639. diff -rup --new-file baseline/fsf/time/getopt.c amiga/fsf/time/getopt.c
  640. --- baseline/fsf/time/getopt.c    Thu Jul 11 09:34:52 1996
  641. +++ amiga/fsf/time/getopt.c    Sat Sep 28 00:00:00 1996
  642. @@ -40,6 +40,7 @@
  643.  #endif
  644.  
  645.  #include <stdio.h>
  646. +#include <string.h>
  647.  
  648.  /* Comment out all this code if we are using the GNU C Library, and are not
  649.     actually compiling the library itself.  This code is part of the GNU C
  650. diff -rup --new-file baseline/fsf/time/manifests/bin amiga/fsf/time/manifests/bin
  651. --- baseline/fsf/time/manifests/bin    Wed Dec 31 17:00:00 1969
  652. +++ amiga/fsf/time/manifests/bin    Sat Sep 28 00:00:00 1996
  653. @@ -0,0 +1,7 @@
  654. +COPYING
  655. +COPYING.info
  656. +bin/time
  657. +dvi/time.dvi
  658. +guide/time.guide
  659. +info/time.info
  660. +ps/time.ps
  661. diff -rup --new-file baseline/fsf/time/manifests/src amiga/fsf/time/manifests/src
  662. --- baseline/fsf/time/manifests/src    Wed Dec 31 17:00:00 1969
  663. +++ amiga/fsf/time/manifests/src    Sat Sep 28 00:00:00 1996
  664. @@ -0,0 +1,31 @@
  665. +fsf/time/AUTHORS
  666. +fsf/time/COPYING
  667. +fsf/time/ChangeLog
  668. +fsf/time/INSTALL
  669. +fsf/time/Makefile.am
  670. +fsf/time/Makefile.in
  671. +fsf/time/NEWS
  672. +fsf/time/Product-Info
  673. +fsf/time/README
  674. +fsf/time/configure
  675. +fsf/time/configure.in
  676. +fsf/time/error.c
  677. +fsf/time/getopt.c
  678. +fsf/time/getopt.h
  679. +fsf/time/getopt1.c
  680. +fsf/time/getpagesize.h
  681. +fsf/time/install-sh
  682. +fsf/time/manifests/bin
  683. +fsf/time/manifests/src
  684. +fsf/time/mdate-sh
  685. +fsf/time/mkinstalldirs
  686. +fsf/time/port.h
  687. +fsf/time/resuse.c
  688. +fsf/time/resuse.h
  689. +fsf/time/stamp-vti
  690. +fsf/time/texinfo.tex
  691. +fsf/time/time.c
  692. +fsf/time/time.texi
  693. +fsf/time/version.c
  694. +fsf/time/version.texi
  695. +fsf/time/wait.h
  696. diff -rup --new-file baseline/fsf/time/port.h amiga/fsf/time/port.h
  697. --- baseline/fsf/time/port.h    Tue Jun 11 15:24:57 1996
  698. +++ amiga/fsf/time/port.h    Sat Sep 28 00:00:00 1996
  699. @@ -21,6 +21,10 @@
  700.  char *getenv PARAMS((const char *var));
  701.  PTR malloc PARAMS((size_t sz));
  702.  #endif
  703. +/* shut up warning about LONG_MAX redefinition */
  704. +#ifdef __amigaos__
  705. +#include <machine/limits.h>
  706. +#endif
  707.  #ifndef LONG_MAX
  708.  #define    LONG_MAX (~(1 << (sizeof (long) * 8 - 1)))
  709.  #endif
  710. diff -rup --new-file baseline/fsf/time/resuse.c amiga/fsf/time/resuse.c
  711. --- baseline/fsf/time/resuse.c    Thu Jun 13 12:37:43 1996
  712. +++ amiga/fsf/time/resuse.c    Sat Sep 28 00:00:00 1996
  713. @@ -91,7 +91,7 @@ resuse_end (pid, resp)
  714.    long value;
  715.    struct tms tms;
  716.  
  717. -  pid = wait (&status);
  718. +  pid = wait ((int *)&status);
  719.    if (pid == -1)
  720.      return 0;
  721.  
  722. diff -rup --new-file baseline/fsf/time/time.c amiga/fsf/time/time.c
  723. --- baseline/fsf/time/time.c    Thu Jun 13 12:38:21 1996
  724. +++ amiga/fsf/time/time.c    Sat Sep 28 00:00:00 1996
  725. @@ -604,7 +604,12 @@ run_command (cmd, resp)
  726.  
  727.    resuse_start (resp);
  728.  
  729. +#ifndef __amigaos__
  730.    pid = fork ();        /* Run CMD as child process.  */
  731. +#else
  732. +  pid = vfork ();
  733. +#endif
  734. +
  735.    if (pid < 0)
  736.      error (1, errno, "cannot fork");
  737.    else if (pid == 0)
  738. @@ -628,7 +633,7 @@ run_command (cmd, resp)
  739.    signal (SIGQUIT, quit_signal);
  740.  }
  741.  
  742. -void
  743. +int
  744.  main (argc, argv)
  745.       int argc;
  746.       char **argv;
  747. diff -rup --new-file baseline/fsf/time/time.info amiga/fsf/time/time.info
  748. --- baseline/fsf/time/time.info    Wed Jun 12 10:46:10 1996
  749. +++ amiga/fsf/time/time.info    Wed Dec 31 17:00:00 1969
  750. @@ -1,478 +0,0 @@
  751. -This is Info file ./time.info, produced by Makeinfo-1.55 from the input
  752. -file time.texi.
  753. -
  754. -   This file documents the the GNU `time' command for running programs
  755. -and summarizing the system resources they use.
  756. -
  757. -   Copyright (C) 1991, 92, 93, 96 Free Software Foundation, Inc.
  758. -
  759. -   Permission is granted to make and distribute verbatim copies of this
  760. -manual provided the copyright notice and this permission notice are
  761. -preserved on all copies.
  762. -
  763. -   Permission is granted to copy and distribute modified versions of
  764. -this manual under the conditions for verbatim copying, provided that
  765. -the entire resulting derived work is distributed under the terms of a
  766. -permission notice identical to this one.
  767. -
  768. -   Permission is granted to copy and distribute translations of this
  769. -manual into another language, under the above conditions for modified
  770. -versions, except that this permission notice may be stated in a
  771. -translation approved by the Foundation.
  772. -
  773. -
  774. -File: time.info,  Node: Top,  Prev: (dir),  Up: (dir)
  775. -
  776. -   This file documents the the GNU `time' command for running programs
  777. -and summarizing the system resources they use.  This is edition 1.7,
  778. -for version 1.7.
  779. -
  780. -* Menu:
  781. -
  782. -* Resource Measurement::  Measuring program resource use.
  783. -
  784. - -- The Detailed Node Listing --
  785. -
  786. -Measuring Program Resource Use
  787. -
  788. -* Setting Format::      Selecting the information reported by `time'.
  789. -* Format String::    The information `time' can report.
  790. -* Redirecting::         Writing the information to a file.
  791. -* Examples::        Examples of using `time'.
  792. -* Accuracy::        Limitations on the accuracy of `time' output.
  793. -* Invoking time::    Summary of the options to the `time' command.
  794. -
  795. -The Format String
  796. -
  797. -* Time Resources::
  798. -* Memory Resources::
  799. -* I/O Resources::
  800. -* Command Info::
  801. -
  802. -
  803. -File: time.info,  Node: Resource Measurement,  Up: Top
  804. -
  805. -Measuring Program Resource Use
  806. -******************************
  807. -
  808. -   The `time' command runs another program, then displays information
  809. -about the resources used by that program, collected by the system while
  810. -the program was running.  You can select which information is reported
  811. -and the format in which it is shown (*note Setting Format::.), or have
  812. -`time' save the information in a file instead of displaying it on the
  813. -screen (*note Redirecting::.).
  814. -
  815. -   The resources that `time' can report on fall into the general
  816. -categories of time, memory, and I/O and IPC calls.  Some systems do not
  817. -provide much information about program resource use; `time' reports
  818. -unavailable information as zero values (*note Accuracy::.).
  819. -
  820. -   The format of the `time' command is:
  821. -
  822. -     time [option...] COMMAND [ARG...]
  823. -
  824. -   `time' runs the program COMMAND, with any given arguments ARG....
  825. -When COMMAND finishes, `time' displays information about resources used
  826. -by COMMAND.
  827. -
  828. -   Here is an example of using `time' to measure the time and other
  829. -resources used by running the program `grep':
  830. -
  831. -     eg$ time grep nobody /etc/aliases
  832. -     nobody:/dev/null
  833. -     etc-files:nobody
  834. -     misc-group:nobody
  835. -     0.07user 0.50system 0:06.69elapsed 8%CPU (0avgtext+489avgdata 324maxresident)k
  836. -     46inputs+7outputs (43major+251minor)pagefaults 0swaps
  837. -
  838. -   Mail suggestions and bug reports for GNU `time' to
  839. -`bug-gnu-utils@prep.ai.mit.edu'.  Please include the version of `time',
  840. -which you can get by running `time --version', and the operating system
  841. -and C compiler you used.
  842. -
  843. -* Menu:
  844. -
  845. -* Setting Format::      Selecting the information reported by `time'.
  846. -* Format String::    The information `time' can report.
  847. -* Redirecting::         Writing the information to a file.
  848. -* Examples::        Examples of using `time'.
  849. -* Accuracy::        Limitations on the accuracy of `time' output.
  850. -* Invoking time::    Summary of the options to the `time' command.
  851. -
  852. -
  853. -File: time.info,  Node: Setting Format,  Next: Format String,  Up: Resource Measurement
  854. -
  855. -Setting the Output Format
  856. -=========================
  857. -
  858. -   `time' uses a "format string" to determine which information to
  859. -display about the resources used by the command it runs.  *Note Format
  860. -String::, for the interpretation of the format string contents.
  861. -
  862. -   You can specify a format string with the command line options listed
  863. -below.  If no format is specified on the command line, but the `TIME'
  864. -environment variable is set, its value is used as the format string.
  865. -Otherwise, the default format built into `time' is used:
  866. -
  867. -     %Uuser %Ssystem %Eelapsed %PCPU (%Xtext+%Ddata %Mmax)k
  868. -     %Iinputs+%Ooutputs (%Fmajor+%Rminor)pagefaults %Wswaps
  869. -
  870. -   The command line options to set the format are:
  871. -
  872. -`-f FORMAT'
  873. -`--format=FORMAT'
  874. -     Use FORMAT as the format string.
  875. -
  876. -`-p'
  877. -`--portability'
  878. -     Use the following format string, for conformance with POSIX
  879. -     standard 1003.2:
  880. -
  881. -          real %e
  882. -          user %U
  883. -          sys %S
  884. -
  885. -`-v'
  886. -`--verbose'
  887. -     Use the built-in verbose format, which displays each available
  888. -     piece of information on the program's resource use on its own
  889. -     line, with an English description of its meaning.
  890. -
  891. -
  892. -File: time.info,  Node: Format String,  Next: Redirecting,  Prev: Setting Format,  Up: Resource Measurement
  893. -
  894. -The Format String
  895. -=================
  896. -
  897. -   The "format string" controls the contents of the `time' output.  It
  898. -consists of "resource specifiers" and "escapes", interspersed with
  899. -plain text.
  900. -
  901. -   A backslash introduces an "escape", which is translated into a
  902. -single printing character upon output.  The valid escapes are listed
  903. -below.  An invalid escape is output as a question mark followed by a
  904. -backslash.
  905. -
  906. -`\t'
  907. -     a tab character
  908. -
  909. -`\n'
  910. -     a newline
  911. -
  912. -`\\'
  913. -     a literal backslash
  914. -
  915. -   `time' always prints a newline after printing the resource use
  916. -information, so normally format strings do not end with a newline
  917. -character (or `\n').
  918. -
  919. -   A resource specifier consists of a percent sign followed by another
  920. -character.  An invalid resource specifier is output as a question mark
  921. -followed by the invalid character.  Use `%%' to output a literal
  922. -percent sign.
  923. -
  924. -   The resource specifiers, which are a superset of those recognized by
  925. -the `tcsh' builtin `time' command, are listed below.  Not all resources
  926. -are measured by all versions of Unix, so some of the values might be
  927. -reported as zero (*note Accuracy::.).
  928. -
  929. -* Menu:
  930. -
  931. -* Time Resources::
  932. -* Memory Resources::
  933. -* I/O Resources::
  934. -* Command Info::
  935. -
  936. -
  937. -File: time.info,  Node: Time Resources,  Next: Memory Resources,  Up: Format String
  938. -
  939. -Time Resources
  940. ---------------
  941. -
  942. -`E'
  943. -     Elapsed real (wall clock) time used by the process, in
  944. -     [hours:]minutes:seconds.
  945. -
  946. -`e'
  947. -     Elapsed real (wall clock) time used by the process, in seconds.
  948. -
  949. -`S'
  950. -     Total number of CPU-seconds used by the system on behalf of the
  951. -     process (in kernel mode), in seconds.
  952. -
  953. -`U'
  954. -     Total number of CPU-seconds that the process used directly (in user
  955. -     mode), in seconds.
  956. -
  957. -`P'
  958. -     Percentage of the CPU that this job got.  This is just user +
  959. -     system times divied by the total running time.
  960. -
  961. -
  962. -File: time.info,  Node: Memory Resources,  Next: I/O Resources,  Prev: Time Resources,  Up: Format String
  963. -
  964. -Memory Resources
  965. -----------------
  966. -
  967. -`M'
  968. -     Maximum resident set size of the process during its lifetime, in
  969. -     Kilobytes.
  970. -
  971. -`t'
  972. -     Average resident set size of the process, in Kilobytes.
  973. -
  974. -`K'
  975. -     Average total (data+stack+text) memory use of the process, in
  976. -     Kilobytes.
  977. -
  978. -`D'
  979. -     Average size of the process's unshared data area, in Kilobytes.
  980. -
  981. -`p'
  982. -     Average size of the process's unshared stack, in Kilobytes.
  983. -
  984. -`X'
  985. -     Average size of the process's shared text, in Kilobytes.
  986. -
  987. -`Z'
  988. -     System's page size, in bytes.  This is a per-system constant, but
  989. -     varies between systems.
  990. -
  991. -
  992. -File: time.info,  Node: I/O Resources,  Next: Command Info,  Prev: Memory Resources,  Up: Format String
  993. -
  994. -I/O Resources
  995. --------------
  996. -
  997. -`F'
  998. -     Number of major, or I/O-requiring, page faults that occurred while
  999. -     the process was running.  These are faults where the page has
  1000. -     actually migrated out of primary memory.
  1001. -
  1002. -`R'
  1003. -     Number of minor, or recoverable, page faults.  These are pages
  1004. -     that are not valid (so they fault) but which have not yet been
  1005. -     claimed by other virtual pages.  Thus the data in the page is
  1006. -     still valid but the system tables must be updated.
  1007. -
  1008. -`W'
  1009. -     Number of times the process was swapped out of main memory.
  1010. -
  1011. -`c'
  1012. -     Number of times the process was context-switched involuntarily
  1013. -     (because the time slice expired).
  1014. -
  1015. -`w'
  1016. -     Number of times that the program was context-switched voluntarily,
  1017. -     for instance while waiting for an I/O operation to complete.
  1018. -
  1019. -`I'
  1020. -     Number of file system inputs by the process.
  1021. -
  1022. -`O'
  1023. -     Number of file system outputs by the process.
  1024. -
  1025. -`r'
  1026. -     Number of socket messages received by the process.
  1027. -
  1028. -`s'
  1029. -     Number of socket messages sent by the process.
  1030. -
  1031. -`k'
  1032. -     Number of signals delivered to the process.
  1033. -
  1034. -
  1035. -File: time.info,  Node: Command Info,  Prev: I/O Resources,  Up: Format String
  1036. -
  1037. -Command Info
  1038. -------------
  1039. -
  1040. -`C'
  1041. -     Name and command line arguments of the command being timed.
  1042. -
  1043. -`x'
  1044. -     Exit status of the command.
  1045. -
  1046. -
  1047. -File: time.info,  Node: Redirecting,  Next: Examples,  Prev: Format String,  Up: Resource Measurement
  1048. -
  1049. -Redirecting Output
  1050. -==================
  1051. -
  1052. -   By default, `time' writes the resource use statistics to the
  1053. -standard error stream.  The options below make it write the statistics
  1054. -to a file instead.  Doing this can be useful if the program you're
  1055. -running writes to the standard error or you're running `time'
  1056. -noninteractively or in the background.
  1057. -
  1058. -`-o FILE'
  1059. -`--output=FILE'
  1060. -     Write the resource use statistics to FILE.  By default, this
  1061. -     *overwrites* the file, destroying the file's previous contents.
  1062. -
  1063. -`-a'
  1064. -`--append'
  1065. -     *Append* the resource use information to the output file instead
  1066. -     of overwriting it.  This option is only useful with the `-o' or
  1067. -     `--output' option.
  1068. -
  1069. -
  1070. -File: time.info,  Node: Examples,  Next: Accuracy,  Prev: Redirecting,  Up: Resource Measurement
  1071. -
  1072. -Examples
  1073. -========
  1074. -
  1075. -Run the command `wc /etc/hosts' and show the default information:
  1076. -
  1077. -     eg$ time wc /etc/hosts
  1078. -           35     111    1134 /etc/hosts
  1079. -     0.00user 0.01system 0:00.04elapsed 25%CPU (0avgtext+0avgdata 0maxresident)k
  1080. -     1inputs+1outputs (0major+0minor)pagefaults 0swaps
  1081. -
  1082. -Run the command `ls -Fs' and show just the user, system, and wall-clock
  1083. -time:
  1084. -
  1085. -     eg$ time -f "\t%E real,\t%U user,\t%S sys" ls -Fs
  1086. -     total 16
  1087. -     1 account/      1 db/           1 mail/         1 run/
  1088. -     1 backups/      1 emacs/        1 msgs/         1 rwho/
  1089. -     1 crash/        1 games/        1 preserve/     1 spool/
  1090. -     1 cron/         1 log/          1 quotas/       1 tmp/
  1091. -             0:00.03 real,   0.00 user,      0.01 sys
  1092. -
  1093. -Edit the file `.bashrc' and have `time' append the elapsed time and
  1094. -number of signals to the file `log', reading the format string from the
  1095. -environment variable `TIME':
  1096. -
  1097. -     eg$ export TIME="\t%E,\t%k" # If using bash or ksh
  1098. -     eg$ setenv TIME "\t%E,\t%k" # If using csh or tcsh
  1099. -     eg$ time -a -o log emacs .bashrc
  1100. -     eg$ cat log
  1101. -             0:16.55,        726
  1102. -
  1103. -Run the command `sleep 4' and show all of the information about it
  1104. -verbosely:
  1105. -
  1106. -     eg$ time -v sleep 4
  1107. -             Command being timed: "sleep 4"
  1108. -             User time (seconds): 0.00
  1109. -             System time (seconds): 0.05
  1110. -             Percent of CPU this job got: 1%
  1111. -             Elapsed (wall clock) time (h:mm:ss or m:ss): 0:04.26
  1112. -             Average shared text size (kbytes): 36
  1113. -             Average unshared data size (kbytes): 24
  1114. -             Average stack size (kbytes): 0
  1115. -             Average total size (kbytes): 60
  1116. -             Maximum resident set size (kbytes): 32
  1117. -             Average resident set size (kbytes): 24
  1118. -             Major (requiring I/O) page faults: 3
  1119. -             Minor (reclaiming a frame) page faults: 0
  1120. -             Voluntary context switches: 11
  1121. -             Involuntary context switches: 0
  1122. -             Swaps: 0
  1123. -             File system inputs: 3
  1124. -             File system outputs: 1
  1125. -             Socket messages sent: 0
  1126. -             Socket messages received: 0
  1127. -             Signals delivered: 1
  1128. -             Page size (bytes): 4096
  1129. -             Exit status: 0
  1130. -
  1131. -
  1132. -File: time.info,  Node: Accuracy,  Next: Invoking time,  Prev: Examples,  Up: Resource Measurement
  1133. -
  1134. -Accuracy
  1135. -========
  1136. -
  1137. -   The elapsed time is not collected atomically with the execution of
  1138. -the program; as a result, in bizarre circumstances (if the `time'
  1139. -command gets stopped or swapped out in between when the program being
  1140. -timed exits and when `time' calculates how long it took to run), it
  1141. -could be much larger than the actual execution time.
  1142. -
  1143. -   When the running time of a command is very nearly zero, some values
  1144. -(e.g., the percentage of CPU used) may be reported as either zero (which
  1145. -is wrong) or a question mark.
  1146. -
  1147. -   Most information shown by `time' is derived from the `wait3' system
  1148. -call.  The numbers are only as good as those returned by `wait3'.  Many
  1149. -systems do not measure all of the resources that `time' can report on;
  1150. -those resources are reported as zero.  The systems that measure most or
  1151. -all of the resources are based on 4.2 or 4.3BSD.  Later BSD releases
  1152. -use different memory management code that measures fewer resources.
  1153. -
  1154. -   On systems that do not have a `wait3' call that returns status
  1155. -information, the `times' system call is used instead.  It provides much
  1156. -less information than `wait3', so on those systems `time' reports most
  1157. -of the resources as zero.
  1158. -
  1159. -   The `%I' and `%O' values are allegedly only "real" input and output
  1160. -and do not include those supplied by caching devices.  The meaning of
  1161. -"real" I/O reported by `%I' and `%O' may be muddled for workstations,
  1162. -especially diskless ones.
  1163. -
  1164. -
  1165. -File: time.info,  Node: Invoking time,  Prev: Accuracy,  Up: Resource Measurement
  1166. -
  1167. -Running the `time' Command
  1168. -==========================
  1169. -
  1170. -   The format of the `time' command is:
  1171. -
  1172. -     time [option...] COMMAND [ARG...]
  1173. -
  1174. -   `time' runs the program COMMAND, with any given arguments ARG....
  1175. -When COMMAND finishes, `time' displays information about resources used
  1176. -by COMMAND (on the standard error output, by default).  If COMMAND
  1177. -exits with non-zero status or is terminated by a signal, `time'
  1178. -displays a warning message and the exit status or signal number.
  1179. -
  1180. -   Options to `time' must appear on the command line before COMMAND.
  1181. -Anything on the command line after COMMAND is passed as arguments to
  1182. -COMMAND.
  1183. -
  1184. -`-o FILE'
  1185. -`--output=FILE'
  1186. -     Write the resource use statistics to FILE.
  1187. -
  1188. -`-a'
  1189. -`--append'
  1190. -     *Append* the resource use information to the output file instead
  1191. -     of overwriting it.
  1192. -
  1193. -`-f FORMAT'
  1194. -`--format=FORMAT'
  1195. -     Use FORMAT as the format string.
  1196. -
  1197. -`--help'
  1198. -     Print a summary of the command line options to `time' and exit.
  1199. -
  1200. -`-p'
  1201. -`--portability'
  1202. -     Use the POSIX format.
  1203. -
  1204. -`-v'
  1205. -`--verbose'
  1206. -     Use the built-in verbose format.
  1207. -
  1208. -`-V'
  1209. -`--version'
  1210. -     Print the version number of `time' and exit.
  1211. -
  1212. -
  1213. -
  1214. -Tag Table:
  1215. -Node: Top934
  1216. -Node: Resource Measurement1725
  1217. -Node: Setting Format3678
  1218. -Node: Format String4907
  1219. -Node: Time Resources6214
  1220. -Node: Memory Resources6844
  1221. -Node: I/O Resources7549
  1222. -Node: Command Info8747
  1223. -Node: Redirecting8964
  1224. -Node: Examples9754
  1225. -Node: Accuracy12064
  1226. -Node: Invoking time13586
  1227. -
  1228. -End Tag Table
  1229.