Newsgroups: fj.sys.sun
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!nirvana.cs.titech!wnoc-tyo-news!sh.wide!kogwy!cs-keio!virgo!yakoh
From: yakoh@aa.cs.keio.ac.jp (Takahiro Yakoh)
Subject: Re: FlexFAX on SunOS-4.1
In-Reply-To: toku@dit.co.jp's message of Thu, 10 Feb 1994 04:38:53 GMT
Message-ID: <YAKOH.94Feb16163457@nekkar.aa.cs.keio.ac.jp>
Sender: news@sync.cs.keio.ac.jp
Nntp-Posting-Host: virgo.aa.cs.keio.ac.jp
Organization: Anzai Laboratory, Keio University, Yokohama Japan.
References: <MUKAWA.94Feb9180235@vtec.ctec.tn-sec.ntt.jp> <1994Feb10.043853.4308@dit.co.jp>
Date: Wed, 16 Feb 1994 07:34:57 GMT
Dnas-Posting-Host: nekkar.aa.cs.keio.ac.jp
Lines: 82
Xref: galaxy.trc.rwcp.or.jp fj.sys.sun:5372
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.sys.sun&nb=5372&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

  $BLp8~!w7DBg$G$9!#(B

>>>>> On Thu, 10 Feb 1994 04:38:53 GMT, toku@dit.co.jp (Yoshitaka Tokugawa) said:
> FlexFax$B$O(Bgcc 2.5.x$B$@$H$&$^$/F0$-$^$;$s!#$&$A$G$O(Bgcc 2.4.5$B$G(B
> $B%3%s%Q%$%k$7$F;H$C$F$$$^$9!#(B2.5.x$B$G%3%s%Q%$%k$9$k$?$a$N(B
> unofficial patch$B$,(Bftp.sgi.com$B$KCV$$$F$"$C$?$H;W$$$^$9$,(B
> $B%U%!%$%kL>$J$I$OK:$l$F$7$^$$$^$7$?!#(B

flexfax$B$N%a!<%j%s%0%j%9%H$K%Q%C%A$,N.$l$^$7$?$N$G!"0J2<$K0zMQ$7$^$9!#(B
$B$^$@;d<+?.$O;n$7$F$$$J$$$N$GCG8@$G$-$^$;$s$,!"F0:n$9$k$h$&$K$J$k$i$7$$(B
$B$G$9!#$[$s$N:3:Y$J=$@5$G$9!#(B
  $B0zMQ$9$k$K:]$7!":n<T(B(Henry Bland$B$5$s(B henry@geo.ucalgary.ca)$B$NN;2r$O(B
$B<h$C$F$"$j$^$9!#(B

$BLp8~(B

------------------------CUT HERE--------------------------
*** faxServerApp.c++.origSat Feb 12 23:42:00 1994
--- faxServerApp.c++Tue Feb 15 16:48:51 1994
***************
*** 255,284 ****
  void
  faxServerApp::scanQueueDirectory()
  {
      DIR* dir = opendir(sendDir);
      if (dir) {
  fxStr prefix(sendDir | "/");
  (void) flock(dir->dd_fd, LOCK_SH);
  time_t now = time(0);
  Job** last = &queue;
  for (dirent* dp = readdir(dir); dp; dp = readdir(dir)) {
!     if (dp->d_name[0] != 'q')
! continue;
      struct stat sb;
      fxStr file(prefix | dp->d_name);
      if (stat((char*)file, &sb) >= 0 && (sb.st_mode&S_IFMT) == S_IFREG) {
  // NB: not right--should read tts from q file
  Job* job = new Job(file, now);
  job->next = 0;
  *last = job;
  last = &job->next;
      }
  }
  (void) flock(dir->dd_fd, LOCK_UN);
  closedir(dir);
      } else
  logError("Could not scan queue directory");
      // XXX could do some intelligent queue processing
      // (e.g. coalesce jobs to the same destination)
  }
  
--- 255,284 ----
  void
  faxServerApp::scanQueueDirectory()
  {
      DIR* dir = opendir(sendDir);
      if (dir) {
  fxStr prefix(sendDir | "/");
  (void) flock(dir->dd_fd, LOCK_SH);
  time_t now = time(0);
  Job** last = &queue;
  for (dirent* dp = readdir(dir); dp; dp = readdir(dir)) {
!     if (dp->d_name[0] == 'q') {
  struct stat sb;
  fxStr file(prefix | dp->d_name);
  if (stat((char*)file, &sb) >= 0 && (sb.st_mode&S_IFMT) == S_IFREG) {
      // NB: not right--should read tts from q file
                      Job* job = new Job(file, now);
      job->next = 0;
      *last = job;
      last = &job->next;
+         }
      }
  }
  (void) flock(dir->dd_fd, LOCK_UN);
  closedir(dir);
      } else
  logError("Could not scan queue directory");
      // XXX could do some intelligent queue processing
      // (e.g. coalesce jobs to the same destination)
  }
----------------------THE END---------------------------
