Patches to calls(1) for 4.2 BSD
sources-request at panda.UUCP
sources-request at panda.UUCP
Wed Nov 20 08:28:49 AEST 1985
Mod.sources: Volume 3, Issue 48
Submitted by: The Heliopolist <talcott!seismo!rochester!ken>
I had to make a couple of small changes to calls.c to compile under 4.2
BSD. Also the Makefile need to be edited to include getopt.o.
Cheers, Ken
*** calls.old Tue Nov 19 10:27:18 1985
--- calls.c Tue Nov 19 10:25:22 1985
***************
*** 215,220
{
char command[5120];
register int ret;
if (access (filename, 04) != 0)
{
--- 215,221 -----
{
char command[5120];
register int ret;
+ FILE *popen();
if (access (filename, 04) != 0)
{
***************
*** 242,247
char *
syserrlist()
{
register char *ret =
errno == 0 ?
"errno = 0" :
--- 243,249 -----
char *
syserrlist()
{
+ extern int errno;
register char *ret =
errno == 0 ?
"errno = 0" :
***************
*** 278,284
char *cppcommand;
{
register int c;
! register char *filename = tmpnam ((char *) 0);
register FILE *ofileptr = fopen (filename, "w");
if (ofileptr == NULL)
--- 280,287 -----
char *cppcommand;
{
register int c;
! char *mktemp();
! register char *filename = mktemp ("/tmp/callsXXXXXX");
register FILE *ofileptr = fopen (filename, "w");
if (ofileptr == NULL)
--
UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken at rochester.arpa
USnail: Dept. of Comp. Sci., U. of Rochester, NY 14627. Voice: Ken!
More information about the Mod.sources
mailing list