Home
last modified time | relevance | path

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

/linux/tools/lib/subcmd/
A Dexec-cmd.c38 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() local
41 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd()
44 if (pwd && strcmp(pwd, cwd)) { in get_pwd_cwd()
45 stat(cwd, &cwd_stat); in get_pwd_cwd()
49 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd()
52 return cwd; in get_pwd_cwd()
63 const char *cwd = get_pwd_cwd(); in make_nonrelative_path() local
64 if (!cwd) in make_nonrelative_path()
66 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
/linux/arch/x86/kernel/fpu/
A Dcore.c398 fpstate->regs.fxsave.cwd = 0x37f; in fpstate_init_fxstate()
407 fpstate->regs.fsave.cwd = 0xffff037fu; in fpstate_init_fstate()
697 unsigned short cwd, swd; in fpu__exception_code() local
709 cwd = fpu->fpstate->regs.fxsave.cwd; in fpu__exception_code()
712 cwd = (unsigned short)fpu->fpstate->regs.fsave.cwd; in fpu__exception_code()
716 err = swd & ~cwd; in fpu__exception_code()
A Dregset.c258 env->cwd = fxsave->cwd | 0xffff0000u; in __convert_from_fxsr()
301 fxsave->cwd = env->cwd; in convert_to_fxsr()
/linux/tools/testing/selftests/exec/
A Dexecveat.c162 char *cwd = getcwd(NULL, 0); in check_execveat_pathmax() local
164 if (!cwd) { in check_execveat_pathmax()
169 strcpy(longpath, cwd); in check_execveat_pathmax()
174 count = (PATH_MAX - 3 - strlen(cwd)) / XX_DIR_LEN; in check_execveat_pathmax()
179 len = (PATH_MAX - 3 - strlen(cwd)) - (count * XX_DIR_LEN); in check_execveat_pathmax()
185 free(cwd); in check_execveat_pathmax()
/linux/tools/testing/selftests/capabilities/
A Dtest_execve.c141 char cwd[PATH_MAX]; in chdir_to_tmpfs() local
142 if (getcwd(cwd, sizeof(cwd)) != cwd) in chdir_to_tmpfs()
149 if (chdir(cwd) != 0) in chdir_to_tmpfs()
/linux/Documentation/sphinx/
A Dkernel_feat.py84 cwd = path.dirname(doc.current_source)
104 lines = self.runCmd(cmd, shell=True, cwd=cwd, env=shell_env)
A Dkernel_abi.py82 cwd = path.dirname(doc.current_source)
102 lines = self.runCmd(cmd, shell=True, cwd=cwd, env=shell_env)
/linux/arch/x86/include/asm/
A Duser_32.h46 long cwd; member
57 unsigned short cwd; member
A Duser32.h9 u32 cwd; member
21 unsigned short cwd; member
A Duser_64.h52 unsigned short cwd; member
/linux/arch/x86/include/asm/fpu/
A Dtypes.h13 u32 cwd; /* FPU Control Word */ member
35 u16 cwd; /* Control Word */ member
80 u32 cwd; member
/linux/tools/testing/selftests/tc-testing/plugin-lib/
A DREADME-PLUGINS1 tdc.py will look for plugins in a directory plugins off the cwd.
22 This plugin will write files to the cwd, called vgnd-xxx.log. These will contain
/linux/tools/testing/selftests/powerpc/ptrace/
A Dptrace-hwbreak.c49 static volatile char cwd[PATH_MAX] __attribute__((aligned(8))); variable
145 syscall(__NR_getcwd, &cwd, PATH_MAX); in test_workload()
160 syscall(__NR_getcwd, &cwd, PATH_MAX); in test_workload()
319 unsigned long wp_addr = (unsigned long)cwd; in test_set_debugreg_kernel_userspace()
383 unsigned long wp_addr = (unsigned long)&cwd; in test_sethwdebug_exact_kernel_userspace()
/linux/scripts/clang-tools/
A Drun-clang-tools.py57 cwd=entry["directory"])
/linux/Documentation/filesystems/
A Dpath-lookup.txt7 with the first component of the pathname (eg. root or cwd) with a known dentry,
42 A name string specifies a start (root directory, cwd, fd-relative) and a
50 current->fs->cwd or current->fs->root) as the first parent of the lookup. Then
236 \ fs.cwd: dentry2 /
242 "./test.c" would start from cwd; both names refer to the same path in
293 of the starting path (eg. root/cwd/fd-path). So now dentry refcounts are
370 rcu-walk mode. The further we get from common path elements (such as cwd or
A Dautofs-mount-control.rst26 getcwd(2) and the proc file system /proc/<pid>/cwd, no longer works
A Dproc.rst145 cwd Link to the current working directory
/linux/arch/x86/math-emu/
A Dfpu_system.h99 #define control_word (I387->soft.cwd)
A Dfpu_aux.c38 soft->cwd = 0x037f; in fpstate_init_soft()
A Dfpu_entry.c701 S387->cwd &= ~0xe080; in fpregs_soft_get()
703 S387->cwd |= 0xffff0040; in fpregs_soft_get()
/linux/scripts/kconfig/tests/
A Dconftest.py73 cwd=temp_dir,
/linux/arch/x86/include/uapi/asm/
A Dsigcontext.h150 __u16 cwd; member
/linux/arch/x86/um/
A Dsignal.c90 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user()
126 fxsave->cwd = (unsigned short)(env[0] & 0xffff); in convert_fxsr_from_user()
/linux/Documentation/filesystems/nfs/
A Dexporting.rst11 dentries via open file descriptors or cwd/root. However remote
/linux/arch/x86/kvm/
A Dx86.c10784 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
10808 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()

Completed in 75 milliseconds