Displaying 10 results from an estimated 10 matches for "__gnu_library__".
2001 Mar 28
0
sftp client globbing problems on Solaris, Irix, etc
...b.c 2001/03/28 03:28:37
@@ -65,7 +65,9 @@
struct dirent *fudge_readdir(struct SFTP_OPENDIR *od)
{
- static struct dirent ret;
+ /* Solaris needs sizeof(dirent) + path length (see below) */
+ static char buf[sizeof(struct dirent) + MAXPATHLEN];
+ struct dirent *ret = (struct dirent *)buf;
#ifdef __GNU_LIBRARY__
static int inum = 1;
#endif /* __GNU_LIBRARY__ */
@@ -73,22 +75,30 @@
if (od->dir[od->offset] == NULL)
return(NULL);
- memset(&ret, 0, sizeof(ret));
- strlcpy(ret.d_name, od->dir[od->offset++]->filename,
- sizeof(ret.d_name));
+ memset(buf, 0, sizeof(buf));
+ /*
+...
2018 Dec 28
1
[PATCH nbdkit] common: Improve pseudo-random number generation.
...clude "random.h"
+
#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL
struct error_settings {
@@ -222,17 +224,13 @@ error_config (nbdkit_next_config *next, void *nxdata,
" Apply settings only to read/write/trim/zero"
struct handle {
-#ifdef __GNU_LIBRARY__
- struct random_data rd;
- char rd_state[32];
-#endif
+ struct random_state random_state;
};
static void *
error_open (nbdkit_next_open *next, void *nxdata, int readonly)
{
struct handle *h;
- time_t t;
if (next (nxdata, readonly) == -1)
return NULL;
@@ -242,11 +240,7 @@ erro...
2018 Dec 28
0
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
...clude "random.h"
+
#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL
struct error_settings {
@@ -222,17 +224,13 @@ error_config (nbdkit_next_config *next, void *nxdata,
" Apply settings only to read/write/trim/zero"
struct handle {
-#ifdef __GNU_LIBRARY__
- struct random_data rd;
- char rd_state[32];
-#endif
+ struct random_state random_state;
};
static void *
error_open (nbdkit_next_open *next, void *nxdata, int readonly)
{
struct handle *h;
- time_t t;
if (next (nxdata, readonly) == -1)
return NULL;
@@ -242,11 +240,7 @@ erro...
2018 Dec 28
2
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
v2:
- Fix seeding.
- Add a test that nbdkit-random-plugin is producing something
which looks at least somewhat random.
Rich.
2002 Apr 03
2
cross compilation?
...-
strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN);
-#else
strlcpy(ret->d_name, od->dir[od->offset++]->filename,
-
sizeof(ret->d_name));
-#endif
+
(sizeof(ret->d_name) <= sizeof(char))?
+
MAXPATHLEN: sizeof(ret->d_name));
#ifdef __GNU_LIBRARY__
/*
* Idiot glibc uses extensions to struct dirent for readdir with
2002 Jun 29
0
[Bug 321] New: configure does not work when cross compiling
...T_D_NAME
-
strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN);
-#else
strlcpy(ret->d_name, od->dir[od->offset++]->filename,
-
sizeof(ret->d_name));
-#endif
+
(sizeof(ret->d_name) <= sizeof(char))?
+
MAXPATHLEN: sizeof(ret->d_name));
#ifdef __GNU_LIBRARY__
/*
* Idiot glibc uses extensions to struct dirent for readdir with
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2007 Sep 04
1
CPAN error
...33.
Constant subroutine _LARGEFILE_SOURCE undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 98, <STDIN>
line 33.
Constant subroutine __USE_ISOC99 undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 102, <STDIN>
line 33.
Constant subroutine __GNU_LIBRARY__ undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 147, <STDIN>
line 33.
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled
Can't ioctl TIOCGETP: Invalid argument
Consider installing Term::ReadKey from CPAN site nearby...
2018 Aug 12
13
[PATCH nbdkit 00/10] FreeBSD support.
With these patches, a majority of tests pass. The notable
things which are still broken:
- Because FreeBSD links /home -> /usr/home, $(pwd) gives a different
result from realpath(2). Therefore some tests which implicitly
rely on (eg) a plugin which calls nbdkit_realpath internally and
then checking that path against $(pwd) fail.
- Shebangs (#!) don't seem to work the same way
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...&& len <= 8);
+
+ k = 8-len;
+ while (k > 0 && lfn->short_base[k] == ' ')
+ k--;
+ memcpy (&lfn->short_base[k], s, len);
+ }
+ }
+ }
+
+ return 0;
+}
+
+static const char lfn_encoding[] =
+ "UTF-16LE"
+#ifdef __GNU_LIBRARY__
+ "//TRANSLIT"
+#endif
+ ;
+
+static int
+convert_to_utf16le (const char *name, char **out, size_t *output_len)
+{
+ iconv_t ic;
+ const size_t input_len = strlen (name);
+ size_t outalloc, inlen, outlen, prev, r;
+ const char *inp;
+ char *outp;
+
+ /* XXX Assumes locale is UTF-8...
2018 Oct 28
6
[PATCH nbdkit 0/4] Add floppy plugin.
Add nbdkit-floppy-plugin, “inspired” by qemu's VVFAT driver, but
without the ability to handle writes.
The implementation is pretty complete, supporting FAT32, LFNs, volume
labels, timestamps, etc, and it passes both ‘make check’ and ‘make
check-valgrind’.
Usage is simple; to serve the current directory:
$ nbdkit floppy .
Then using guestfish (or any NBD client):
$ guestfish --ro