[gnu.utils.bug] gnu diff: SYSV bug

pb%computer-lab.cambridge.ac.uk@nsfnet-relay.ac.uk (Piete Brooks, Postmaster) (09/22/89)

[[ If this is a DL, please reply to me by email, as I am not on ity ]]

When trying to build version 1.7 on an HP, diff3.c failed as F_DUPFD
was not declared.
This was becuase fcntl.h was not included, either directly, or through
diff.h or directly. Trivial patch:

*** diff3.c.l	Sat Apr  8 20:56:10 1989
--- diff3.c	Thu Sep 21 06:46:14 1989
***************
*** 25,30 ****
--- 25,32 ----
  #include <ctype.h>
  
  #ifdef USG
+ #include <fcntl.h>
+ 
  /* Define needed BSD functions in terms of sysV library.  */
  
  #define bcopy(s,d,n)	memcpy((d),(s),(n))

ALSO: as there is no man page, could there be some way of getting a
brief listing of the options & what they do ?

Is there any reason for not having a man page ?
Would you include one if I generated it ?

I find "-p" often ends up saying "int foo;" rather than getting the
function name. It works better as "-c -F'^[_a-zA-Z].*('"

Are there any prospects of adding -D ?
At the moment I cannot install it as "/bin/diff" as it is not upwards compatible.

Could there be some way to make context diff take account of the amount
of information contained in the surrounding text ?
If there are blank lines, or lines with just a "}" in them, three lines
of context is not really enough.