| /Linux-v5.4/tools/lib/subcmd/ |
| D | exec-cmd.c | 38 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-v5.4/arch/x86/kernel/fpu/ |
| D | core.c | 143 fp->cwd = 0xffff037fu; in fpstate_init_fstate() 384 unsigned short cwd, swd; in fpu__exception_code() local 396 cwd = fpu->state.fxsave.cwd; in fpu__exception_code() 399 cwd = (unsigned short)fpu->state.fsave.cwd; in fpu__exception_code() 403 err = swd & ~cwd; in fpu__exception_code()
|
| D | regset.c | 239 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr() 276 fxsave->cwd = env->cwd; in convert_to_fxsr()
|
| D | xstate.c | 168 fx->cwd = 0x37f; in fpstate_sanitize_xstate()
|
| /Linux-v5.4/fs/ |
| D | d_path.c | 440 char *cwd = page + PATH_MAX; in SYSCALL_DEFINE2() local 443 prepend(&cwd, &buflen, "\0", 1); in SYSCALL_DEFINE2() 444 error = prepend_path(&pwd, &root, &cwd, &buflen); in SYSCALL_DEFINE2() 452 error = prepend_unreachable(&cwd, &buflen); in SYSCALL_DEFINE2() 458 len = PATH_MAX + page - cwd; in SYSCALL_DEFINE2() 461 if (copy_to_user(buf, cwd, len)) in SYSCALL_DEFINE2()
|
| /Linux-v5.4/tools/testing/selftests/exec/ |
| D | execveat.c | 160 char *cwd = getcwd(NULL, 0); in check_execveat_pathmax() local 162 if (!cwd) { in check_execveat_pathmax() 167 strcpy(longpath, cwd); in check_execveat_pathmax() 172 count = (PATH_MAX - 3 - strlen(cwd)) / XX_DIR_LEN; in check_execveat_pathmax() 177 len = (PATH_MAX - 3 - strlen(cwd)) - (count * XX_DIR_LEN); in check_execveat_pathmax() 183 free(cwd); in check_execveat_pathmax()
|
| /Linux-v5.4/arch/x86/include/asm/ |
| D | user_32.h | 46 long cwd; member 57 unsigned short cwd; member
|
| D | user32.h | 9 u32 cwd; member 21 unsigned short cwd; member
|
| D | user_64.h | 52 unsigned short cwd; member
|
| /Linux-v5.4/arch/x86/include/asm/fpu/ |
| D | types.h | 13 u32 cwd; /* FPU Control Word */ member 35 u16 cwd; /* Control Word */ member 80 u32 cwd; member
|
| D | internal.h | 100 fx->cwd = 0x37f; in fpstate_init_fxstate()
|
| /Linux-v5.4/tools/testing/selftests/capabilities/ |
| D | test_execve.c | 141 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-v5.4/tools/testing/selftests/tc-testing/plugin-lib/ |
| D | README-PLUGINS | 1 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-v5.4/arch/mips/include/asm/ |
| D | vpe.h | 65 char cwd[VPE_PATH_MAX]; member
|
| /Linux-v5.4/arch/x86/math-emu/ |
| D | fpu_system.h | 99 #define control_word (I387->soft.cwd)
|
| D | fpu_aux.c | 38 soft->cwd = 0x037f; in fpstate_init_soft()
|
| D | fpu_entry.c | 703 S387->cwd &= ~0xe080; in fpregs_soft_get() 705 S387->cwd |= 0xffff0040; in fpregs_soft_get()
|
| /Linux-v5.4/Documentation/filesystems/ |
| D | path-lookup.txt | 7 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
|
| D | autofs-mount-control.txt | 24 getcwd(2) and the proc file system /proc/<pid>/cwd, no longer works
|
| /Linux-v5.4/arch/mips/kernel/ |
| D | vpe.c | 807 v->cwd[0] = 0; in vpe_open() 808 ret = getcwd(v->cwd, VPE_PATH_MAX); in vpe_open() 925 return v->cwd; in vpe_getcwd()
|
| /Linux-v5.4/scripts/kconfig/tests/ |
| D | conftest.py | 69 cwd=temp_dir,
|
| /Linux-v5.4/arch/x86/include/uapi/asm/ |
| D | sigcontext.h | 150 __u16 cwd; member
|
| /Linux-v5.4/arch/x86/um/ |
| D | signal.c | 90 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-v5.4/Documentation/filesystems/nfs/ |
| D | exporting.rst | 11 dentries via open file descriptors or cwd/root. However remote
|
| /Linux-v5.4/arch/x86/kvm/ |
| D | x86.c | 8959 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu() 8980 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()
|