Lines Matching refs:mode

75 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie);
105 func(ltohl(msg.dent.mode),
168 unsigned int *mode, unsigned int *size)
179 *mode = ltohl(msg.stat.mode);
185 int sync_readmode(int fd, const char *path, unsigned *mode)
206 *mode = ltohl(msg.stat.mode);
298 unsigned mtime, mode_t mode, int verifyApk)
310 snprintf(tmp, sizeof(tmp), ",%d", mode);
382 } else if (S_ISREG(mode))
385 else if (S_ISLNK(mode))
535 static void do_sync_ls_cb(unsigned mode, unsigned size, unsigned time,
538 printf("%08x %08x %08x %s\n", mode, size, time, name);
565 unsigned int mode;
588 ci->mode = 0;
654 ci->mode = st.st_mode;
708 unsigned int timestamp, mode, size;
709 if(sync_finish_readtime(fd, &timestamp, &mode, &size))
713 if((S_ISREG(ci->mode & mode) && timestamp == ci->time) ||
714 (S_ISLNK(ci->mode & mode) && timestamp >= ci->time))
724 sync_send(fd, ci->src, ci->dst, ci->time, ci->mode, 0 /* no verify APK */)){
745 unsigned mode;
769 if(sync_readmode(fd, rpath, &mode)) {
772 if((mode != 0) && S_ISDIR(mode)) {
810 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time,
816 if (S_ISDIR(mode)) {
828 } else if (S_ISREG(mode) || S_ISLNK(mode)) {
833 ci->mode = mode;
910 unsigned int timestamp, mode, size;
911 if (sync_finish_readtime(fd, &timestamp, &mode, &size))
915 if ((S_ISREG(ci->mode & mode) && timestamp == ci->time) ||
916 (S_ISLNK(ci->mode & mode) && timestamp >= ci->time))
945 unsigned mode;
956 if(sync_readmode(fd, rpath, &mode)) {
959 if(mode == 0) {
964 if(S_ISREG(mode) || S_ISLNK(mode) || S_ISCHR(mode) || S_ISBLK(mode)) {
991 } else if(S_ISDIR(mode)) {