Lines Matching refs:opts

68 static void sendf(char *rname, int opts);
69 static void rmchk(int opts);
197 opts = 0; in server()
199 opts = (opts << 3) | (*cp++ - '0'); in server()
204 install(cp, opts); in server()
233 install(src, dest, destdir, opts) in install() argument
235 int destdir, opts;
241 opts &= ~WHOLE; /* WHOLE mode only useful if renaming */
246 printf("%s%s%s%s%s %s %s\n", opts & VERIFY ? "verify":"install",
247 opts & WHOLE ? " -w" : "",
248 opts & YOUNGER ? " -y" : "",
249 opts & COMPARE ? " -b" : "",
250 opts & REMOVE ? " -R" : "", src, dest);
266 if (opts & WHOLE) {
302 sendf(rname, opts);
313 sendf(rname, opts) in sendf() argument
315 int opts;
328 printf("sendf(%s, %x%s)\n", rname, opts, printb(opts, OBITS));
332 if ((opts & FOLLOW ? stat(target, &stb) : lstat(target, &stb)) < 0) {
341 if ((u = update(rname, opts, &stb)) == 0) {
343 (void) savelink(&stb, opts);
362 if (opts & VERIFY) {
367 opts &= ~(COMPARE|REMOVE);
377 opts, stb.st_mode & 07777, protoname(), protogroup(),
391 if (opts & REMOVE)
392 rmchk(opts);
412 sendf(dp->d_name, opts);
423 opts |= COMPARE;
427 if ((lp = savelink(&stb, opts)) != NULL) {
431 "k%o %s %s\n", opts, lp->pathname,
435 "k%o %s/%s %s\n", opts, lp->target,
449 opts, stb.st_mode & 07777, stb.st_size, stb.st_mtime,
471 if (opts & VERIFY) {
481 if ((lp = savelink(&stb, opts)) != NULL) {
485 opts, lp->pathname, rname);
488 "k%o %s/%s %s\n", opts, lp->target,
506 (void) snprintf(buf, sizeof (buf), "R%o %o %ld %ld %s %s %s\n", opts,
537 if (f < 0 || f == 0 && (opts & COMPARE))
546 if (opts & VERIFY)
559 savelink(stp, opts) in savelink() argument
561 int opts;
581 opts & WHOLE ? target : strsub(source, destination, target),
602 update(rname, opts, stp) in update() argument
604 int opts;
612 printf("update(%s, %x%s, %x)\n", rname, opts,
613 printb(opts, OBITS), stp);
693 if (opts & COMPARE)
713 if (opts & YOUNGER) {
781 int f, mode, opts, wrerr, olderrno; local
791 opts = 0;
793 opts = (opts << 3) | (*cp++ - '0');
855 if (opts & VERIFY) {
931 if (opts & COMPARE) {
940 if (opts & VERIFY)
990 if (opts & COMPARE) {
1012 if (opts & VERIFY) {
1044 if (opts & COMPARE) {
1060 int opts, exists = 0; local
1064 opts = 0;
1066 opts = (opts << 3) | (*cp++ - '0');
1102 if (opts & VERIFY) {
1232 rmchk(opts) in rmchk() argument
1233 int opts; in rmchk()
1244 (void) sprintf(buf, "C%o\n", opts & VERIFY);
1321 int len, opts; local
1323 opts = 0;
1325 opts = (opts << 3) | (*cp++ - '0');
1369 if (opts & VERIFY) {