~ubuntu-branches/ubuntu/trusty/uucp/trusty

« back to all changes in this revision

Viewing changes to uustat.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Palfrader
  • Date: 2004-12-30 15:30:22 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041230153022-mx4cdr9j3u9bldo3
Tags: 1.07-12
Add cs localisation for debconf templates (closes: #287305).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* uustat.c
2
2
   UUCP status program
3
3
 
4
 
   Copyright (C) 1991, 1992, 1993, 1994, 1995 Ian Lance Taylor
 
4
   Copyright (C) 1991, 1992, 1993, 1994, 1995, 2002 Ian Lance Taylor
5
5
 
6
6
   This file is part of the Taylor UUCP package.
7
7
 
17
17
 
18
18
   You should have received a copy of the GNU General Public License
19
19
   along with this program; if not, write to the Free Software
20
 
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
20
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
21
21
 
22
 
   The author of the program may be contacted at ian@airs.com or
23
 
   c/o Cygnus Support, 48 Grove Street, Somerville, MA 02144.
 
22
   The author of the program may be contacted at ian@airs.com.
24
23
   */
25
24
 
26
25
#include "uucp.h"
27
26
 
28
27
#if USE_RCS_ID
29
 
const char uustat_rcsid[] = "$Id: uustat.c,v 1.55 1995/08/02 00:14:15 ian Rel $";
 
28
const char uustat_rcsid[] = "$Id: uustat.c,v 1.61 2002/03/05 19:10:42 ian Rel $";
30
29
#endif
31
30
 
32
31
#include <ctype.h>
387
386
 
388
387
        case 'v':
389
388
          /* Print version and exit.  */
390
 
          printf ("%s: Taylor UUCP %s, copyright (C) 1991, 92, 93, 94, 1995 Ian Lance Taylor\n",
391
 
                  zProgram, VERSION);
 
389
          printf ("uustat (Taylor UUCP) %s\n", VERSION);
 
390
          printf ("Copyright (C) 1991, 92, 93, 94, 1995, 2002 Ian Lance Taylor\n");
 
391
          printf ("This program is free software; you may redistribute it under the terms of\n");
 
392
          printf ("the GNU General Public LIcense.  This program has ABSOLUTELY NO WARRANTY.\n");
392
393
          exit (EXIT_SUCCESS);
393
394
          /*NOTREACHED*/
394
395
 
597
598
static void
598
599
ushelp ()
599
600
{
600
 
  printf ("Taylor UUCP %s, copyright (C) 1991, 92, 93, 94, 1995 Ian Lance Taylor\n",
 
601
  printf ("Taylor UUCP %s, copyright (C) 1991, 92, 93, 94, 1995, 2002 Ian Lance Taylor\n",
601
602
          VERSION);
602
603
  printf ("Usage: %s [options]\n", zProgram);
603
604
  printf (" -a,--all: list all UUCP jobs\n");
629
630
#endif /* HAVE_TAYLOR_CONFIG */
630
631
  printf (" -v,--version: Print version and exit\n");
631
632
  printf (" --help: Print help and exit\n");
 
633
  printf ("Report bugs to taylor-uucp@gnu.org\n");
632
634
}
633
635
 
634
636
/* We need to be able to read information from an execution file.  */
740
742
/*ARGSUSED*/
741
743
static int
742
744
isxqt_cmd (puuconf, argc, argv, pvar, pinfo)
743
 
     pointer puuconf;
 
745
     pointer puuconf ATTRIBUTE_UNUSED;
744
746
     int argc;
745
747
     char **argv;
746
 
     pointer pvar;
747
 
     pointer pinfo;
 
748
     pointer pvar ATTRIBUTE_UNUSED;
 
749
     pointer pinfo ATTRIBUTE_UNUSED;
748
750
{
749
751
  size_t clen;
750
752
  int i;
775
777
/*ARGSUSED*/
776
778
static int
777
779
isxqt_file (puuconf, argc, argv, pvar, pinfo)
778
 
     pointer puuconf;
 
780
     pointer puuconf ATTRIBUTE_UNUSED;
779
781
     int argc;
780
782
     char **argv;
781
 
     pointer pvar;
782
 
     pointer pinfo;
 
783
     pointer pvar ATTRIBUTE_UNUSED;
 
784
     pointer pinfo ATTRIBUTE_UNUSED;
783
785
{
784
786
  if (argc != 2 && argc != 3)
785
787
    return UUCONF_CMDTABRET_CONTINUE;
802
804
/*ARGSUSED*/
803
805
static int
804
806
isxqt_user (puuconf, argc, argv, pvar, pinfo)
805
 
     pointer puuconf;
806
 
     int argc;
 
807
     pointer puuconf ATTRIBUTE_UNUSED;
 
808
     int argc ATTRIBUTE_UNUSED;
807
809
     char **argv;
808
 
     pointer pvar;
809
 
     pointer pinfo;
 
810
     pointer pvar ATTRIBUTE_UNUSED;
 
811
     pointer pinfo ATTRIBUTE_UNUSED;
810
812
{
811
813
  zSxqt_user = zbufcpy (argv[1]);
812
814
  zSxqt_system = zbufcpy (argv[2]);
933
935
{
934
936
  boolean fret;
935
937
 
936
 
  if (! fsysdep_get_work_init (qsys, UUCONF_GRADE_LOW, TRUE))
 
938
  if (! fsysdep_get_work_init (qsys, UUCONF_GRADE_LOW, 0))
937
939
    return FALSE;
938
940
 
939
941
  while (TRUE)
941
943
      struct scmd s;
942
944
      long itime;
943
945
 
944
 
      if (! fsysdep_get_work (qsys, UUCONF_GRADE_LOW, &s))
 
946
      if (! fsysdep_get_work (qsys, UUCONF_GRADE_LOW, 0, &s))
945
947
        {
946
948
          usysdep_get_work_free (qsys);
947
949
          return FALSE;
2166
2168
  char *zid;
2167
2169
  boolean fret;
2168
2170
 
2169
 
  if (! fsysdep_get_work_init (qsys, UUCONF_GRADE_LOW, TRUE))
 
2171
  if (! fsysdep_get_work_init (qsys, UUCONF_GRADE_LOW, 0))
2170
2172
    return FALSE;
2171
2173
 
2172
2174
  cwork = 0;
2178
2180
      long itime;
2179
2181
      char *zthisid;
2180
2182
 
2181
 
      if (! fsysdep_get_work (qsys, UUCONF_GRADE_LOW, &s))
 
2183
      if (! fsysdep_get_work (qsys, UUCONF_GRADE_LOW, 0, &s))
2182
2184
        return FALSE;
2183
2185
      if (s.bcmd == 'H')
2184
2186
        break;
2306
2308
    printf (" ");
2307
2309
 
2308
2310
  if (qxqt == NULL)
2309
 
    printf ("  0X (0 secs)  ");
 
2311
    printf ("  0X (0 secs)   ");
2310
2312
  else
2311
2313
    {
2312
2314
      printf ("%3dX (", qxqt->cxqts);