A few points and questions

Seth W. Klein sklein at mint.net
Sun Oct 14 09:11:36 PDT 2001


jbauman at adsl-63-193-249-142.dsl.snfc21.pacbell.net wrote:
> 
> <snip>
> 
> Mark, did you come to any opinions on cron versions? I could not get
> dcron installed here -- it wouldn't compile. Do you know of any tricks
> that have to be performed to get that to happen?

Yep.... (Hint "strdup".) I know this compiles, i have not run it....
Wonder if Matthew Dillon is still around to do an update.... I'll look
into it.

diff -Naur dcron-2.3.3/protos.h dcron-2.3.3.fixed/protos.h
--- dcron-2.3.3/protos.h	Wed Dec 31 19:00:00 1969
+++ dcron-2.3.3.fixed/protos.h	Sun Oct 14 01:01:51 2001
@@ -0,0 +1,28 @@
+Prototype short DebugOpt;
+Prototype short LogLevel;
+Prototype short ForegroundOpt;
+Prototype char *CDir;
+Prototype int DaemonUid;
+Prototype void log(int level, const char *ctl, ...);
+Prototype void log9(const char *ctl, ...);
+Prototype void logfd(int fd, const char *ctl, ...);
+Prototype void fdprintf(int fd, const char *ctl, ...);
+Prototype int ChangeUser(const char *user, short dochdir);
+Prototype void vlog(int level, int fd, const char *ctl, va_list va);
+Prototype int slog(char *buf, size_t sz, const char *ctl, va_list va, short useDate);
+/* Prototype char *strdup(const char *); */
+Prototype void CheckUpdates(void);
+Prototype void SynchronizeDir(const char *dirName);
+Prototype int TestJobs(time_t t1, time_t t2);
+Prototype void RunJobs(void);
+Prototype int CheckJobs(void);
+Prototype void RunJob(CronFile *file, CronLine *line);
+Prototype void EndJob(CronFile *file, CronLine *line);
+Prototype void log(int level, const char *ctl, ...);
+Prototype void log9(const char *ctl, ...);
+Prototype void logfd(int fd, const char *ctl, ...);
+Prototype void fdprintf(int fd, const char *ctl, ...);
+Prototype int ChangeUser(const char *user, short dochdir);
+Prototype void vlog(int level, int fd, const char *ctl, va_list va);
+Prototype int slog(char *buf, size_t sz, const char *ctl, va_list va, short useDate);
+/* Prototype char *strdup(const char *); */
diff -Naur dcron-2.3.3/subs.c dcron-2.3.3.fixed/subs.c
--- dcron-2.3.3/subs.c	Mon Feb 16 14:35:10 1998
+++ dcron-2.3.3.fixed/subs.c	Sun Oct 14 01:01:49 2001
@@ -15,7 +15,7 @@
 Prototype int ChangeUser(const char *user, short dochdir);
 Prototype void vlog(int level, int fd, const char *ctl, va_list va);
 Prototype int slog(char *buf, size_t sz, const char *ctl, va_list va, short useDate);
-Prototype char *strdup(const char *);
+/* Prototype char *strdup(const char *); */
 
 void 
 log9(const char *ctl, ...)
@@ -131,6 +131,7 @@
     return(pas->pw_uid);
 }
 
+/*
 char *
 strdup(const char *str)
 {
@@ -140,4 +141,5 @@
         strcpy(ptr, str);
     return(ptr);
 }
+*/
 



> <snip>

cheers,
Seth W. "sklein" Klein
-- 
sklein at mint.net                          http://members.mint.net/sklein/
Maintainer, LFS FAQ                 http://www.linuxfromscratch.org/faq/
   They live on the edge?  I live hanging from my safty harness rope.
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-book' in the subject header of the message



More information about the blfs-book mailing list