Deleted Added
full compact
displayq.c (28621) displayq.c (30407)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 98 unchanged lines hidden (view full) ---

107 if (cgetstr(bp, "rp", &RP) < 0)
108 RP = DEFLP;
109 if (cgetstr(bp, "sd", &SD) < 0)
110 SD = _PATH_DEFSPOOL;
111 if (cgetstr(bp,"lo", &LO) < 0)
112 LO = DEFLOCK;
113 if (cgetstr(bp, "st", &ST) < 0)
114 ST = DEFSTAT;
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 98 unchanged lines hidden (view full) ---

107 if (cgetstr(bp, "rp", &RP) < 0)
108 RP = DEFLP;
109 if (cgetstr(bp, "sd", &SD) < 0)
110 SD = _PATH_DEFSPOOL;
111 if (cgetstr(bp,"lo", &LO) < 0)
112 LO = DEFLOCK;
113 if (cgetstr(bp, "st", &ST) < 0)
114 ST = DEFSTAT;
115 if (cgetnum(bp, "ct", &CT) < 0)
116 CT = DEFTIMEOUT;
115 cgetstr(bp, "rm", &RM);
116 if ((cp = checkremote()))
117 printf("Warning: %s\n", cp);
118
119 /*
120 * Print out local queue
121 * Find all the control files in the spooling directory
122 */

--- 109 unchanged lines hidden (view full) ---

232 for (i = 0; i < users && cp - line + 1 + strlen(user[i]) <
233 sizeof(line) - 1; i++) {
234 cp += strlen(cp);
235 *cp++ = ' ';
236 (void) strcpy(cp, user[i]);
237 }
238 strcat(line, "\n");
239 savealrm = signal(SIGALRM, alarmhandler);
117 cgetstr(bp, "rm", &RM);
118 if ((cp = checkremote()))
119 printf("Warning: %s\n", cp);
120
121 /*
122 * Print out local queue
123 * Find all the control files in the spooling directory
124 */

--- 109 unchanged lines hidden (view full) ---

234 for (i = 0; i < users && cp - line + 1 + strlen(user[i]) <
235 sizeof(line) - 1; i++) {
236 cp += strlen(cp);
237 *cp++ = ' ';
238 (void) strcpy(cp, user[i]);
239 }
240 strcat(line, "\n");
241 savealrm = signal(SIGALRM, alarmhandler);
240 alarm(10);
242 alarm(CT);
241 fd = getport(RM, 0);
242 (void)signal(SIGALRM, savealrm);
243 if (fd < 0) {
244 if (from != host)
245 printf("%s: ", host);
246 printf("connection to %s is down\n", RM);
247 }
248 else {

--- 238 unchanged lines hidden ---
243 fd = getport(RM, 0);
244 (void)signal(SIGALRM, savealrm);
245 if (fd < 0) {
246 if (from != host)
247 printf("%s: ", host);
248 printf("connection to %s is down\n", RM);
249 }
250 else {

--- 238 unchanged lines hidden ---