Home
last modified time | relevance | path

Searched refs:pathp (Results 1 – 18 of 18) sorted by relevance

/freebsd-12.1/contrib/jemalloc/include/jemalloc/internal/
H A Drb.h475 for (pathp = path; pathp->node != NULL; pathp++) { \
476 int cmp = pathp->cmp = a_cmp(node, pathp->node); \
488 for (pathp--; (uintptr_t)pathp >= (uintptr_t)path; pathp--) { \
545 for (pathp = path; pathp->node != NULL; pathp++) { \
546 int cmp = pathp->cmp = a_cmp(node, pathp->node); \
555 pathp->cmp = 1; \
556 nodep = pathp; \
557 for (pathp++; pathp->node != NULL; pathp++) { \
567 pathp--; \
632 for (pathp--; (uintptr_t)pathp >= (uintptr_t)path; pathp--) { \
[all …]
/freebsd-12.1/sys/compat/linux/
H A Dlinux_util.h57 #define LCONVPATH_AT(td, upath, pathp, i, dfd) \ argument
62 pathp, i, dfd); \
63 if (*(pathp) == NULL) \
67 #define LCONVPATH(td, upath, pathp, i) \ argument
68 LCONVPATH_AT(td, upath, pathp, i, AT_FDCWD)
70 #define LCONVPATHEXIST(td, upath, pathp) LCONVPATH(td, upath, pathp, 0) argument
71 #define LCONVPATHEXIST_AT(td, upath, pathp, dfd) LCONVPATH_AT(td, upath, pathp, 0, dfd) argument
72 #define LCONVPATHCREAT(td, upath, pathp) LCONVPATH(td, upath, pathp, 1) argument
73 #define LCONVPATHCREAT_AT(td, upath, pathp, dfd) LCONVPATH_AT(td, upath, pathp, 1, dfd) argument
/freebsd-12.1/sys/i386/ibcs2/
H A Dibcs2_util.h58 #define CHECKALT(td, upath, pathp, i) \ argument
62 _error = ibcs2_emul_find(td, upath, UIO_USERSPACE, pathp, i); \
63 if (*(pathp) == NULL) \
67 #define CHECKALTEXIST(td, upath, pathp) CHECKALT(td, upath, pathp, 0) argument
68 #define CHECKALTCREAT(td, upath, pathp) CHECKALT(td, upath, pathp, 1) argument
/freebsd-12.1/lib/libc/posix1e/
H A Dacl_valid.c82 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl) in acl_valid_file_np() argument
85 if (pathp == NULL || acl == NULL) { in acl_valid_file_np()
93 return (__acl_aclcheck_file(pathp, type, &acl->ats_acl)); in acl_valid_file_np()
97 acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl) in acl_valid_link_np() argument
100 if (pathp == NULL || acl == NULL) { in acl_valid_link_np()
108 return (__acl_aclcheck_link(pathp, type, &acl->ats_acl)); in acl_valid_link_np()
/freebsd-12.1/stand/common/
H A Dls.c54 static int ls_getdir(char **pathp);
157 ls_getdir(char **pathp) in ls_getdir() argument
167 path = malloc(strlen(*pathp) + 2); in ls_getdir()
173 strcpy(path, *pathp); in ls_getdir()
203 *pathp = path; in ls_getdir()
208 *pathp = NULL; in ls_getdir()
/freebsd-12.1/contrib/dtc/
H A Dfdtget.c155 const char *pathp; in list_subnodes() local
162 pathp = fdt_get_name(blob, node, NULL); in list_subnodes()
164 if (pathp == NULL) in list_subnodes()
165 pathp = "/* NULL pointer error */"; in list_subnodes()
166 if (*pathp == '\0') in list_subnodes()
167 pathp = "/"; /* root is nameless */ in list_subnodes()
169 puts(pathp); in list_subnodes()
/freebsd-12.1/lib/libutil/
H A Dpidfile.c103 pidfile_open(const char *pathp, mode_t mode, pid_t *pidptr) in pidfile_open() argument
116 if (pathp == NULL) { in pidfile_open()
122 if (strlcpy(path, pathp, sizeof(path)) >= sizeof(path)) { in pidfile_open()
129 (void)strlcpy(path, pathp, sizeof(path)); in pidfile_open()
/freebsd-12.1/sys/security/audit/
H A Daudit_arg.c736 audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp) in audit_arg_upath() argument
739 if (*pathp == NULL) in audit_arg_upath()
740 *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK); in audit_arg_upath()
741 audit_canon_path(td, dirfd, upath, *pathp); in audit_arg_upath()
778 audit_arg_upath_canon(char *upath, char **pathp) in audit_arg_upath_canon() argument
781 if (*pathp == NULL) in audit_arg_upath_canon()
782 *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK); in audit_arg_upath_canon()
783 (void)snprintf(*pathp, MAXPATHLEN, "%s", upath); in audit_arg_upath_canon()
H A Daudit.c797 char **pathp; in audit_proc_coredump() local
833 pathp = &ar->k_ar.ar_arg_upath1; in audit_proc_coredump()
834 *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK); in audit_proc_coredump()
835 audit_canon_path(td, AT_FDCWD, path, *pathp); in audit_proc_coredump()
/freebsd-12.1/contrib/nvi/common/
H A Drecover.c626 char *name, *p, *t, *rp, *recp, *pathp; in rcv_read() local
641 recp = pathp = NULL; in rcv_read()
722 t = pathp; in rcv_read()
724 pathp = path; in rcv_read()
764 if (file_init(sp, frp, pathp, 0)) { in rcv_read()
766 free(pathp); in rcv_read()
770 free(pathp); in rcv_read()
/freebsd-12.1/crypto/openssh/
H A Dmisc.c575 parse_user_host_path(const char *s, char **userp, char **hostp, char **pathp) in parse_user_host_path() argument
585 if (pathp != NULL) in parse_user_host_path()
586 *pathp = NULL; in parse_user_host_path()
621 if (pathp != NULL) { in parse_user_host_path()
622 *pathp = path; in parse_user_host_path()
768 int *portp, char **pathp) in parse_uri() argument
786 if (pathp != NULL) in parse_uri()
787 *pathp = NULL; in parse_uri()
844 if (pathp != NULL) { in parse_uri()
845 *pathp = path; in parse_uri()
H A Dscp.c619 char **pathp) in parse_scp_uri() argument
623 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
624 if (r == 0 && *pathp == NULL) in parse_scp_uri()
625 *pathp = xstrdup("."); in parse_scp_uri()
/freebsd-12.1/sys/contrib/libfdt/
H A Dfdt_overlay.c104 int fragment, char const **pathp) in overlay_get_target() argument
141 if (pathp) in overlay_get_target()
142 *pathp = path ? path : NULL; in overlay_get_target()
/freebsd-12.1/contrib/libpcap/
H A Dpcap.c1474 char **hostp, char **portp, char **pathp, char *ebuf)
1492 *pathp = NULL;
1521 *pathp = strdup(source);
1522 if (*pathp == NULL) {
1546 *pathp = strdup(source);
1547 if (*pathp == NULL) {
1579 *pathp = strdup(colonp + 3);
1580 if (*pathp == NULL) {
1605 *pathp = strdup(colonp + 3);
1606 if (*pathp == NULL) {
[all …]
/freebsd-12.1/contrib/amd/fixmount/
H A Dfixmount.c156 char *pathp = dir_path; in remove_mount() local
173 (char *) &pathp, in remove_mount()
/freebsd-12.1/contrib/nvi/ex/
H A Dex_cscope.c303 char *p, **pathp, *buf; in get_paths() local
345 for (pathp = csc->paths, p = strtok(csc->pbuf, ":"); in get_paths()
347 *pathp++ = p; in get_paths()
/freebsd-12.1/stand/fdt/
H A Dfdt_loader_cmd.c1592 fdt_extract_nameloc(char **pathp, char **namep, int *nodeoff) in fdt_extract_nameloc() argument
1595 char *path = *pathp, *name = NULL, *subpath = NULL; in fdt_extract_nameloc()
1622 *pathp = path; in fdt_extract_nameloc()
/freebsd-12.1/sys/netgraph/
H A Dng_base.c1655 ng_path_parse(char *addr, char **nodep, char **pathp, char **hookp) in ng_path_parse() argument
1712 if (pathp) in ng_path_parse()
1713 *pathp = path; in ng_path_parse()