Lines Matching refs:opts

69 static void sendf(char *rname, int opts);
70 static void rmchk(int opts);
198 opts = 0; in server()
200 opts = (opts << 3) | (*cp++ - '0'); in server()
205 install(cp, opts); in server()
235 install(char *src, char *dest, int destdir, int opts) in install() argument
241 opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ in install()
246 printf("%s%s%s%s%s %s %s\n", opts & VERIFY ? "verify":"install", in install()
247 opts & WHOLE ? " -w" : "", in install()
248 opts & YOUNGER ? " -y" : "", in install()
249 opts & COMPARE ? " -b" : "", in install()
250 opts & REMOVE ? " -R" : "", src, dest); in install()
266 if (opts & WHOLE) { in install()
302 sendf(rname, opts); in install()
313 sendf(char *rname, int opts) in sendf() argument
326 printf("sendf(%s, %x%s)\n", rname, opts, printb(opts, OBITS)); in sendf()
330 if ((opts & FOLLOW ? stat(target, &stb) : lstat(target, &stb)) < 0) { in sendf()
339 if ((u = update(rname, opts, &stb)) == 0) { in sendf()
341 (void) savelink(&stb, opts); in sendf()
360 if (opts & VERIFY) { in sendf()
365 opts &= ~(COMPARE|REMOVE); in sendf()
375 opts, stb.st_mode & 07777, protoname(), protogroup(), in sendf()
389 if (opts & REMOVE) in sendf()
390 rmchk(opts); in sendf()
410 sendf(dp->d_name, opts); in sendf()
421 opts |= COMPARE; in sendf()
425 if ((lp = savelink(&stb, opts)) != NULL) { in sendf()
429 "k%o %s %s\n", opts, lp->pathname, in sendf()
433 "k%o %s/%s %s\n", opts, lp->target, in sendf()
447 opts, stb.st_mode & 07777, stb.st_size, stb.st_mtime, in sendf()
469 if (opts & VERIFY) { in sendf()
479 if ((lp = savelink(&stb, opts)) != NULL) { in sendf()
483 opts, lp->pathname, rname); in sendf()
486 "k%o %s/%s %s\n", opts, lp->target, in sendf()
504 (void) snprintf(buf, sizeof (buf), "R%o %o %ld %ld %s %s %s\n", opts, in sendf()
535 if (f < 0 || f == 0 && (opts & COMPARE)) in sendf()
544 if (opts & VERIFY) in sendf()
557 savelink(struct stat *stp, int opts) in savelink() argument
577 opts & WHOLE ? target : strsub(source, destination, target), in savelink()
598 update(char *rname, int opts, struct stat *stp) in update() argument
605 printf("update(%s, %x%s, %x)\n", rname, opts, in update()
606 printb(opts, OBITS), stp); in update()
686 if (opts & COMPARE) in update()
706 if (opts & YOUNGER) { in update()
771 int f, mode, opts, wrerr, olderrno; in recvf() local
781 opts = 0; in recvf()
783 opts = (opts << 3) | (*cp++ - '0'); in recvf()
845 if (opts & VERIFY) { in recvf()
921 if (opts & COMPARE) { in recvf()
930 if (opts & VERIFY) in recvf()
980 if (opts & COMPARE) { in recvf()
1002 if (opts & VERIFY) { in recvf()
1034 if (opts & COMPARE) { in recvf()
1049 int opts, exists = 0; in hardlink() local
1053 opts = 0; in hardlink()
1055 opts = (opts << 3) | (*cp++ - '0'); in hardlink()
1091 if (opts & VERIFY) { in hardlink()
1218 rmchk(int opts) in rmchk() argument
1229 (void) sprintf(buf, "C%o\n", opts & VERIFY); in rmchk()
1305 int len, opts; in clean() local
1307 opts = 0; in clean()
1309 opts = (opts << 3) | (*cp++ - '0'); in clean()
1353 if (opts & VERIFY) { in clean()