Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 219) sorted by relevance

123456789

/busybox-1.35.0/testsuite/
Dbc_cosine.bc2 p = 4 * a(1)
13 c(p / 7)
14 c(-p / 7)
15 c(p / 4)
16 c(-p / 4)
17 c(p / 3)
18 c(-p / 3)
19 c(p / 2)
20 c(-p / 2)
21 c(3 * p / 4)
[all …]
Dbc_sine.bc2 p = 4 * a(1)
13 s(p / 7)
14 s(-p / 7)
15 s(p / 4)
16 s(-p / 4)
17 s(p / 3)
18 s(-p / 3)
19 s(p / 2)
20 s(-p / 2)
21 s(3 * p / 4)
[all …]
/busybox-1.35.0/coreutils/
Dod.c41 char *num, *p; in odoffset() local
57 p = **argvp; in odoffset()
59 if (!p) { in odoffset()
64 if ((*p != '+') in odoffset()
66 || (!isdigit(p[0]) in odoffset()
67 && ((p[0] != 'x') || !isxdigit(p[1]))))) in odoffset()
75 if (p[0] == '+') in odoffset()
76 ++p; in odoffset()
77 if (p[0] == 'x' && isxdigit(p[1])) { in odoffset()
78 ++p; in odoffset()
[all …]
Dpwd.c35 char *p; in logical_getcwd() local
41 p = wd; in logical_getcwd()
42 while (*p) { in logical_getcwd()
44 if (*p++ != '/') in logical_getcwd()
46 if (*p != '.') in logical_getcwd()
49 p++; in logical_getcwd()
50 if (*p == '.') in logical_getcwd()
51 p++; /* we found "/.." */ in logical_getcwd()
52 if (*p == '\0' || *p == '/') in logical_getcwd()
Dchgrp.c58 char **p = argv; in chgrp_main() local
59 while (*++p) { in chgrp_main()
60 if (p[0][0] != '-') { in chgrp_main()
61 p[0] = xasprintf(":%s", p[0]); in chgrp_main()
Decho.c254 char *p; in echo_main() local
278 p = arg + 1; in echo_main()
279 if (!*p) /* A single '-', so echo it. */ in echo_main()
283 if (!strchr("neE", *p)) in echo_main()
285 } while (*++p); in echo_main()
288 p = arg + 1; in echo_main()
290 if (*p == 'n') in echo_main()
292 if (*p == 'e') in echo_main()
294 } while (*++p); in echo_main()
303 cur_io->iov_base = p = arg; in echo_main()
[all …]
/busybox-1.35.0/networking/libiproute/
Diptunnel.c108 static int do_get_ioctl(const char *basedev, struct ip_tunnel_parm *p) in do_get_ioctl() argument
115 ifr.ifr_ifru.ifru_data = (void*)p; in do_get_ioctl()
123 static int do_add_ioctl(int cmd, const char *basedev, struct ip_tunnel_parm *p) in do_add_ioctl() argument
128 if (cmd == SIOCCHGTUNNEL && p->name[0]) { in do_add_ioctl()
129 strncpy_IFNAMSIZ(ifr.ifr_name, p->name); in do_add_ioctl()
133 ifr.ifr_ifru.ifru_data = (void*)p; in do_add_ioctl()
149 static int do_del_ioctl(const char *basedev, struct ip_tunnel_parm *p) in do_del_ioctl() argument
154 if (p->name[0]) { in do_del_ioctl()
155 strncpy_IFNAMSIZ(ifr.ifr_name, p->name); in do_del_ioctl()
159 ifr.ifr_ifru.ifru_data = (void*)p; in do_del_ioctl()
[all …]
/busybox-1.35.0/libbb/
Dsimplify_path.c13 char *s, *p; in bb_simplify_abs_path_inplace() local
15 p = s = start; in bb_simplify_abs_path_inplace()
17 if (*p == '/') { in bb_simplify_abs_path_inplace()
27 if (p > start) { in bb_simplify_abs_path_inplace()
28 while (*--p != '/') /* omit previous dir */ in bb_simplify_abs_path_inplace()
35 *++p = *s; in bb_simplify_abs_path_inplace()
38 if ((p == start) || (*p != '/')) { /* not a trailing slash */ in bb_simplify_abs_path_inplace()
39 ++p; /* so keep last character */ in bb_simplify_abs_path_inplace()
41 *p = '\0'; in bb_simplify_abs_path_inplace()
42 return p; in bb_simplify_abs_path_inplace()
[all …]
Dfind_pid_by_name.c40 static int comm_match(procps_status_t *p, const char *procName) in comm_match() argument
45 if (strncmp(p->comm, procName, 15) != 0) in comm_match()
51 if (p->comm[14] == '\0') in comm_match()
58 if (!p->argv0) in comm_match()
61 argv1idx = strlen(p->argv0) + 1; in comm_match()
62 if (argv1idx >= p->argv_len) in comm_match()
64 argv1 = p->argv0 + argv1idx; in comm_match()
85 procps_status_t* p = NULL; in find_pid_by_name() local
88 while ((p = procps_scan(p, PSSCAN_PID|PSSCAN_COMM|PSSCAN_ARGVN|PSSCAN_EXE))) { in find_pid_by_name()
89 if (comm_match(p, procName) in find_pid_by_name()
[all …]
Dprogress.c48 void FAST_FUNC bb_progress_init(bb_progress_t *p, const char *curfile) in bb_progress_init() argument
52 p->curfile = unicode_conv_to_printable_fixedwidth(/*NULL,*/ curfile, 20); in bb_progress_init()
54 p->curfile = curfile; in bb_progress_init()
56 p->start_sec = monotonic_sec(); in bb_progress_init()
57 p->last_update_sec = p->start_sec; in bb_progress_init()
58 p->last_change_sec = p->start_sec; in bb_progress_init()
59 p->last_size = 0; in bb_progress_init()
61 p->last_eta = INT_MAX; in bb_progress_init()
72 int FAST_FUNC bb_progress_update(bb_progress_t *p, in bb_progress_update() argument
85 since_last_update = elapsed - p->last_update_sec; in bb_progress_update()
[all …]
Dgetpty.c14 int p; in xgetpty() local
17 p = open("/dev/ptmx", O_RDWR); in xgetpty()
18 if (p >= 0) { in xgetpty()
19 grantpt(p); /* chmod+chown corresponding slave pty */ in xgetpty()
20 unlockpt(p); /* (what does this do?) */ in xgetpty()
24 name = ptsname(p); /* find out the name of slave pty */ in xgetpty()
32 if (ptsname_r(p, line, GETPTY_BUFSIZE-1) != 0) { in xgetpty()
37 return p; in xgetpty()
56 p = open(line, O_RDWR | O_NOCTTY); in xgetpty()
57 if (p >= 0) { in xgetpty()
[all …]
Dexecutable.c41 char *p, *n; in find_executable() local
43 p = *PATHp; in find_executable()
44 while (p) { in find_executable()
47 n = strchr(p, ':'); in find_executable()
49 p = concat_path_file( in find_executable()
50 p[0] ? p : ".", /* handle "::" case */ in find_executable()
53 ex = file_is_executable(p); in find_executable()
57 return p; in find_executable()
59 free(p); in find_executable()
60 p = n; in find_executable()
[all …]
Dherror_msg.c13 va_list p; in bb_herror_msg() local
15 va_start(p, s); in bb_herror_msg()
16 bb_verror_msg(s, p, hstrerror(h_errno)); in bb_herror_msg()
17 va_end(p); in bb_herror_msg()
22 va_list p; in bb_herror_msg_and_die() local
24 va_start(p, s); in bb_herror_msg_and_die()
25 bb_verror_msg(s, p, hstrerror(h_errno)); in bb_herror_msg_and_die()
26 va_end(p); in bb_herror_msg_and_die()
Dperror_msg.c13 va_list p; in bb_perror_msg() local
15 va_start(p, s); in bb_perror_msg()
17 bb_verror_msg(s, p, errno ? strerror(errno) : NULL); in bb_perror_msg()
18 va_end(p); in bb_perror_msg()
23 va_list p; in bb_perror_msg_and_die() local
25 va_start(p, s); in bb_perror_msg_and_die()
27 bb_verror_msg(s, p, errno ? strerror(errno) : NULL); in bb_perror_msg_and_die()
28 va_end(p); in bb_perror_msg_and_die()
Dparse_mode.c37 const char *p; in bb_parse_mode() local
68 p = who_chars; in bb_parse_mode()
70 if (*p == *s) { in bb_parse_mode()
71 wholist |= who_mask[(int)(p-who_chars)]; in bb_parse_mode()
77 } while (*++p); in bb_parse_mode()
95 p = who_chars + 1; /* Skip 'a' entry. */ in bb_parse_mode()
97 if (*p == *s) { in bb_parse_mode()
99 permlist = who_mask[(int)(p-who_chars)] in bb_parse_mode()
110 } while (*++p); in bb_parse_mode()
115 p = perm_chars; in bb_parse_mode()
[all …]
Dgetopt_allopts.c15 char *p; in make_all_argv_opts() local
22 p = xmalloc(strlen(*argv) + 2); in make_all_argv_opts()
23 *p = '-'; in make_all_argv_opts()
24 strcpy(p + 1, *argv); in make_all_argv_opts()
25 *argv = p; in make_all_argv_opts()
/busybox-1.35.0/scripts/basic/
Dfixdep.c208 char *p; in use_config() local
217 for (p = s; p < s + slen; p++) { in use_config()
218 if (*p == '_') in use_config()
219 *p = '/'; in use_config()
221 *p = tolower((int)*p); in use_config()
231 unsigned char *p = (unsigned char *)map; in parse_config_file() local
235 for (; p <= end_3; p++) { in parse_config_file()
237 if (!(isalnum(*p) || *p == '_')) in parse_config_file()
241 if (p < end_7 && p[6] == '_') { in parse_config_file()
242 if (!memcmp(p, "CONFIG", 6)) goto conf7; in parse_config_file()
[all …]
/busybox-1.35.0/selinux/
Dsetsebool.c32 char *p; in setsebool_main() local
38 p = argv[2]; in setsebool_main()
40 if (LONE_CHAR(p, '1') || strcasecmp(p, "true") == 0 || strcasecmp(p, "on") == 0) { in setsebool_main()
42 } else if (LONE_CHAR(p, '0') || strcasecmp(p, "false") == 0 || strcasecmp(p, "off") == 0) { in setsebool_main()
/busybox-1.35.0/loginutils/
Dadduser.c92 static void passwd_study(struct passwd *p) in passwd_study() argument
96 if (getpwnam(p->pw_name)) { in passwd_study()
97 bb_error_msg_and_die("%s '%s' in use", "user", p->pw_name); in passwd_study()
103 p->pw_uid = CONFIG_FIRST_SYSTEM_ID; in passwd_study()
106 p->pw_uid = CONFIG_LAST_SYSTEM_ID + 1; in passwd_study()
110 while (getpwuid(p->pw_uid) || (p->pw_gid == (gid_t)-1 && getgrgid(p->pw_uid))) { in passwd_study()
113 bb_error_msg_and_die("%s '%s' in use", "uid", itoa(p->pw_uid)); in passwd_study()
116 if (p->pw_uid == max) { in passwd_study()
120 p->pw_uid++; in passwd_study()
123 if (p->pw_gid == (gid_t)-1) { in passwd_study()
[all …]
/busybox-1.35.0/util-linux/
Dhexdump_xxd.c80 char *p; in reverse() local
82 p = buf; in reverse()
85 while (isxdigit(*p)) p++; in reverse()
88 if (*p == ':') p++; in reverse()
98 p = skip_whitespace(p); in reverse()
100 c = *p++; in reverse()
126 p = skip_whitespace(p); in reverse()
128 c = *p++; in reverse()
143 p = buf = xmalloc_fgetline(fp); in reverse()
156 static void print_C_style(const char *p, const char *hdr) in print_C_style() argument
[all …]
Dhexdump.c59 char *p; in bb_dump_addfile() local
65 p = skip_whitespace(buf); in bb_dump_addfile()
66 if (*p && (*p != '#')) { in bb_dump_addfile()
67 bb_dump_add(dumper, p); in bb_dump_addfile()
90 const char *p; in hexdump_main() local
103 p = strchr(hexdump_opts, ch); in hexdump_main()
104 if (!p) in hexdump_main()
106 if ((p - hexdump_opts) < 5) { in hexdump_main()
108 bb_dump_add(dumper, add_strings[(int)(p - hexdump_opts)]); in hexdump_main()
/busybox-1.35.0/scripts/
Decho.c44 const char *p; in bb_process_escape_sequence() local
92 p = charmap; in bb_process_escape_sequence()
94 if (*p == *q) { in bb_process_escape_sequence()
98 } while (*++p); in bb_process_escape_sequence()
99 n = *(p + (sizeof(charmap)/2)); in bb_process_escape_sequence()
111 const char *p; in main() local
130 p = arg + 1; in main()
131 if (!*p) /* A single '-', so echo it. */ in main()
135 if (!strrchr("neE", *p)) in main()
137 } while (*++p); in main()
[all …]
/busybox-1.35.0/networking/
Dntpd.c609 root_distance(peer_t *p) in root_distance() argument
616 return MAXD(MINDISP, p->lastpkt_rootdelay + p->lastpkt_delay) / 2 in root_distance()
617 + p->lastpkt_rootdisp in root_distance()
618 + p->filter_dispersion in root_distance()
619 + FREQ_TOLERANCE * (G.cur_time - p->lastpkt_recv_time) in root_distance()
620 + p->filter_jitter; in root_distance()
624 set_next(peer_t *p, unsigned t) in set_next() argument
626 p->next_action_time = G.cur_time + t; in set_next()
633 filter_datapoints(peer_t *p) in filter_datapoints() argument
644 fdp = p->filter_datapoint; in filter_datapoints()
[all …]
/busybox-1.35.0/shell/ash_test/ash-glob/
Dglob_dir.tests7 echo */z*p
8 echo d*r*e*t/z*p
11 echo *"/z"*"p"
12 echo "d"*r*e*t"/"z*p
17 echo */z"*p"
18 echo d*r*e\*t/z*p
21 echo *"/z"\*"p"
22 echo "d*"r*e*t"/"z*p
/busybox-1.35.0/shell/hush_test/hush-glob/
Dglob_dir.tests7 echo */z*p
8 echo d*r*e*t/z*p
11 echo *"/z"*"p"
12 echo "d"*r*e*t"/"z*p
17 echo */z"*p"
18 echo d*r*e\*t/z*p
21 echo *"/z"\*"p"
22 echo "d*"r*e*t"/"z*p

123456789