Home
last modified time | relevance | path

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

12

/Linux-v4.19/tools/lib/subcmd/
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-v4.19/arch/x86/kernel/fpu/
Dcore.c167 fp->cwd = 0xffff037fu; in fpstate_init_fstate()
412 unsigned short cwd, swd; in fpu__exception_code() local
424 cwd = fpu->state.fxsave.cwd; in fpu__exception_code()
427 cwd = (unsigned short)fpu->state.fsave.cwd; in fpu__exception_code()
431 err = swd & ~cwd; in fpu__exception_code()
Dregset.c243 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
281 fxsave->cwd = env->cwd; in convert_to_fxsr()
Dxstate.c174 fx->cwd = 0x37f; in fpstate_sanitize_xstate()
/Linux-v4.19/fs/
Dd_path.c439 char *cwd = page + PATH_MAX; in SYSCALL_DEFINE2() local
442 prepend(&cwd, &buflen, "\0", 1); in SYSCALL_DEFINE2()
443 error = prepend_path(&pwd, &root, &cwd, &buflen); in SYSCALL_DEFINE2()
451 error = prepend_unreachable(&cwd, &buflen); in SYSCALL_DEFINE2()
457 len = PATH_MAX + page - cwd; in SYSCALL_DEFINE2()
460 if (copy_to_user(buf, cwd, len)) in SYSCALL_DEFINE2()
/Linux-v4.19/tools/testing/selftests/exec/
Dexecveat.c161 char *cwd = getcwd(NULL, 0); in check_execveat_pathmax() local
163 if (!cwd) { in check_execveat_pathmax()
168 strcpy(longpath, cwd); in check_execveat_pathmax()
173 count = (PATH_MAX - 3 - strlen(cwd)) / XX_DIR_LEN; in check_execveat_pathmax()
178 len = (PATH_MAX - 3 - strlen(cwd)) - (count * XX_DIR_LEN); in check_execveat_pathmax()
184 free(cwd); in check_execveat_pathmax()
/Linux-v4.19/arch/x86/include/asm/
Duser_32.h46 long cwd; member
57 unsigned short cwd; member
Duser32.h9 u32 cwd; member
21 unsigned short cwd; member
Duser_64.h52 unsigned short cwd; member
/Linux-v4.19/arch/x86/include/asm/fpu/
Dtypes.h13 u32 cwd; /* FPU Control Word */ member
35 u16 cwd; /* Control Word */ member
80 u32 cwd; member
Dinternal.h101 fx->cwd = 0x37f; in fpstate_init_fxstate()
/Linux-v4.19/tools/testing/selftests/capabilities/
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-v4.19/tools/testing/selftests/tc-testing/plugin-lib/
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-v4.19/arch/mips/include/asm/
Dvpe.h65 char cwd[VPE_PATH_MAX]; member
/Linux-v4.19/arch/x86/math-emu/
Dfpu_system.h99 #define control_word (I387->soft.cwd)
Dfpu_aux.c38 soft->cwd = 0x037f; in fpstate_init_soft()
Dfpu_entry.c706 S387->cwd &= ~0xe080; in fpregs_soft_get()
708 S387->cwd |= 0xffff0040; in fpregs_soft_get()
/Linux-v4.19/Documentation/filesystems/
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
Dautofs-mount-control.txt24 getcwd(2) and the proc file system /proc/<pid>/cwd, no longer works
/Linux-v4.19/arch/mips/kernel/
Dvpe.c807 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-v4.19/scripts/kconfig/tests/
Dconftest.py69 cwd=temp_dir,
/Linux-v4.19/arch/x86/include/uapi/asm/
Dsigcontext.h150 __u16 cwd; member
/Linux-v4.19/arch/x86/um/
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-v4.19/Documentation/filesystems/nfs/
DExporting10 dentries via open file descriptors or cwd/root. However remote
/Linux-v4.19/arch/x86/kvm/
Dx86.c8364 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
8385 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()

12