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

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/libbb/
H A Dxgetcwd.c21 xrealloc_getcwd_or_warn(char *cwd) argument
29 if (cwd == NULL)
30 cwd = xmalloc(path_max);
32 while ((ret = getcwd(cwd, path_max)) == NULL && errno == ERANGE) {
34 cwd = xrealloc(cwd, path_max);
38 free(cwd);
43 return cwd;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/bftpd-1.6.6/
H A Dcwd.c10 #include "cwd.h"
14 char *cwd = NULL; variable
60 bftpd_log("Block cwd to '%s'\n", tmp);
70 cwd = realloc(cwd, strlen(tmp) + 1);
71 strcpy(cwd, tmp);
79 return strdup(cwd);
108 char *result = malloc(strlen(path) + strlen(cwd) + 16);
124 strcpy(result, cwd);
140 cwd
[all...]
H A Ddirlist.c45 #include "cwd.h"
312 char *cwd = NULL; local
319 cwd = bftpd_cwd_getcwd();
329 if (cwd) {
330 chdir(cwd);
331 free(cwd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/
H A Dxgetcwd.c65 char *cwd = XNMALLOC (path_max, char); local
68 ret = getcwd (cwd, path_max);
74 free (cwd);
79 free (cwd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/util/
H A Dunix.c45 * @brief get cwd in static buffer
51 static char cwd[MAXPATHLEN + 1]; local
54 if ((p = getcwd(cwd, MAXPATHLEN)) != NULL)
90 char cwd[MAXPATHLEN+1]; local
98 *cwd = 0;
100 if (getcwd(cwd, MAXPATHLEN) == NULL)
119 if (*cwd) {
123 for (; cwd[i]; i++) {
124 if (buf[i] != cwd[i])
H A Dcnid.c63 * "dir/subdir" with cwd: "/afp_volume/topdir"
67 * @param path (r) path relative to cwd() or absolute
75 int cwd = -1; local
83 EC_NEG1_LOG(cwd = open(".", O_RDONLY));
130 if (cwd != -1) {
131 fchdir(cwd);
132 close(cwd);
H A Dftw.c210 char *cwd; local
218 cwd = malloc (path_max);
220 while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE) {
222 cwd = realloc (cwd, path_max);
228 free (cwd);
232 return cwd;
638 char *cwd = NULL; local
704 cwd = __getcwd(NULL, 0);
706 if (cwd
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/util/
H A Dcnid.c63 * "dir/subdir" with cwd: "/afp_volume/topdir"
67 * @param path (r) path relative to cwd() or absolute
75 int cwd = -1; local
83 EC_NEG1_LOG(cwd = open(".", O_RDONLY));
130 if (cwd != -1) {
131 fchdir(cwd);
132 close(cwd);
H A Dunix.c115 * @brief get cwd in static buffer
121 static char cwd[MAXPATHLEN + 1]; local
124 if ((p = getcwd(cwd, MAXPATHLEN)) != NULL)
266 char cwd[MAXPATHLEN+1]; local
277 *cwd = 0;
279 if (getcwd(cwd, MAXPATHLEN) == NULL)
298 if (*cwd) {
302 for (; cwd[i]; i++) {
303 if (buf[i] != cwd[i])
H A Dftw.c210 char *cwd; local
218 cwd = malloc (path_max);
220 while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE) {
222 cwd = realloc (cwd, path_max);
228 free (cwd);
232 return cwd;
638 char *cwd = NULL; local
704 cwd = __getcwd(NULL, 0);
706 if (cwd
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-i386/
H A Duser.h45 long cwd; member in struct:user_i387_struct
56 unsigned short cwd; member in struct:user_fxsr_struct
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-x86_64/
H A Duser32.h7 u32 cwd; member in struct:user_i387_ia32_struct
19 unsigned short cwd; member in struct:user32_fxsr_struct
H A Dsigcontext.h11 __u16 cwd; member in struct:_fpstate
H A Di387.h71 #define get_fpu_cwd(t) ((t)->thread.i387.fxsave.cwd)
74 #define set_fpu_cwd(t,val) ((t)->thread.i387.fxsave.cwd = (val))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/ext2fs/
H A Dnamei.c150 errcode_t ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, argument
162 retval = open_namei(fs, root, cwd, name, strlen(name), 0, 0,
169 errcode_t ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, argument
181 retval = open_namei(fs, root, cwd, name, strlen(name), 1, 0,
188 errcode_t ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd, argument
200 retval = follow_link(fs, root, cwd, inode, 0, buf, res_inode);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/vtysh/
H A Dvtysh_config.c350 char *cwd;
359 cwd = getcwd (NULL, MAXPATHLEN);
361 strlen (cwd) + strlen (config_file) + 2);
362 sprintf (fullpath, "%s/%s", cwd, config_file);
398 cwd = getcwd (NULL, MAXPATHLEN);
400 strlen (cwd) + strlen (config_current_dir) + 2);
401 sprintf (fullpath, "%s/%s", cwd, config_current_dir);
349 char *cwd; local
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/vfs/
H A Dunix.c382 int cwd = -1; local
385 if (((cwd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0)) {
393 if (dirfd != -1 && fchdir(cwd) != 0) {
399 if (cwd != -1)
400 close(cwd);
H A Dea_sys.c399 * @note Supports *at semantics, therfor switches back and forth between sfd and cwd
404 int cwd = -1; local
410 if ((cwd = open(".", O_RDONLY)) == -1) {
411 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant open cwd: %s",
449 if (fchdir(cwd) == -1) {
450 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to cwd: %s",
490 if (fchdir(cwd) == -1) {
491 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to cwd: %s",
518 if (cwd != -1)
519 close(cwd);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/vfs/
H A Dunix.c348 int cwd = -1; local
351 if (((cwd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0)) {
359 if (dirfd != -1 && fchdir(cwd) != 0) {
365 if (cwd != -1)
366 close(cwd);
H A Dea_sys.c399 * @note Supports *at semantics, therfor switches back and forth between sfd and cwd
404 int cwd = -1; local
410 if ((cwd = open(".", O_RDONLY)) == -1) {
411 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant open cwd: %s",
449 if (fchdir(cwd) == -1) {
450 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to cwd: %s",
490 if (fchdir(cwd) == -1) {
491 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to cwd: %s",
518 if (cwd != -1)
519 close(cwd);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/perl/BerkeleyDB/t/
H A Denv.t87 my $cwd = cwd() ;
88 my $home = "$cwd/fred" ;
227 my $cwd = cwd() ;
228 my $home = "$cwd/fred" ;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/smbwrapper/
H A Dsmbw_dir.c374 char *cwd; local
393 cwd = smbw_parse_path(name, server, share, path);
396 if (strncmp(cwd, smbw_prefix, len-1) == 0 &&
397 cwd[len-1] == 0) {
401 if (strncmp(cwd,smbw_prefix,strlen(smbw_prefix))) {
402 if (real_chdir(cwd) == 0) {
435 DEBUG(4,("set SMBW_CWD to %s\n", cwd));
437 pstrcpy(smbw_cwd, cwd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/files/
H A Ddetach_afp_shares147 status=`ls -l /proc/$afppid/cwd | awk '{print $11}' | grep -o "$mount_point[ ]*$\|$mount_point/"`
159 status=`ls -l /proc/$afppid/cwd | awk '{print $11}' | grep -o "$mount_point[ ]*$\|$mount_point/"`
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/prebuilt/WW/usr/sbin/
H A Ddetach_afp_shares147 status=`ls -l /proc/$afppid/cwd | awk '{print $11}' | grep -o "$mount_point[ ]*$\|$mount_point/"`
159 status=`ls -l /proc/$afppid/cwd | awk '{print $11}' | grep -o "$mount_point[ ]*$\|$mount_point/"`
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/files/
H A Ddetach_afp_shares147 status=`ls -l /proc/$afppid/cwd | awk '{print $11}' | grep -o "$mount_point[ ]*$\|$mount_point/"`
159 status=`ls -l /proc/$afppid/cwd | awk '{print $11}' | grep -o "$mount_point[ ]*$\|$mount_point/"`

Completed in 164 milliseconds

1234