Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/util/
Dabspath.c5 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() local
8 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd()
11 if (pwd && strcmp(pwd, cwd)) { in get_pwd_cwd()
12 stat(cwd, &cwd_stat); in get_pwd_cwd()
16 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd()
19 return cwd; in get_pwd_cwd()
30 const char *cwd = get_pwd_cwd(); in make_nonrelative_path() local
31 if (!cwd) in make_nonrelative_path()
33 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
/linux-4.4.14/arch/x86/kernel/fpu/
Dcore.c204 fp->cwd = 0xffff037fu; in fpstate_init_fstate()
445 return fpu->state.fxsave.cwd; in get_fpu_cwd()
447 return (unsigned short)fpu->state.fsave.cwd; in get_fpu_cwd()
474 unsigned short cwd, swd; in fpu__exception_code() local
485 cwd = get_fpu_cwd(fpu); in fpu__exception_code()
488 err = swd & ~cwd; in fpu__exception_code()
Dregset.c212 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
250 fxsave->cwd = env->cwd; in convert_to_fxsr()
Dxstate.c132 fx->cwd = 0x37f; in fpstate_sanitize_xstate()
/linux-4.4.14/tools/testing/selftests/capabilities/
Dtest_execve.c132 char cwd[PATH_MAX]; in chdir_to_tmpfs() local
133 if (getcwd(cwd, sizeof(cwd)) != cwd) in chdir_to_tmpfs()
139 if (chdir(cwd) != 0) in chdir_to_tmpfs()
/linux-4.4.14/arch/x86/include/asm/fpu/
Dtypes.h12 u32 cwd; /* FPU Control Word */ member
34 u16 cwd; /* Control Word */ member
76 u32 cwd; member
Dinternal.h92 fx->cwd = 0x37f; in fpstate_init_fxstate()
/linux-4.4.14/arch/x86/include/asm/
Duser_32.h45 long cwd; member
56 unsigned short cwd; member
Duser32.h8 u32 cwd; member
20 unsigned short cwd; member
Duser_64.h51 unsigned short cwd; member
/linux-4.4.14/arch/mips/include/asm/
Dvpe.h65 char cwd[VPE_PATH_MAX]; member
/linux-4.4.14/arch/x86/math-emu/
Dfpu_system.h72 #define control_word (I387->soft.cwd)
Dfpu_aux.c37 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-4.4.14/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
Dautofs4-mount-control.txt24 getcwd(2) and the proc file system /proc/<pid>/cwd, no longer works
Dproc.txt133 cwd Link to the current working directory
/linux-4.4.14/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-4.4.14/arch/x86/include/uapi/asm/
Dsigcontext.h149 __u16 cwd; member
/linux-4.4.14/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-4.4.14/fs/
Ddcache.c3255 char *cwd = page + PATH_MAX; in SYSCALL_DEFINE2() local
3258 prepend(&cwd, &buflen, "\0", 1); in SYSCALL_DEFINE2()
3259 error = prepend_path(&pwd, &root, &cwd, &buflen); in SYSCALL_DEFINE2()
3267 error = prepend_unreachable(&cwd, &buflen); in SYSCALL_DEFINE2()
3273 len = PATH_MAX + page - cwd; in SYSCALL_DEFINE2()
3276 if (copy_to_user(buf, cwd, len)) in SYSCALL_DEFINE2()
/linux-4.4.14/Documentation/filesystems/nfs/
DExporting10 dentries via open file descriptors or cwd/root. However remote
/linux-4.4.14/arch/x86/kvm/
Dx86.c7171 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
7188 fxsave->cwd = fpu->fcw; in kvm_arch_vcpu_ioctl_set_fpu()
/linux-4.4.14/Documentation/s390/
DDebugging390.txt1979 /proc/1/cwd is a softlink to the current working directory.