Displaying 8 results from an estimated 8 matches for "gl_off".
Did you mean:
sl_off
2010 Feb 23
1
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems (rt)
...bmieee -nofstore
-c platform.c -o platform.o
"/usr/include/glob.h", line 175: identifier redeclared: glob64
current : function(pointer to const char, int, pointer to function(..)
returning int, pointer to struct {unsigned int gl_pathc, pointer to pointer
to char gl_pathv, unsigned int gl_offs, int gl_flags, pointer to
function(..) returning void gl_closedir, pointer to function(..) returning
pointer to struct dirent64 {..} gl_readdir, pointer to function(..)
returning pointer to void gl_opendir, pointer to function(..) returning int
gl_lstat, pointer to function(..) returning int gl_st...
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
2001 Mar 20
1
[2.5.2p1] openbsd-compat/glob.c: ARG_MAX not defined, alternative
Hi.
On sparc-sun-sunos4.1.4 (i.e., -DSUNOS4), ARG_MAX is not defined
anywhere, although <sys/limits.h> has the following line:
#define _POSIX_ARG_MAX 4096
This is more a minimum imposed by POSIX than anything else. The
proper solution revolves around this:
========================================================================
bash$ cat > x.c
#include <unistd.h>
2010 Feb 22
2
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems
I am trying to compile R on Linux using SunStudio. Configure flags are
mostly as suggested in the R install guide.
CC=/opt/sun/sunstudio12.1/bin/suncc
CFLAGS="-g -xc99 -xlibmil -xlibmieee"
MAIN_CFLAGS=-g
SHLIB_CFLAGS=-g
CPPFLAGS="-I. -I/opt/sun/sunstudio12.1/prod/include
-I/opt/sun/sunstudio12.1/prod/include/cc"
CPPFLAGS+="-I/opt/sun/sunstudio12.1/prod/include/cc/sys
2016 Feb 03
0
[PATCH 2/3] daemon: glob: add option for not returning dirs with trailing slash
...b.c
index 45fb30f..de615ee 100644
--- a/daemon/glob.c
+++ b/daemon/glob.c
@@ -26,14 +26,18 @@
#include "actions.h"
char **
-do_glob_expand (const char *pattern)
+do_glob_expand (const char *pattern, int nodirectoryslash)
{
int r;
glob_t buf = { .gl_pathc = 0, .gl_pathv = NULL, .gl_offs = 0 };
+ int flags = GLOB_BRACE;
+
+ if (!nodirectoryslash)
+ flags |= GLOB_MARK;
/* glob(3) in glibc never calls chdir, so this seems to be safe: */
CHROOT_IN;
- r = glob (pattern, GLOB_MARK|GLOB_BRACE, NULL, &buf);
+ r = glob (pattern, flags, NULL, &buf);
CHROOT_OUT;...
2016 Feb 04
2
[PATCH v2 1/2] daemon: glob: add optarg to control trailing slash for dirs
...lob.c
index 45fb30f..a22fd33 100644
--- a/daemon/glob.c
+++ b/daemon/glob.c
@@ -26,14 +26,21 @@
#include "actions.h"
char **
-do_glob_expand (const char *pattern)
+do_glob_expand (const char *pattern, int directoryslash)
{
int r;
glob_t buf = { .gl_pathc = 0, .gl_pathv = NULL, .gl_offs = 0 };
+ int flags = GLOB_BRACE | GLOB_MARK;
+
+ /* GLOB_MARK is default, unless the user explicitly disabled it. */
+ if ((optargs_bitmask & GUESTFS_GLOB_EXPAND_DIRECTORYSLASH_BITMASK)
+ && !directoryslash) {
+ flags &= ~GLOB_MARK;
+ }
/* glob(3) in glibc never ca...
2016 Feb 03
6
[PATCH 1/3] sysprep, get-kernel: explicit the Guestfs parameter
Help the OCaml compiler by expliciting Guestfs.guestfs as type for 'g'
in some functions.
---
get-kernel/get_kernel.ml | 2 +-
sysprep/sysprep_operation_abrt_data.ml | 2 +-
sysprep/sysprep_operation_bash_history.ml | 2 +-
sysprep/sysprep_operation_ca_certificates.ml | 2 +-
sysprep/sysprep_operation_crash_data.ml
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...glob_t gl;
int r, i;
- pattern = userdata_path(ctx, domid, "*", "?");
- if (!pattern) return;
+ pattern = userdata_path(&gc, domid, "*", "?");
+ if (!pattern)
+ goto out;
gl.gl_pathc = 0;
gl.gl_pathv = 0;
gl.gl_offs = 0;
r = glob(pattern, GLOB_ERR|GLOB_NOSORT|GLOB_MARK, 0, &gl);
- if (r == GLOB_NOMATCH) return;
- if (r) XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "glob failed for %s", pattern);
+ if (r == GLOB_NOMATCH)
+ goto out;
+ if (r)
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR, &qu...