/third_party/toybox/toys/posix/ |
H A D | cp.c | 112 int (*callback)(struct dirtree *try); 126 static int cp_node(struct dirtree *try) in cp_node() argument 128 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() 129 tfd = dirtree_parentfd(try); in cp_node() 131 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node() 134 if (!dirtree_notdotdot(try)) return 0; in cp_node() 137 if (S_ISDIR(try->st.st_mode) && try in cp_node() 478 install_node(struct dirtree *try) install_node() argument [all...] |
H A D | rm.c | 26 static int do_rm(struct dirtree *try) in do_rm() argument 28 int fd=dirtree_parentfd(try), dir=S_ISDIR(try->st.st_mode), or=0, using=0; in do_rm() 31 if (isdotdot(try->name)) return 0; in do_rm() 39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm() 44 if (!(dir && try->again) && ((or && isatty(0)) || FLAG(i))) { in do_rm() 45 char *s = dirtree_path(try, 0); in do_rm() 57 if (faccessat(fd, try->name, R_OK, 0)) { in do_rm() 58 if (FLAG(f)) wfchmodat(fd, try in do_rm() [all...] |
H A D | logger.c | 35 int try, i, matchlen = 0, found = -1, ambiguous = 1; in arrayfind() local 37 for (try = 0; try<len; try++) { in arrayfind() 40 if (matchlen<i) found = try, ambiguous = 0; in arrayfind() 42 if (!names[try][i]) return try; in arrayfind() 45 if (!names[try][i]) break; in arrayfind() 46 if (toupper(str[i]) != toupper(names[try][i])) break; in arrayfind()
|
H A D | chmod.c | 42 static int do_chmod(struct dirtree *try) in do_chmod() argument 46 if (!dirtree_notdotdot(try)) return 0; in do_chmod() 48 mode = string_to_mode(TT.mode, try->st.st_mode); in do_chmod() 50 char *s = dirtree_path(try, 0); in do_chmod() 54 wfchmodat(dirtree_parentfd(try), try->name, mode); in do_chmod()
|
H A D | ln.c | 56 char *oldnew, *try = toys.optargs[i]; in ln_main() local 58 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try)); in ln_main() 74 rc = FLAG(s) ? symlink(try, new) : link(try, new); in ln_main() 88 FLAG(s) ? "symbolic" : "hard", try, new); in ln_main() 89 else if (FLAG(v)) fprintf(stderr, "'%s' -> '%s'\n", new, try); in ln_main()
|
H A D | du.c | 124 struct dirtree *try = node; in do_du() local 126 while ((try = try->parent)) in do_du() 127 if (node->st.st_dev==try->st.st_dev && node->st.st_ino==try->st.st_ino) in do_du()
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | cp.c | 96 int (*callback)(struct dirtree *try); 110 static int cp_node(struct dirtree *try) in cp_node() argument 112 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() 113 tfd = dirtree_parentfd(try); in cp_node() 115 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node() 118 if (!dirtree_notdotdot(try)) return 0; in cp_node() 121 if (S_ISDIR(try->st.st_mode) && try in cp_node() 482 install_node(struct dirtree *try) install_node() argument [all...] |
H A D | rm.c | 71 static int do_rm(struct dirtree *try) in do_rm() argument 75 int fd=dirtree_parentfd(try), dir=S_ISDIR(try->st.st_mode), or=0; in do_rm() 78 if (isdotdot(try->name)) { in do_rm() 89 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm() 90 if (!(dir && try->again) && ((or && isatty(0)) || FLAG(i))) { in do_rm() 91 char *s = dirtree_path(try, 0); in do_rm() 99 if (faccessat(fd, try->name, R_OK, 0)) { in do_rm() 100 if (FLAG(f)) wfchmodat(fd, try in do_rm() [all...] |
H A D | chmod.c | 42 static int do_chmod(struct dirtree *try) in do_chmod() argument 46 if (!dirtree_notdotdot(try)) return 0; in do_chmod() 48 mode = string_to_mode(TT.mode, try->st.st_mode); in do_chmod() 50 char *s = dirtree_path(try, 0); in do_chmod() 54 wfchmodat(dirtree_parentfd(try), try->name, mode); in do_chmod()
|
H A D | du.c | 108 struct dirtree *try = node; in do_du() local 110 while ((try = try->parent)) in do_du() 111 if (node->st.st_dev==try->st.st_dev && node->st.st_ino==try->st.st_ino) in do_du()
|
/third_party/toybox/toys/other/ |
H A D | shred.c | 38 char **try; in shred_main() local 45 for (try = toys.optargs; *try; try++) { in shred_main() 47 int fd = open(*try, O_RDWR), iter = 0, throw; in shred_main() 51 chmod(*try, 0600); in shred_main() 52 fd = open(*try, O_RDWR); in shred_main() 55 perror_msg_raw(*try); in shred_main() 62 error_msg("%s: needs -s", *try); in shred_main() 82 perror_msg_raw(*try); in shred_main() [all...] |
/third_party/curl/scripts/ |
H A D | schemetable.c | 94 static void showtable(int try, int init, int shift) in showtable() argument 101 ix[i] = num[i] % try; in showtable() 112 printf(" static const struct Curl_handler * const protocols[%d] = {", try); in showtable() 115 for(i=0; i < try; i++) { in showtable() 145 int try; in main() local 177 /* try different remainders to find smallest possible table */ in main() 178 for(try = 28; try < 199; try++) { in main() 181 ix[i] = num[i] % try; in main() [all...] |
/third_party/rust/crates/autocfg/src/ |
H A D | version.rs | 27 let output = try!(Command::new(rustc) in from_rustc() 34 let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); in from_rustc() 50 let major = try!(iter.next().ok_or(error::from_str("missing major version"))); in from_rustc() 51 let minor = try!(iter.next().ok_or(error::from_str("missing minor version"))); in from_rustc() 52 let patch = try!(iter.next().ok_or(error::from_str("missing patch version"))); in from_rustc() 55 try!(major.parse().map_err(error::from_num)), in from_rustc() 56 try!(minor.parse().map_err(error::from_num)), in from_rustc() 57 try!(patch.parse().map_err(error::from_num)), in from_rustc()
|
/third_party/musl/porting/uniproton/kernel/src/stdlib/ |
H A D | bsearch.c | 5 void *try;
in bsearch() local 8 try = (char *)base + width*(nel/2);
in bsearch() 9 sign = cmp(key, try);
in bsearch() 13 base = (char *)try + width;
in bsearch() 16 return try;
in bsearch()
|
/third_party/musl/src/stdlib/ |
H A D | bsearch.c | 5 void *try; in bsearch() local 8 try = (char *)base + width*(nel/2); in bsearch() 9 sign = cmp(key, try); in bsearch() 13 base = (char *)try + width; in bsearch() 16 return try; in bsearch()
|
/third_party/musl/porting/liteos_m/kernel/src/stdlib/ |
H A D | bsearch.c | 5 void *try;
in bsearch() local 8 try = (char *)base + width*(nel/2);
in bsearch() 9 sign = cmp(key, try);
in bsearch() 13 base = (char *)try + width;
in bsearch() 16 return try;
in bsearch()
|
/third_party/zlib/test/ |
H A D | infcover.c | 508 local int try(char *hex, char *id, int err) in try() function 584 try("0 0 0 0 0", "invalid stored block lengths", 1); in cover_inflate() 585 try("3 0", "fixed", 0); in cover_inflate() 586 try("6", "invalid block type", 1); in cover_inflate() 587 try("1 1 0 fe ff 0", "stored", 0); in cover_inflate() 588 try("fc 0 0", "too many length or distance symbols", 1); in cover_inflate() 589 try("4 0 fe ff", "invalid code lengths set", 1); in cover_inflate() 590 try("4 0 24 49 0", "invalid bit length repeat", 1); in cover_inflate() 591 try("4 0 24 e9 ff ff", "invalid bit length repeat", 1); in cover_inflate() 592 try(" in cover_inflate() [all...] |
/third_party/toybox/scripts/ |
H A D | config2help.c | 4 we read .config and set sym->try on each enabled symbol. 324 struct symbol *try; in main() local 327 for (try=sym; try; try=try->next) { in main() 328 len = strlen(try->name); in main() 329 if (!strncmp(try->name, s, len) && s[len]=='=' && s[len+1]=='y') { in main() 330 try->enabled++; in main() 354 char *try, **cdashline in main() local [all...] |
/third_party/musl/porting/liteos_a/user/src/stdio/ |
H A D | tmpnam.c | 18 int try; in tmpnam() local 21 for (try=0; try<MAXTRIES; try++) { in tmpnam()
|
H A D | tmpfile.c | 15 int try; in tmpfile() local 17 for (try=0; try<MAXTRIES; try++) { in tmpfile()
|
/third_party/musl/src/stdio/ |
H A D | tmpnam.c | 16 int try; in tmpnam() local 19 for (try=0; try<MAXTRIES; try++) { in tmpnam()
|
H A D | tmpfile.c | 14 int try; in tmpfile() local 16 for (try=0; try<MAXTRIES; try++) { in tmpfile()
|
H A D | tempnam.c | 16 int try; in tempnam() local 37 for (try=0; try<MAXTRIES; try++) { in tempnam()
|
/third_party/zlib/ |
H A D | configure | 13 # If you have problems, try without defining CC and CFLAGS before reporting 243 echo "If this doesn't work for you, try win32/Makefile.gcc." | tee -a configure.log 387 try() function 394 try() function 428 if try $CC -c $CFLAGS $test.c; then 445 if try $CC -c $SFLAGS $test.c && 446 try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then 452 echo 'No shared library support; try without defining CC and CFLAGS' | tee -a configure.log 477 if try $CC -c $CFLAGS $test.c; then 486 if try [all...] |
/third_party/musl/src/time/ |
H A D | __tz.c | 161 const char *try, *p; in do_tzset() local 285 try = search; in do_tzset() 286 while (!map && *try) { in do_tzset() 287 tzdata_map = __map_tzdata_file(try, pathname, &tzdata_map_size, &map_offset, &map_size); in do_tzset() 291 try += strlen(try) + 1; in do_tzset() 307 for (try=search; !map && *try; try+=l+1) { in do_tzset() 308 l = strlen(try); in do_tzset() [all...] |