search for: pathbuf

Displaying 12 results from an estimated 12 matches for "pathbuf".

Did you mean: path_buf
2008 Nov 07
0
[PATCH][cfq-cgroups] Introduce ioprio class for top layer.
...ys expire after 1 dispatch round. + */ + if (cfqdd->busy_data > 1 && cfq_data_class_idle(cfqd)) { + cfqd->slice_end = jiffies + 1; + cfq_cgroup_slice_expired(cfqdd, 0); + } + return dispatched; } @@ -699,149 +744,164 @@ param_separate(const char *master, char *valbuf, char *pathbuf, int size) *pc2 = '\0'; } -static ssize_t cfq_cgroup_read(struct cgroup *cont, struct cftype *cft, - struct file *file, char __user *userbuf, - size_t nbytes, loff_t *ppos) -{ - struct cfq_cgroup *cfqc; - char *page; - ssize_t ret; - struct rb_node *p; - - page = (ch...
2008 Nov 07
0
[PATCH][cfq-cgroups] Introduce ioprio class for top layer.
...ys expire after 1 dispatch round. + */ + if (cfqdd->busy_data > 1 && cfq_data_class_idle(cfqd)) { + cfqd->slice_end = jiffies + 1; + cfq_cgroup_slice_expired(cfqdd, 0); + } + return dispatched; } @@ -699,149 +744,164 @@ param_separate(const char *master, char *valbuf, char *pathbuf, int size) *pc2 = '\0'; } -static ssize_t cfq_cgroup_read(struct cgroup *cont, struct cftype *cft, - struct file *file, char __user *userbuf, - size_t nbytes, loff_t *ppos) -{ - struct cfq_cgroup *cfqc; - char *page; - ssize_t ret; - struct rb_node *p; - - page = (ch...
2019 Jan 25
0
[klibc:update-dash] [CD] support drive letters on Cygwin
...commands. @@ -194,6 +197,17 @@ updatepwd(const char *dir) char *cdcomppath; const char *lim; +#ifdef __CYGWIN__ + /* On cygwin, thanks to drive letters, some absolute paths do + not begin with slash; but cygwin includes a function that + forces normalization to the posix form */ + char pathbuf[PATH_MAX]; + if (cygwin_conv_path(CCP_WIN_A_TO_POSIX | CCP_RELATIVE, dir, pathbuf, + sizeof(pathbuf)) < 0) + sh_error("can't normalize %s", dir); + dir = pathbuf; +#endif + cdcomppath = sstrdup(dir); STARTSTACKSTR(new); if (*dir != '/') {
2020 Mar 28
0
[klibc:update-dash] dash: [CD] support drive letters on Cygwin
...commands. @@ -194,6 +197,17 @@ updatepwd(const char *dir) char *cdcomppath; const char *lim; +#ifdef __CYGWIN__ + /* On cygwin, thanks to drive letters, some absolute paths do + not begin with slash; but cygwin includes a function that + forces normalization to the posix form */ + char pathbuf[PATH_MAX]; + if (cygwin_conv_path(CCP_WIN_A_TO_POSIX | CCP_RELATIVE, dir, pathbuf, + sizeof(pathbuf)) < 0) + sh_error("can't normalize %s", dir); + dir = pathbuf; +#endif + cdcomppath = sstrdup(dir); STARTSTACKSTR(new); if (*dir != '/') {
2008 Jul 21
2
sftp needs a long time for sending a filelist
Hello all Im using sftp 1:4.7p1-8ubuntu1.2 in a batchjob Ive noticed that sftp needs a long time for sending a filelist. The timespan increases exponential if many files are on the remoteserver. for example "ls -la *.txt" needs 10 seconds for 2000 files but needs 50 seconds for 4000 files. For 150.000 Files i have to wait 15 minutes for example but the
2008 Nov 12
15
[PATCH][RFC][12+2][v3] A expanded CFQ scheduler for cgroups
This patchset expands traditional CFQ scheduler in order to support cgroups, and improves old version. Improvements are as following. * Modularizing our new CFQ scheduler. The expanded CFQ scheduler is registered/unregistered as new I/O elevator scheduler called "cfq-cgroups". By this, the traditional CFQ scheduler, which does not handle cgroups, and our new CFQ
2008 Nov 12
15
[PATCH][RFC][12+2][v3] A expanded CFQ scheduler for cgroups
This patchset expands traditional CFQ scheduler in order to support cgroups, and improves old version. Improvements are as following. * Modularizing our new CFQ scheduler. The expanded CFQ scheduler is registered/unregistered as new I/O elevator scheduler called "cfq-cgroups". By this, the traditional CFQ scheduler, which does not handle cgroups, and our new CFQ
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
...e); - - if (fd >= 0) - fcntl(fd, F_SETFD, FD_CLOEXEC); - - return fd; -} diff --git a/usr/klibc/shm_open.c b/usr/klibc/shm_open.c index 8fe93aa..a54e246 100644 --- a/usr/klibc/shm_open.c +++ b/usr/klibc/shm_open.c @@ -19,5 +19,5 @@ int shm_open(const char *path, int oflag, mode_t mode) memcpy(pathbuf, "/dev/shm/", 9); memcpy(pathbuf+9, path, len+1); - return open_cloexec(path, oflag, mode); + return open(path, oflag, mode|O_CLOEXEC); }
2007 Nov 04
5
problem with sftp & huawei switches
hello, I have the problem with sftp, I can't read files and dirs from huawei switches. I see: mm:/home/milon# sftp 10.1.1.30:vrpcfg.cfg . Connecting to 10.1.1.30... root at 10.1.1.30's password: Couldn't stat remote file: Operation unsupported File "flash:/flash:/vrpcfg.cfg" not found. Received disconnect from 10.1.1.30: 2: The connection is closed by SSH Server Current
2004 Aug 06
6
URGENT: security exploit fix
...le: /cvsroot/icecast/src/source.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- source.c 7 Aug 2001 19:16:14 -0000 1.34 +++ source.c 10 Apr 2002 21:36:27 -0000 1.35 @@ -608,7 +608,7 @@ xa_debug (1, "DEBUG: Search local mount points"); - sprintf(pathbuf, "%s:%d%s", req->host[0] ? req->host : "localhost", req->port, req->path); + snprintf(pathbuf, BUFSIZE, "%s:%d%s", req->host[0] ? req->host : "localhost", req->port, req->path); while ((con = avl_traverse(info.sources, &...
2004 Aug 06
6
URGENT: security exploit fix
...le: /cvsroot/icecast/src/source.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- source.c 7 Aug 2001 19:16:14 -0000 1.34 +++ source.c 10 Apr 2002 21:36:27 -0000 1.35 @@ -608,7 +608,7 @@ xa_debug (1, "DEBUG: Search local mount points"); - sprintf(pathbuf, "%s:%d%s", req->host[0] ? req->host : "localhost", req->port, req->path); + snprintf(pathbuf, BUFSIZE, "%s:%d%s", req->host[0] ? req->host : "localhost", req->port, req->path); while ((con = avl_traverse(info.sources, &...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address