Change 5758

marc
marc committed this change into //guest/marc_tooley/util/cvs2p4/src/rcs
Request Review
Download .zip
Preliminary mods to get OpenRCS running on Linux

Summary of changes:
. Added strlcpy and strlcat direct from OpenBSD.
. Some casting work for malloc returns (actually xmalloc)
. Converting use of fstat time members to their Linux counterparts
. Adding dummy buffer define for Linux (for a read/write buffer size)
. Converting fgetln() to getline() which is "close enough"
. Added BSD queue mechanism and defines to archive..
. Trying to pull in strtonum, an OpenBSD-ism.
. yacc'd date.y for convenience's sake.
. Fixed names of some defines to their Linux counterparts.

Summary of todo:
. Get a Makefile (or Jamfile?) working for Linux & BSD.
. Surround these modifications in #ifdefs (no autoconf for me!)

To build:
gcc -o rlog *.c

Then, copy "rlog" into cvs2p4/bin/rlog where the scripts expect to
find it, and run then as normal.

WARNING: NOT TESTED.
  • Files 14
  • Comments 0
9 edited 5 added 0 deleted
Makefile#2
Loading...
buf.c#2
Loading...
ci.c#2
Loading...
date.c#1
Loading...
diff.h#2
Loading...
diff3.c#2
Loading...
includes.h#2
Loading...
queue.h#1
Loading...
rcsdiff.c#2
Loading...
rcsutil.c#2
Loading...
strlcat.c#1
Loading...
strlcpy.c#1
Loading...
strtonum.c#1
Loading...
xmalloc.c#2
Loading...
Tip: Use n and p to cycle through the changes.