summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4edd6f7)
SCCS-vsn: usr.bin/uucp/port/mkdir.c 5.2
SCCS-vsn: usr.bin/uucp/uucico/pk0.c 5.4
SCCS-vsn: usr.bin/uucp/uucico/pk1.c 5.4
-static char sccsid[] = "@(#)mkdir.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)mkdir.c 5.2 (Berkeley) %G%";
#endif
#ifndef BSD4_2
#include <stdio.h>
#endif
#ifndef BSD4_2
#include <stdio.h>
/*
* make a directory. Also make sure that the directory is owned
* by the right userid
/*
* make a directory. Also make sure that the directory is owned
* by the right userid
;
(void) chmod(path, mode);
} else {
;
(void) chmod(path, mode);
} else {
(void) execlp("mkdir", "mkdir", path, (char *)NULL);
perror(path);
_exit(1);
}
(void) execlp("mkdir", "mkdir", path, (char *)NULL);
perror(path);
_exit(1);
}
-static char sccsid[] = "@(#)pk0.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)pk0.c 5.4 (Berkeley) %G%";
struct pack *pklines[NPLINES];
int pkactive;
struct pack *pklines[NPLINES];
int pkactive;
/*
* receive control messages
/*
* receive control messages
-pkread(ipk, ibuf, icount)
-int icount;
+pkread(pk, ibuf, icount)
+register struct pack *pk;
- register struct pack *pk;
register x;
int is, cc, xfr, count;
char *cp, **bp;
register x;
int is, cc, xfr, count;
char *cp, **bp;
xfr = 0;
count = 0;
while (pkaccept(pk) == 0)
xfr = 0;
count = 0;
while (pkaccept(pk) == 0)
-pkwrite(ipk, ibuf, icount)
-struct pack *ipk;
+pkwrite(pk, ibuf, icount)
+register struct pack *pk;
char *ibuf;
int icount;
{
char *ibuf;
int icount;
{
- register struct pack *pk;
register x;
int partial;
caddr_t cp;
int cc, fc, count;
register x;
int partial;
caddr_t cp;
int cc, fc, count;
if (pk->p_state&DOWN || !pk->p_state&LIVE) {
return -1;
}
if (pk->p_state&DOWN || !pk->p_state&LIVE) {
return -1;
}
pkoutput(pk)
register struct pack *pk;
{
pkoutput(pk)
register struct pack *pk;
{
* releasing space and turning off line discipline
*/
/*ARGSUSED*/
* releasing space and turning off line discipline
*/
/*ARGSUSED*/
-pkclose(ipk, ibuf, icount)
-struct pack *ipk;
-char *ibuf;
-int icount;
+pkclose(pk)
+register struct pack *pk;
- register struct pack *pk;
register i;
char **bp;
int rcheck = 0;
register i;
char **bp;
int rcheck = 0;
pk->p_state |= DRAINO;
/*
pk->p_state |= DRAINO;
/*
-pkline(pk)
-register struct pack *pk;
-{
- register i;
-
- for(i=0;i<NPLINES;i++) {
- if (pklines[i]==pk)
- return i;
- }
- return -i;
-}
-
#ifndef BSD4_2
bzero(s,n)
register char *s;
#ifndef BSD4_2
bzero(s,n)
register char *s;
-static char sccsid[] = "@(#)pk1.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)pk1.c 5.4 (Berkeley) %G%";
#include "uucp.h"
#include "pk.h"
#include <setjmp.h>
#include "uucp.h"
#include "pk.h"
#include <setjmp.h>
#ifdef BSD4_2
#include <sys/time.h>
#endif BSD4_2
#ifdef BSD4_2
#include <sys/time.h>
#endif BSD4_2
#define CONNODATA 10
#define NTIMEOUT 10
#define CONNODATA 10
#define NTIMEOUT 10
extern char *sys_errlist[];
extern jmp_buf Sjbuf;
extern char *malloc();
extern char *sys_errlist[];
extern jmp_buf Sjbuf;
extern char *malloc();
-struct pack *pklines[NPLINES];
+extern struct pack *pklines[];
/*
* start initial synchronization.
/*
* start initial synchronization.
}
/* set up retransmit or REJ */
tries++;
}
/* set up retransmit or REJ */
tries++;
pk->p_msg |= pk->p_rmsg;
if (pk->p_msg == 0)
pk->p_msg |= M_RR;
pk->p_msg |= pk->p_rmsg;
if (pk->p_msg == 0)
pk->p_msg |= M_RR;