/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | save-cwd.h | 30 int save_cwd (struct saved_cwd *cwd); 31 int restore_cwd (const struct saved_cwd *cwd); 32 void free_cwd (struct saved_cwd *cwd);
|
H A D | xgetcwd.c | 42 char *cwd = getcwd (NULL, 0); local 43 if (! cwd && errno == ENOMEM) 45 return cwd;
|
H A D | save-cwd.c | 1 /* save-cwd.c -- Save and restore current working directory. 20 __RCSID("$NetBSD: save-cwd.c,v 1.2 2016/05/17 14:00:09 christos Exp $"); 29 #include "save-cwd.h" 80 save_cwd (struct saved_cwd *cwd) argument 82 cwd->name = NULL; 84 cwd->desc = fd_safer (open (".", O_RDONLY)); 85 if (cwd->desc < 0) 87 cwd->desc = fd_safer (open (".", O_WRONLY)); 88 if (cwd->desc < 0) 90 cwd 103 restore_cwd(const struct saved_cwd *cwd) argument 112 free_cwd(struct saved_cwd *cwd) argument [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | save-cwd.h | 30 int save_cwd (struct saved_cwd *cwd); 31 int restore_cwd (const struct saved_cwd *cwd); 32 void free_cwd (struct saved_cwd *cwd);
|
H A D | save-cwd.c | 1 /* save-cwd.c -- Save and restore current working directory. 23 #include "save-cwd.h" 62 save_cwd (struct saved_cwd *cwd) argument 64 cwd->name = NULL; 66 cwd->desc = open (".", O_SEARCH | O_CLOEXEC); 68 cwd->desc = fd_safer_flag (cwd->desc, O_CLOEXEC); 69 if (cwd->desc < 0) 71 cwd->name = getcwd (NULL, 0); 72 return cwd 83 restore_cwd(const struct saved_cwd *cwd) argument 92 free_cwd(struct saved_cwd *cwd) argument [all...] |
H A D | fdopendir.c | 30 # include "save-cwd.h" 110 struct saved_cwd cwd; local 111 if (save_cwd (&cwd) != 0) 113 dir = fdopendir_with_dup (fd, -1, &cwd); 115 free_cwd (&cwd); 136 fdopendir_with_dup (int fd, int older_dupfd, struct saved_cwd const *cwd) argument 149 dir = fdopendir_with_dup (fd, dupfd, cwd); 155 dir = fd_clone_opendir (dupfd, cwd); 176 fd_clone_opendir (int fd, struct saved_cwd const *cwd) argument 178 if (REPLACE_FCHDIR || ! cwd) [all...] |
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/ |
H A D | save-cwd.h | 30 int save_cwd (struct saved_cwd *cwd); 31 int restore_cwd (const struct saved_cwd *cwd); 32 void free_cwd (struct saved_cwd *cwd);
|
H A D | save-cwd.c | 1 /* save-cwd.c -- Save and restore current working directory. 23 #include "save-cwd.h" 62 save_cwd (struct saved_cwd *cwd) argument 64 cwd->name = NULL; 66 cwd->desc = open (".", O_SEARCH | O_CLOEXEC); 68 cwd->desc = fd_safer_flag (cwd->desc, O_CLOEXEC); 69 if (cwd->desc < 0) 71 cwd->name = getcwd (NULL, 0); 72 return cwd 83 restore_cwd(const struct saved_cwd *cwd) argument 92 free_cwd(struct saved_cwd *cwd) argument [all...] |
H A D | fdopendir.c | 30 # include "save-cwd.h" 110 struct saved_cwd cwd; local 111 if (save_cwd (&cwd) != 0) 113 dir = fdopendir_with_dup (fd, -1, &cwd); 115 free_cwd (&cwd); 136 fdopendir_with_dup (int fd, int older_dupfd, struct saved_cwd const *cwd) argument 149 dir = fdopendir_with_dup (fd, dupfd, cwd); 155 dir = fd_clone_opendir (dupfd, cwd); 176 fd_clone_opendir (int fd, struct saved_cwd const *cwd) argument 178 if (REPLACE_FCHDIR || ! cwd) [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libgcc/config/i386/ |
H A D | crtprec.c | 40 unsigned short int cwd; local 42 asm volatile ("fnstcw\t%0" : "=m" (cwd)); 44 cwd &= ~X87CW_PCMASK; 45 cwd |= X87CW; 47 asm volatile ("fldcw\t%0" : : "m" (cwd));
|
/netbsd-current/external/gpl3/gcc/dist/libgcc/config/i386/ |
H A D | crtprec.c | 40 unsigned short int cwd; local 42 asm volatile ("fnstcw\t%0" : "=m" (cwd)); 44 cwd &= ~X87CW_PCMASK; 45 cwd |= X87CW; 47 asm volatile ("fldcw\t%0" : : "m" (cwd));
|
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/i386/ |
H A D | x86-64-cbw.s | 11 cwd 14 rex cwd 16 rex64 cwd
|
H A D | x86-64-cbw-intel.d | 18 d: 66 99 cwd 21 12: 66 40 99 rex cwd
|
/netbsd-current/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
H A D | getcwd.c | 41 getcwd_i4_sub (char *cwd, GFC_INTEGER_4 *status, gfc_charlen_type cwd_len) argument 45 if (getcwd (cwd, cwd_len)) 47 size_t len = strlen (cwd); 48 memset (cwd + len, ' ', cwd_len - len); 59 memcpy (cwd, buf, cwd_len); 69 memset (cwd, ' ', cwd_len); 79 getcwd_i8_sub (char *cwd, GFC_INTEGER_8 *status, gfc_charlen_type cwd_len) argument 82 getcwd_i4_sub (cwd, &status4, cwd_len); 91 PREFIX(getcwd) (char *cwd, gfc_charlen_type cwd_len) argument 94 getcwd_i4_sub (cwd, [all...] |
/netbsd-current/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
H A D | getcwd.c | 41 getcwd_i4_sub (char *cwd, GFC_INTEGER_4 *status, gfc_charlen_type cwd_len) argument 45 if (getcwd (cwd, cwd_len)) 47 size_t len = strlen (cwd); 48 memset (cwd + len, ' ', cwd_len - len); 59 memcpy (cwd, buf, cwd_len); 69 memset (cwd, ' ', cwd_len); 79 getcwd_i8_sub (char *cwd, GFC_INTEGER_8 *status, gfc_charlen_type cwd_len) argument 82 getcwd_i4_sub (cwd, &status4, cwd_len); 91 PREFIX(getcwd) (char *cwd, gfc_charlen_type cwd_len) argument 94 getcwd_i4_sub (cwd, [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdbsupport/ |
H A D | common-inferior.h | 41 extern void set_inferior_cwd (const char *cwd);
|
/netbsd-current/external/gpl2/xcvs/dist/src/ |
H A D | release.c | 25 #include "save-cwd.h" 148 struct saved_cwd cwd; local 202 if (save_cwd (&cwd)) 223 if (restore_cwd (&cwd)) 226 cwd.name); 275 if (restore_cwd (&cwd)) 278 cwd.name); 296 if (restore_cwd (&cwd)) 299 cwd.name); 305 if (restore_cwd (&cwd)) [all...] |
/netbsd-current/external/gpl2/gettext/dist/gnulib-local/lib/ |
H A D | xgetcwd.c | 66 char *cwd = (char *) xmalloc (path_max); local 69 ret = getcwd (cwd, path_max); 75 free (cwd); 80 free (cwd);
|
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
H A D | macro-source-path.exp | 32 # $out/cwd/macro-source-path.c 35 # Set the current working directory to $out/cwd, so that we can test compiling 39 file mkdir $out_dir/cwd 41 file copy -force $srcdir/$subdir/$srcfile $out_dir/cwd 75 with_cwd "$out_dir/cwd" { 78 test ../cwd/$testfile.c dot-dot-filename 79 test [file normalize $testfile.c] absolute-cwd
|
/netbsd-current/external/bsd/less/dist/lesstest/ |
H A D | runtest | 24 my $cwd = getcwd(); 25 my $srcdir = ($opt{d} or $cwd); 26 $rundir = (rfile($opt{r}, $cwd) or "$srcdir/.runtest_dir"); 27 $lesstest = (rfile($opt{t}, $cwd) or "$srcdir/lesstest"); 28 $lt_screen = (rfile($opt{s}, $cwd) or "$srcdir/lt_screen"); 29 $less = (rfile($opt{l}, $cwd) or "$srcdir/../obj/less"); 43 $errs += run(rfile($file, $cwd)); 97 my ($file, $cwd) = @_; 99 $file = "$cwd/$file" unless $file =~ m|^/|;
|
/netbsd-current/lib/libpam/modules/pam_chroot/ |
H A D | pam_chroot.c | 62 const char *dir, *end, *cwd, *user; local 84 cwd = end + 2; 86 if ((cwd = openpam_get_option(pamh, "cwd")) == NULL) 87 cwd = "/"; 103 if (chdir(cwd) == -1) { 107 pam_setenv(pamh, "HOME", cwd, 1);
|
/netbsd-current/external/bsd/pkg_install/dist/lib/ |
H A D | remove.c | 63 safe_fchdir(int cwd) argument 68 rv = fchdir(cwd); 115 recursive_remove_internal(const char *path, int missing_ok, int cwd) argument 126 * make sure to fchdir back to the original cwd. 137 if (did_chdir && safe_fchdir(cwd) == -1 && rv == 0) 148 if (did_chdir && fchdir(cwd) == -1) 159 rv = recursive_remove_internal(subdir, 1, cwd); 165 safe_fchdir(cwd); 169 if (did_chdir && safe_fchdir(cwd) == -1 && rv == 0)
|
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/i386/ilp32/ |
H A D | x86-64-cbw-intel.d | 18 d: 66 99 cwd 21 12: 66 40 99 rex cwd
|
/netbsd-current/sys/conf/ |
H A D | newvers_stand.sh | 40 cwd=$(dirname "$0") 80 osr=$(sh "${cwd}/osrelease.sh")
|
/netbsd-current/external/bsd/less/dist/ |
H A D | lsystem.c | 56 char cwd[FILENAME_MAX+1]; local 85 getcwd(cwd, FILENAME_MAX); 205 chdir(cwd); 211 if (cwd[1] == ':') 213 if (cwd[0] >= 'a' && cwd[0] <= 'z') 214 setdisk(cwd[0] - 'a'); 215 else if (cwd[0] >= 'A' && cwd[0] <= 'Z') 216 setdisk(cwd[ [all...] |