search for: fd2

Displaying 20 results from an estimated 82 matches for "fd2".

Did you mean: fd
2016 Feb 24
1
compile error, param/loadparm.c
Hi, When I builded realtek image, the compiler stop in Samba compiling process, Did I miss something? Thanks. Best regards, Wilson ps. error message was list below, make[3]: Entering directory `/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba' make -C samba-3.2.15/source make[4]: Entering directory `/media/FD2/Project/WAP-3522/rtl819x-SDK-v3.4.6.7-full-package/rtl819x/users/samba/samba-3.2.15/source' Using FLAGS = -I/media/FD2/Project/WAP-3522/rtl819x-S...
2006 Nov 29
2
Dummies multiplied with other variable
...e vector d with three (actually many more) levels using factor(). But either there is included the variable y or d1*y. How could I get rid of these? Example: x = c(1,2,3,4,5,6,7,8) y = c(3,6,2,8,7,6,2,4) d = c(1,1,1,2,3,2,3,3) fd = factor(d) lm(x ~ fd*y) gives: Coefficients: (Intercept) fd2 fd3 y fd2:y fd3:y 2.4231 9.5769 6.1822 -0.1154 -0.8846 -0.3320 lm(x ~ fd*y - y) gives: Coefficients: (Intercept) fd2 fd3 fd1:y fd2:y fd3:y 2.4231 9.5769 6.1822 -0.1154 -1.0000...
2001 Nov 13
2
direct write patch
...Thu Mar 30 06:23:03 2000 +++ rsync-2.4.6-direct-write/receiver.c Sun Nov 11 11:14:43 2001 @@ -34,6 +34,7 @@ extern char *tmpdir; extern char *compare_dest; extern int make_backups; +extern int direct_write; extern char *backup_suffix; static struct delete_list { @@ -302,7 +303,8 @@ int fd1,fd2; STRUCT_STAT st; char *fname; - char fnametmp[MAXPATHLEN]; + char *fnametmp; + char fnametmpbuf[MAXPATHLEN]; char *fnamecmp; char fnamecmpbuf[MAXPATHLEN]; struct map_struct *buf; @@ -314,6 +316,7 @@ extern int preserve_perms; extern int delete_after; struct stats initial_stats; + in...
2010 Jan 15
0
[PATCH] Btrfs: fix regression in orphan cleanup
...This is easily reproduceable by running this testcase #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <stdio.h> int main(int argc, char **argv) { char data[4096]; char newdata[4096]; int fd1, fd2; memset(data, ''a'', 4096); memset(newdata, ''b'', 4096); while (1) { int i; fd1 = creat("file1", 0666); if (fd1 < 0) break; for (i = 0; i < 512; i++) write(fd1, data, 4096); fsync(fd1); close(fd1); fd2 = creat("file2...
2004 Apr 27
1
[PATCH] Inplace option for rsync
...ile(mapbuf); - if (fd1 != -1) close(fd1); - continue; - } - - strlcpy(template, fnametmp, sizeof template); + /* We now check to see if we are writing file "inplace" */ + if (inplace) { + fd2 = do_open(fnamecmp, O_WRONLY|O_CREAT, 0); + if (fd2 == -1) { + rprintf(FERROR, "open %s failed: %s\n", + full_fname(fnametmp), strerror(errno)); + receive_data(f_in,mapbuf,-1,NULL,file->length); +...
2004 Apr 11
1
fchmod in do_mkstemp? (patch included)
...u -w -r1.75 receiver.c --- receiver.c 23 Mar 2004 16:50:40 -0000 1.75 +++ receiver.c 10 Apr 2004 23:48:36 -0000 @@ -424,7 +424,7 @@ * the lchown. Thanks to snabb@epipe.fi for pointing * this out. We also set it initially without group * access because of a similar race condition. */ - fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); + fd2 = do_mkstemp(fnametmp); /* in most cases parent directories will already exist * because their information should have been previously @@ -432,7 +432,7 @@ if (fd2 == -1 && relative_paths && errno == ENOE...
2003 Nov 17
0
[PATCH] --source-filter && --dest-filter for rsync 2.5.6
...0; + if (p) { + rprintf(FERROR,"Too many arguments to dest-filter (> %d)\n", i); + exit_cleanup(RERR_SYNTAX); + } + } + while (1) { cleanup_disable(); @@ -448,16 +469,34 @@ log_transfer(file, fname); } + if (dest_filter) { + pid = run_filter(filter_argv, fd2, &fd2); + } + /* recv file data */ recv_ok = receive_data(f_in,buf,fd2,fname,file->length); + if (dest_filter) { + close(fd2); + wait_process(pid, &status); + if (status != 0) { + rprintf(FERROR,"filter %s exited code: %d\n", + dest_filter, status); +...
2003 Jan 18
1
possible typo/bug in receiver.c
...setuid/setgid bits to ensure that there is no race condition. They are then correctly updated after the lchown. Thanks to snabb@epipe.fi for pointing this out. We also set it initially without group access because of a similar race condition. */ fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); if (fd2 == -1) { rprintf(FERROR,"mkstemp %s failed: %s\n",fnametmp,strerror(errno)); receive_data(f_in,buf,-1,NULL,file->length); if (buf) unmap_file(buf);...
2010 Mar 11
2
[PATCH FOR DISCUSSION ONLY] Rewrite libguestfs-supermin-helper in C.
...if (full_write (out_fd, buffer, len) != len) { + perror ("libguestfs-supermin-helper: write"); + exit (EXIT_FAILURE); + } + out_offset += len; +} + +/* Copy contents of file to out_fd. */ +static void +copy_file_to_fd (const char *filename) +{ + char buffer[BUFFER_SIZE]; + int fd2; + ssize_t r; + + if (verbose >= 2) + fprintf (stderr, "copy_file_to_fd %s -> %d\n", filename, out_fd); + + fd2 = open (filename, O_RDONLY); + if (fd2 == -1) { + perror (filename); + exit (EXIT_FAILURE); + } + for (;;) { + r = read (fd2, buffer, sizeof buffer); +...
2002 Jun 07
0
problem related to filename length
...setuid/setgid bits to ensure that there is no race + condition. They are then correctly updated after + the lchown. Thanks to snabb@epipe.fi for pointing + this out. We also set it initially without group + access because of a similar race condition. */ + + fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); + }while(!flag && (retry++ < max_retry) && + (fd2 == -1 && errno == EEXIST)); + if(flag) continue; } - - strlcpy(template, fnametmp, sizeof(template)); - - /* we initially set the perms without the...
2012 Jan 24
14
[PATCH 00/14] Run the daemon under valgrind and fix resultant errors.
This patch series lets you run the daemon under valgrind. Many errors were found and fixed. With the complete series applied, valgrind doesn't show any errors.
2001 Feb 26
0
Problems with OpenSSH 2.5.1p1 on Solaris 8
...d one more page, because we need + * zero at EOF, otherwise string and memory + * functions could get SIGSEGV. + */ +#ifdef MAP_ANON + onemore = mmap(logstr + inode.st_size, pagesize, + PROT_READ, + MAP_SHARED | MAP_FIXED | MAP_ANON, + -1, 0); +#else + int fd2; + if ((fd2 = open("/dev/zero", O_RDONLY)) < 0) + goto nocando; + onemore = mmap(logstr + inode.st_size, pagesize, + PROT_READ, + MAP_SHARED | MAP_FIXED, + fd2, 0); + close(fd2); +#endif + if(onemore == MAP_FAILED) + goto nocando; + } +...
2015 Feb 26
4
[PATCH v2 1/4] Add atomic_inc_return to atomics.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at ubuntu.com> --- xf86atomic.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xf86atomic.h b/xf86atomic.h index 8c4b696..17fb088 100644 --- a/xf86atomic.h +++ b/xf86atomic.h @@ -49,6 +49,7 @@ typedef struct { # define atomic_read(x) ((x)->atomic) # define atomic_set(x, val) ((x)->atomic = (val)) # define atomic_inc(x)
2006 Sep 04
7
DO NOT REPLY [Bug 4079] New: rsync fails with --inplace, --link-dest and --no-whole-file
https://bugzilla.samba.org/show_bug.cgi?id=4079 Summary: rsync fails with --inplace, --link-dest and --no-whole- file Product: rsync Version: 2.6.8 Platform: x86 OS/Version: Linux Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned@samba.org
2010 Jan 24
2
Creating directories & folders
Dear R users, I would like to create the following 3 folders (FUND1, FUND2, MARINE) within the 'parent.dir' as defined below. FUND1 <- "FD1 Q4 2009" FUND2 <- "FD2 Q4 2009" MARINE <- "MARINE Q4 2009" parent.dir <- "D:/....................." folders <- c("FUND1", "FUND2", "MARINE") for (i in 1:length(folders)) { dir.create(do.call("paste", c(parent.dir, list(folders), sep = &quot...
2015 Feb 24
4
[PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests
...struct nouveau_bo *bo = NULL; + int i; + + for (i = 0; i < 100000; ++i) { + if (!nouveau_bo_prime_handle_ref(nvdev, import_fd, &bo)) + nouveau_bo_ref(NULL, &bo); + } + return NULL; +} + +int main(int argc, char *argv[]) +{ + drmVersionPtr version; + const char *device; + int err, fd, fd2; + struct nouveau_device *nvdev, *nvdev2; + struct nouveau_bo *bo; + + old_ioctl = dlsym(RTLD_NEXT, "ioctl"); + + pthread_t t1, t2; + + if (argc < 2) + device = default_device; + else + device = argv[1]; + + fd = open(device, O_RDWR); + fd2 = open(device, O_RDWR); + if (fd < 0 ||...
2005 Dec 10
2
Problems with integrate
...*sqrt(1-Beta(K)^2)/(dnorm(B)*Beta(K)*(1-R)) alpha10=-2*dnorm(A)*(C*Beta(K)-A)/(Beta(K)*(1-Beta(K)^2)) alpha11=(1-R)*dnorm(A)*dnorm(B)*(Beta(K)-A/Beta(K)*(C*Beta(K)-A))/((1-Beta(K)^2)^1.5) alpha20=(1-R)*dnorm(A)*dnorm(B)/sqrt(1-Beta(K)^2) return(alpha0+(alpha10+alpha11*fd(K,Beta))*fd(K,Beta)+alpha20*fd2(K,Beta)) } Beta needs to be passed in as a function: Beta<-splinefun(c(.03,.06,.09,.12,.22,.6),c(.117,.248,.35,.426,.603,1),method="natural") Now, when I try out lossdensity, it works fine: > lossdensity(.02,Beta,.4) [1] 0.1444915 I defined lossdistribution as: lossdistributi...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...etrieve the size of a file argument + * filestr directory name of directory entry + * de directory entry + */ +int rosh_ls_de_size(const char *filestr, struct dirent *de) +{ + int de_size; + +#ifdef __COM32__ + de_size = de->d_size; +#else /* __COM32__ */ + char filestr2[ROSH_PATH_SZ + 1]; + int fd2, file2pos; + struct stat fdstat; + int status; + + filestr2[0] = 0; + file2pos = -1; + if (filestr) { + file2pos = strlen(filestr); + memcpy(filestr2, filestr, file2pos); + filestr2[file2pos] = '/'; + } + strcpy(filestr2+file2pos+1, de->d_name); + fd2 = open(filestr2, O_RDONLY); + sta...
2015 Feb 25
0
[PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests
...me_handle_ref(nvdev, import_fd, &bo)) > + nouveau_bo_ref(NULL, &bo); > + } > + return NULL; > +} > + > +int main(int argc, char *argv[]) > +{ > + drmVersionPtr version; > + const char *device; > + int err, fd, fd2; > + struct nouveau_device *nvdev, *nvdev2; > + struct nouveau_bo *bo; > + > + old_ioctl = dlsym(RTLD_NEXT, "ioctl"); > + > + pthread_t t1, t2; > + > + if (argc < 2) > + device = default_device; > + else &g...
2015 Feb 25
1
[PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests
...) >> + nouveau_bo_ref(NULL, &bo); >> + } >> + return NULL; >> +} >> + >> +int main(int argc, char *argv[]) >> +{ >> + drmVersionPtr version; >> + const char *device; >> + int err, fd, fd2; >> + struct nouveau_device *nvdev, *nvdev2; >> + struct nouveau_bo *bo; >> + >> + old_ioctl = dlsym(RTLD_NEXT, "ioctl"); >> + >> + pthread_t t1, t2; >> + >> + if (argc < 2) >> + device =...