Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/util/
Dexec_cmd.c85 struct strbuf new_path = STRBUF_INIT; in setup_path() local
87 add_path(&new_path, perf_exec_path()); in setup_path()
88 add_path(&new_path, argv0_path); in setup_path()
91 strbuf_addstr(&new_path, old_path); in setup_path()
93 strbuf_addstr(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path()
95 setenv("PATH", new_path.buf, 1); in setup_path()
97 strbuf_release(&new_path); in setup_path()
Dprobe-finder.c1749 char **new_path) in get_real_path() argument
1759 *new_path = strdup(raw_path); in get_real_path()
1760 return *new_path ? 0 : -ENOMEM; in get_real_path()
1766 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in get_real_path()
1767 if (!*new_path) in get_real_path()
1771 sprintf(*new_path, "%s/%s", prefix, raw_path); in get_real_path()
1773 if (access(*new_path, R_OK) == 0) in get_real_path()
1778 zfree(new_path); in get_real_path()
1789 zfree(new_path); in get_real_path()
1795 zfree(new_path); in get_real_path()
Dprobe-finder.h61 char **new_path);
/linux-4.4.14/arch/um/os-Linux/
Dmain.c87 char *new_path = NULL; in setup_env_path() local
104 new_path = malloc(path_len); in setup_env_path()
105 if (!new_path) { in setup_env_path()
109 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
110 if (putenv(new_path)) { in setup_env_path()
112 free(new_path); in setup_env_path()
/linux-4.4.14/tools/perf/
Dbuiltin-help.c325 struct strbuf new_path = STRBUF_INIT; in setup_man_path() local
332 strbuf_addstr(&new_path, system_path(PERF_MAN_PATH)); in setup_man_path()
333 strbuf_addch(&new_path, ':'); in setup_man_path()
335 strbuf_addstr(&new_path, old_path); in setup_man_path()
337 setenv("MANPATH", new_path.buf, 1); in setup_man_path()
339 strbuf_release(&new_path); in setup_man_path()
/linux-4.4.14/fs/ocfs2/
Dioctl.c854 const char __user *new_path; in ocfs2_ioctl() local
917 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl()
920 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
990 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
Docfs2_ioctl.h74 __u64 new_path; member
Drefcounttree.c4410 struct path old_path, new_path; in ocfs2_reflink_ioctl() local
4422 new_dentry = user_path_create(AT_FDCWD, newname, &new_path, 0); in ocfs2_reflink_ioctl()
4430 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl()
4436 d_inode(new_path.dentry), in ocfs2_reflink_ioctl()
4439 done_path_create(&new_path, new_dentry); in ocfs2_reflink_ioctl()
/linux-4.4.14/fs/proc/
Dproc_sysctl.c1420 char *new_path, *pos; in __register_sysctl_paths() local
1422 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths()
1423 if (!new_path) in __register_sysctl_paths()
1428 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths()
1433 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths()
1439 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths()
1452 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths()
1458 kfree(new_path); in __register_sysctl_paths()
/linux-4.4.14/security/tomoyo/
Dtomoyo.c432 static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path) in tomoyo_sb_pivotroot() argument
434 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/linux-4.4.14/fs/
Dnamei.c4059 struct path old_path, new_path; in SYSCALL_DEFINE5() local
4084 new_dentry = user_path_create(newdfd, newname, &new_path, in SYSCALL_DEFINE5()
4091 if (old_path.mnt != new_path.mnt) in SYSCALL_DEFINE5()
4096 error = security_path_link(old_path.dentry, &new_path, new_dentry); in SYSCALL_DEFINE5()
4099 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_inode); in SYSCALL_DEFINE5()
4101 done_path_create(&new_path, new_dentry); in SYSCALL_DEFINE5()
4317 struct path old_path, new_path; in SYSCALL_DEFINE5() local
4349 &new_path, &new_last, &new_type, lookup_flags); in SYSCALL_DEFINE5()
4356 if (old_path.mnt != new_path.mnt) in SYSCALL_DEFINE5()
4373 trap = lock_rename(new_path.dentry, old_path.dentry); in SYSCALL_DEFINE5()
[all …]
/linux-4.4.14/security/apparmor/
Dlsm.c319 struct path new_path = { new_dir->mnt, new_dentry }; in apparmor_path_rename() local
329 error = aa_path_perm(OP_RENAME_DEST, profile, &new_path, in apparmor_path_rename()
/linux-4.4.14/include/linux/
Dsecurity.h226 int security_sb_pivotroot(struct path *old_path, struct path *new_path);
541 struct path *new_path) in security_sb_pivotroot() argument
Dlsm_hooks.h1346 int (*sb_pivotroot)(struct path *old_path, struct path *new_path);
/linux-4.4.14/Documentation/filesystems/pohmelfs/
Dnetwork_protocol.txt191 Attached data is formed into following string: "old_path|new_path".
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_main.c902 int new_path = 0; in unicast_arp_send() local
906 new_path = 1; in unicast_arp_send()
918 if (new_path) in unicast_arp_send()
/linux-4.4.14/security/
Dsecurity.c316 int security_sb_pivotroot(struct path *old_path, struct path *new_path) in security_sb_pivotroot() argument
318 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()
/linux-4.4.14/drivers/scsi/
Dipr.c1314 int new_path = 0; in ipr_update_res_entry() local
1336 new_path = 1; in ipr_update_res_entry()
1339 if (res->sdev && new_path) in ipr_update_res_entry()