/busybox-1.35.0/scripts/kconfig/ |
D | util.c | 12 struct file *file_lookup(const char *name) in file_lookup() 14 struct file *file; in file_lookup() local 16 for (file = file_list; file; file = file->next) { in file_lookup() 17 if (!strcmp(name, file->name)) in file_lookup() 18 return file; in file_lookup() 21 file = malloc(sizeof(*file)); in file_lookup() 22 memset(file, 0, sizeof(*file)); in file_lookup() 23 file->name = strdup(name); in file_lookup() 24 file->next = file_list; in file_lookup() 25 file_list = file; in file_lookup() [all …]
|
D | kxgettext.c | 62 char* file; member 66 static struct file_line *file_line__new(char *file, int lineno) in file_line__new() argument 73 self->file = file; in file_line__new() 89 static struct message *message__new(const char *msg, char *option, char *file, int lineno) in message__new() argument 96 self->files = file_line__new(file, lineno); in message__new() 129 static int message__add_file_line(struct message *self, char *file, int lineno) in message__add_file_line() argument 132 struct file_line *fl = file_line__new(file, lineno); in message__add_file_line() 144 static int message__add(const char *msg, char *option, char *file, int lineno) in message__add() argument 152 rc = message__add_file_line(m, file, lineno); in message__add() 154 m = message__new(escaped, option, file, lineno); in message__add() [all …]
|
/busybox-1.35.0/networking/ |
D | httpd_post_upload.cgi | 21 file=$(mktemp) 37 cat >"$file" 43 filesize=`stat -c"%s" "$file"` 47 dd if="$file" skip=$((filesize - tail_len)) bs=1 count=1000 >"$file.tail" 2>/dev/null 48 printf "\r\n%s--\r\n" "$delim_line" >"$file.tail.expected" 49 if ! diff -q "$file.tail" "$file.tail.expected" >/dev/null; then 53 rm "$file.tail" 54 rm "$file.tail.expected" 57 dd of="$file" seek=$((filesize - tail_len)) bs=1 count=0 >/dev/null 2>/dev/null
|
/busybox-1.35.0/libbb/ |
D | get_line_from_file.c | 13 char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end) in bb_get_chunk_from_file() argument 19 while ((ch = getc(file)) != EOF) { in bb_get_chunk_from_file() 48 char* FAST_FUNC xmalloc_fgets(FILE *file) in xmalloc_fgets() argument 52 return bb_get_chunk_from_file(file, &i); in xmalloc_fgets() 55 char* FAST_FUNC xmalloc_fgetline(FILE *file) in xmalloc_fgetline() argument 58 char *c = bb_get_chunk_from_file(file, &i); in xmalloc_fgetline() 70 char* FAST_FUNC xmalloc_fgets(FILE *file) 75 if (getline(&res_buf, &res_sz, file) == -1) { 83 char* FAST_FUNC xmalloc_fgetline(FILE *file) 88 res_sz = getline(&res_buf, &res_sz, file); [all …]
|
D | fgets_str.c | 12 static char *xmalloc_fgets_internal(FILE *file, const char *terminating_string, int chop_off, size_… in xmalloc_fgets_internal() argument 23 ch = fgetc(file); in xmalloc_fgets_internal() 65 char* FAST_FUNC xmalloc_fgets_str(FILE *file, const char *terminating_string) in xmalloc_fgets_str() argument 67 return xmalloc_fgets_internal(file, terminating_string, 0, NULL); in xmalloc_fgets_str() 70 char* FAST_FUNC xmalloc_fgets_str_len(FILE *file, const char *terminating_string, size_t *maxsz_p) in xmalloc_fgets_str_len() argument 72 return xmalloc_fgets_internal(file, terminating_string, 0, maxsz_p); in xmalloc_fgets_str_len() 75 char* FAST_FUNC xmalloc_fgetline_str(FILE *file, const char *terminating_string) in xmalloc_fgetline_str() argument 77 return xmalloc_fgets_internal(file, terminating_string, 1, NULL); in xmalloc_fgetline_str()
|
D | printable.c | 11 void FAST_FUNC fputc_printable(int ch, FILE *file) in fputc_printable() argument 14 fputs("M-", file); in fputc_printable() 30 fputc('^', file); in fputc_printable() 32 fputc(ch, file); in fputc_printable()
|
/busybox-1.35.0/examples/ |
D | linux-2.6.30_proc_self_exe.patch | 7 @@ -652,9 +652,25 @@ struct file *open_exec(const char *name) 8 file = do_filp_open(AT_FDCWD, name, 11 - if (IS_ERR(file)) 13 + if (IS_ERR(file)) { 14 + if ((PTR_ERR(file) == -ENOENT || PTR_ERR(file) == -EACCES) 17 + struct file *sv = file; 23 + file = get_mm_exe_file(mm); 25 + if (file) 27 + file = sv; 33 if (!S_ISREG(file->f_path.dentry->d_inode->i_mode))
|
/busybox-1.35.0/miscutils/ |
D | crond.c | 383 CronFile *file; in delete_cronfile() local 385 while ((file = *pfile) != NULL) { in delete_cronfile() 386 if (strcmp(userName, file->cf_username) == 0) { in delete_cronfile() 387 CronLine **pline = &file->cf_lines; in delete_cronfile() 390 file->cf_has_running = 0; in delete_cronfile() 391 file->cf_deleted = 1; in delete_cronfile() 395 file->cf_has_running = 1; in delete_cronfile() 403 if (file->cf_has_running == 0) { in delete_cronfile() 404 *pfile = file->cf_next; in delete_cronfile() 405 free(file->cf_username); in delete_cronfile() [all …]
|
D | strings.c | 46 FILE *file; in strings_main() local 74 file = fopen_or_warn_stdin(*argv); in strings_main() 75 if (!file) { in strings_main() 82 c = fgetc(file); in strings_main() 107 fclose_if_not_stdin(file); in strings_main()
|
D | mt.c | 109 const char *file = "/dev/tape"; in mt_main() local 121 file = argv[2]; in mt_main() 149 fd = xopen(file, mode); in mt_main() 153 ioctl_or_perror_and_die(fd, MTIOCPOS, &position, "%s", file); in mt_main() 158 ioctl_or_perror_and_die(fd, MTIOCTOP, &op, "%s", file); in mt_main()
|
/busybox-1.35.0/shell/hush_test/hush-psubst/ |
D | falsetick.right | 9 hush: can't open '/does/not/exist': No such file or directory 11 hush: can't open '/does/not/exist': No such file or directory 13 hush: can't open '/does/not/exist': No such file or directory 15 hush: can't open '/does/not/exist': No such file or directory 17 hush: can't open '/does/not/exist': No such file or directory 19 hush: can't open '/does/not/exist': No such file or directory 21 hush: can't open '/does/not/exist': No such file or directory 23 hush: can't open '/does/not/exist': No such file or directory
|
D | emptytick.right | 3 hush: can't execute '': No such file or directory 5 hush: can't execute '': No such file or directory 11 hush: can't execute '': No such file or directory 13 hush: can't execute '': No such file or directory 17 hush: can't execute '': No such file or directory
|
/busybox-1.35.0/coreutils/ |
D | expand.c | 71 static void expand(FILE *file, unsigned tab_size, unsigned opt) in expand() argument 84 line = xmalloc_fgets(file); // in expand() 133 static void unexpand(FILE *file, unsigned tab_size, unsigned opt) in unexpand() argument 137 while ((line = xmalloc_fgets(file)) != NULL) { in unexpand() 192 FILE *file; in expand_main() local 226 file = fopen_or_warn_stdin(*argv); in expand_main() 227 if (!file) { in expand_main() 233 IF_EXPAND(expand(file, tab_size, opt)); in expand_main() 235 IF_UNEXPAND(unexpand(file, tab_size, opt)); in expand_main() 238 if (fclose_if_not_stdin(file)) { in expand_main() [all …]
|
D | sum.c | 41 static unsigned sum_file(const char *file, unsigned type) in sum_file() argument 51 fd = open_or_warn_stdin(file); in sum_file() 63 bb_simple_perror_msg(file); in sum_file() 81 file = ""; in sum_file() 85 printf("%u %llu %s\n", s, (total_bytes + 511) / 512, file); in sum_file() 87 printf("%05u %5llu %s\n", s, (total_bytes + 1023) / 1024, file); in sum_file()
|
/busybox-1.35.0/scripts/ |
D | find_stray_empty_lines | 10 find -type f | while read file; do 11 test x"$file" = x"" && continue 12 tail -n1 $file | while read lastline 16 echo "$file"
|
D | checkstack.pl | 118 my ($func, $file, $lastslash); 124 elsif ($line =~ m/(.*):\s*file format/) { 125 $file = $1; 126 $file =~ s/\.ko//; 127 $lastslash = rindex($file, "/"); 129 $file = substr($file, $lastslash + 1); 149 my $intro = "$func [$file]:"; 167 my $intro = "$func [$file]:";
|
/busybox-1.35.0/shell/hush_test/hush-redir/ |
D | redir_errors.right | 1 hush: can't open '/does/not/exist': No such file or directory 3 hush: can't open '/cant/be/created': No such file or directory 6 hush: can't open '/cant/be/created': No such file or directory 8 hush: can't open '/cant/be/created': No such file or directory 10 hush: can't open '/cant/be/created': No such file or directory 12 hush: can't open '/cant/be/created': No such file or directory
|
D | redir9.tests | 1 echo Ok >file.tmp 2 cat 0<>file.tmp 4 rm file.tmp
|
/busybox-1.35.0/shell/ash_test/ash-redir/ |
D | redir9.tests | 1 echo Ok >file.tmp 2 cat 0<>file.tmp 4 rm file.tmp
|
/busybox-1.35.0/testsuite/du/ |
D | du-m-works | 3 dd if=/dev/zero of=file bs=1M count=1 2>/dev/null 4 test x"`busybox du -m file`" = x"1 file"
|
D | du-h-works | 3 dd if=/dev/zero of=file bs=1M count=1 2>/dev/null 4 test x"`busybox du -h file`" = x"1.0M file"
|
/busybox-1.35.0/ |
D | size_single_applets.sh | 59 file=`grep -l "bool \"$name[\" ]" $(find -name '*.c') | xargs` 61 test "$file" || file=`grep -l "bool \"$name[\" ]" $(find -name 'Config.*') | xargs` 62 test "$file" || continue 83 echo "/' -i $file"
|
/busybox-1.35.0/util-linux/ |
D | more.c | 110 FILE *file; in more_main() local 114 file = stdin; in more_main() 116 file = fopen_or_warn(*argv, "r"); in more_main() 117 if (!file) in more_main() 121 fstat(fileno(file), &st); in more_main() 134 c = getc(file); in more_main() 145 (int) ((uoff_t)ftello(file) / d), in more_main() 217 fclose(file); in more_main()
|
/busybox-1.35.0/testsuite/cp/ |
D | cp-parents | 3 touch foo/bar/baz/file 5 busybox cp --parents foo/bar/baz/file dir 6 test -f dir/foo/bar/baz/file
|
/busybox-1.35.0/shell/hush_test/hush-parsing/ |
D | brace1.right | 4 hush: can't execute '{cmd': No such file or directory 5 hush: can't execute '{': No such file or directory 6 hush: can't execute '{': No such file or directory
|