Only in xmotd-1.16: GNU Only in xmotd-1.16: Imakefile diff -w luis/Makefile xmotd-1.16/Makefile 5c5 < # Makefile generated from "Imake.tmpl" and --- > # Makefile generated from "Imake.tmpl" and 79c79 < CXXSTD_DEFINES = -Dsun -DSVR4 -xarch=v9 --- > CXXSTD_DEFINES = -Dsun -DSVR4 117c117 < STD_DEFINES = -Dsun -DSVR4 -xarch=v9 --- > STD_DEFINES = -Dsun -DSVR4 119c119 < EXTRA_LDOPTIONS =-xildoff -xarch=v9 --- > EXTRA_LDOPTIONS = Only in xmotd-1.16: Makefile.bak Only in xmotd-1.16: README Only in xmotd-1.16: XMotd Only in xmotd-1.16: XMotd_motif Only in xmotd-1.16: appdefs.h Only in xmotd-1.16: atom.c Only in xmotd-1.16: browser Only in xmotd-1.16: browser.c diff -w luis/changed.c xmotd-1.16/changed.c 28c28 < * $Id: changed.c,v 1.1 2001/05/03 14:21:41 root Exp $ --- > * $Id: changed.c,v 1.4 1997/06/02 11:28:58 elf Exp $ 48c48 < struct stat64 motdstat, tsstat; --- > struct stat motdstat, tsstat; 50c50 < stat64(motd, &motdstat); --- > stat(motd, &motdstat); 52c52 < if(stat64(stamp, &tsstat)) --- > if(stat(stamp, &tsstat)) Only in xmotd-1.16: libhtmlw diff -w luis/logo.c xmotd-1.16/logo.c 124,125c124 < /* jgs, 3 may 2001; cast to char* */ < (char *)xlogo_bits,xlogo_width,xlogo_height, --- > xlogo_bits,xlogo_width,xlogo_height, diff -w luis/main.c xmotd-1.16/main.c 153,154d152 < { "usehostnames","UseHostnames",XtRInt, sizeof(int), < offset(usehostnames),XtRString, "0"}, 181d178 < { "-usehostnames", "usehostnames", XrmoptionNoArg, "1"}, 208c205,206 < char * getTimeStampName(void) --- > char * > getTimeStampName() 210,220d207 < /* < * puts, in a user's home directory, < * a file named .xmotd. < * now, a local mod here was to allow for this to be "by host," < * hence, i added the "usehostnames" stuff, here, and elsewhere. < * so, here, there's a file named: < * .xmotd. < * and turns out to be what you get from the "hostname" < * command; around these parts, that's often the FQDN. < * jgs, 3 may 2001 < */ 235,244d221 < if(app_res.usehostnames) < { < char host_name[256]; < < gethostname(host_name, 256); < < strcat(buf, "."); < strcat(buf, host_name); < } < 269c246 < updateTimeStamp(char *time_stamp_file) --- > updateTimeStamp(char *motdfile) 271,278d247 < /* < * the argument was motdfile; which is misleading. < * we don't monkey with /etc/motd's date; it's the < * user's time stamp file. < * ahh, if you're having a bad day, maybe the < * note about errors below will help. < * jgs, 3 may 2001 < */ 287c256 < if(utime(time_stamp_file,&ut)) --- > if(utime(motdfile,&ut)) 300c269 < fp=fopen(time_stamp_file,"w"); --- > fp=fopen(motdfile,"w"); 306,314d274 < /* < * it has been my experience that "some other problem" < * means the file system where .xmotd. is trying < * to be updated, has a permissions problem. < * < * ahem. < * < * jgs, 3 may 2001 < */ 420c380 < struct stat64 motdstat; --- > struct stat motdstat; 426c386 < stat64(argv[i], &motdstat); --- > stat(argv[i], &motdstat); 529c489,491 < main(int argc, char **argv) --- > main(argc, argv) > int argc; > char **argv; diff -w luis/main.h xmotd-1.16/main.h 6d5 < int usehostnames; /* do timestamping with .xmotd.hostname */ Only in xmotd-1.16: maindefs.h Only in xmotd-1.16: patchlevel.h diff -w luis/textmode.c xmotd-1.16/textmode.c 40d39 < extern time_t motdChanged(); /* jgs, 3 may 2001 */ 43c42,44 < runInTextMode(int argc, char **argv) --- > runInTextMode(argc, argv) > int argc; > char **argv; 71c72 < struct stat64 motdstat; --- > struct stat motdstat; 80c81 < stat64(argv[i],&motdstat); --- > stat(argv[i],&motdstat); diff -w luis/usage.c xmotd-1.16/usage.c 34c34,35 < printUsage(char *str) --- > printUsage(str) > char *str; 61,62d61 < /* a local thing. jgs. 3 may 2001 */ < fprintf(stderr, " -usehostnames append hostnames to timestamp\n"); diff -w luis/xlogo.bm xmotd-1.16/xlogo.bm 3,5c3 < static < unsigned /* jgs, 3 may 2001 */ < char xlogo_bits[] = { --- > static char xlogo_bits[] = { Only in xmotd-1.16: xlogo.xpm Only in xmotd-1.16: xmotd.8 diff -w luis/xmotd.c xmotd-1.16/xmotd.c 73c73 < /* extern time_t motdChanged(); unused, jgs, 3 may 2001 */ --- > extern time_t motdChanged(); 75,76c75,76 < /* extern Pixmap icon_pixmap; unused, jgs, 3 may 2001*/ < /* extern char timeStamp[256]; unused, jgs, 3 may 2001 */ --- > extern Pixmap icon_pixmap; > extern char timeStamp[256]; 205c205 < struct stat64 motdstat; --- > struct stat motdstat; 212c212 < /* memset((char *)(&motdstat), 0, sizeof(struct stat64));*/ --- > /* memset((char *)(&motdstat), 0, sizeof(struct stat));*/ 220c220 < stat64(filename,&motdstat); --- > stat(filename,&motdstat);