search for: strerror_r

Displaying 20 results from an estimated 193 matches for "strerror_r".

2018 Jan 22
2
[PATCH] lua, perl: Use thread-safe strerror_r instead of strerror (RHBZ#1536763).
...ua_State *L) return luaL_error (L, \"Guestfs.create: too many arguments\"); g = guestfs_create_flags (flags); - if (!g) - return luaL_error (L, \"Guestfs.create: cannot create handle: %%s\", - strerror (errno)); + if (!g) { + ignore_value (strerror_r (errno, err, sizeof err)); + return luaL_error (L, \"Guestfs.create: cannot create handle: %%s\", err); + } guestfs_set_error_handler (g, NULL, NULL); @@ -226,6 +230,7 @@ error__tostring (lua_State *L) { int code; const char *msg; + char err[128]; lua_pushliteral (...
2006 Dec 08
3
build error: strerror() ...
Hi, changeset 12809 gives me this: xc_private.c: In function ‘safe_strerror’: xc_private.c:500: warning: return makes pointer from integer without a cast make[3]: *** [xc_private.o] Error 1 cheers, Gerd -- Gerd Hoffmann <kraxel@suse.de> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2018 Jan 22
0
Re: [PATCH] lua, perl: Use thread-safe strerror_r instead of strerror (RHBZ#1536763).
...a build failure without it? > #include <guestfs.h> > #include \"guestfs-utils.h\" > > @@ -142,6 +144,7 @@ guestfs_int_lua_create (lua_State *L) > guestfs_h *g; > struct userdata *u; > unsigned flags = 0; > + char err[128]; In other places were strerror_r is used, the size of the buffer is 256. Can you please adapt it? (Mostly so we have the same code everywhere.) Thanks, -- Pino Toscano
2015 Feb 11
2
Re: [PATCH 2/5] macosx: Add definition of program_name for gnulib
On Wed, Feb 11, 2015 at 09:52:59PM +0000, Margaret Lewicka wrote: > On 11 February 2015 at 19:23, Richard W.M. Jones <rjones@redhat.com> wrote: > > On Wed, Feb 11, 2015 at 07:20:33PM +0000, Margaret Lewicka wrote: > [...] > >> Proposing a patch to gnulib, even should they accept it, does not fix > >> the underlying issue, which is, essentially, that gnulib
2009 Aug 03
0
[PATCH] guestfs: fix typo in my recent change
...(guestfs_h *g, const char *fs, ...) { va_list args; char *msg; - int err = errno; + int errnum = errno; va_start (args, fs); int err = vasprintf (&msg, fs, args); @@ -450,11 +450,11 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...) #ifndef _GNU_SOURCE char buf[256]; - strerror_r (err, buf, sizeof buf); + strerror_r (errnum, buf, sizeof buf); #else char _buf[256]; char *buf; - buf = strerror_r (err, _buf, sizeof _buf); + buf = strerror_r (errnum, _buf, sizeof _buf); #endif msg = safe_realloc (g, msg, strlen (msg) + 2 + strlen (buf) + 1); -- 1.6.4.212.g4719
2015 Feb 12
0
[PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin
--- lib/error.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/error.c b/lib/error.c index 6683197..36a3db7 100644 --- a/lib/error.c +++ b/lib/error.c @@ -113,9 +113,13 @@ int strerror_r (); # endif # endif +#if defined __APPLE__ && defined __MACH__ +#define program_name (((char **)*_NSGetArgv())[0]) +#else /* The calling program should define program_name and set it to the name of the executing program. */ extern char *program_name; +#endif # if HAVE_STRERRO...
2015 Feb 12
2
Re: [PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin
On Thursday 12 February 2015 17:39:45 Margaret Lewicka wrote: > --- > lib/error.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/lib/error.c b/lib/error.c > index 6683197..36a3db7 100644 > --- a/lib/error.c > +++ b/lib/error.c > @@ -113,9 +113,13 @@ int strerror_r (); > # endif > # endif > > +#if defined __APPLE__ && defined __MACH__ > +#define program_name (((char **)*_NSGetArgv())[0]) > +#else > /* The calling program should define program_name and set it to the > name of the executing program. */ > extern cha...
2019 Jul 21
2
Missing hivex.h error when compiling on macOS 10.14 (Mojave)
...g for working alloca.h... yes checking for alloca... yes checking for _set_invalid_parameter_handler... no checking for fcntl... yes checking for symlink... yes checking for getdtablesize... yes checking for getprogname... yes checking for getexecname... no checking for mprotect... yes checking for strerror_r... yes checking for __xpg_strerror_r... no checking for strndup... yes checking for vasnprintf... no checking for snprintf... yes checking for ftruncate... yes checking for gettimeofday... yes checking for isblank... yes checking for lstat... yes checking for pipe... yes checking for pthread_sigmas...
2018 May 14
1
Unable to build 'lld' on Mac OS 10.9
...d -- Looking for posix_spawn -- Looking for posix_spawn - found -- Looking for pread -- Looking for pread - found -- Looking for realpath -- Looking for realpath - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for strerror -- Looking for strerror - found -- Looking for strerror_r -- Looking for strerror_r - found -- Looking for strerror_s -- Looking for strerror_s - notfound -- Looking for setenv -- Looking for setenv - found -- Looking for dlopen -- Looking for dlopen - found -- Looking for dladdr -- Looking for dladdr - found -- Looking for __GLIBC__ -- Looking...
2012 Oct 12
2
[LLVMdev] cmake+ninja build error for compiler-rt sources
...rand48 - found -- Looking for lrand48 -- Looking for lrand48 - found -- Looking for drand48 -- Looking for drand48 - found -- Looking for strtoll -- Looking for strtoll - found -- Looking for strtoq -- Looking for strtoq - found -- Looking for strerror -- Looking for strerror - found -- Looking for strerror_r -- Looking for strerror_r - found -- Looking for strerror_s -- Looking for strerror_s - not found -- Looking for memcpy -- Looking for memcpy - found -- Looking for memmove -- Looking for memmove - found -- Looking for setenv -- Looking for setenv - found -- Looking for argz_append -- Looking for a...
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...for drand48 > > -- Looking for drand48 - found > > -- Looking for strtoll > > -- Looking for strtoll - found > > -- Looking for strtoq > > -- Looking for strtoq - found > > -- Looking for strerror > > -- Looking for strerror - found > > -- Looking for strerror_r > > -- Looking for strerror_r - found > > -- Looking for strerror_s > > -- Looking for strerror_s - not found > > -- Looking for memcpy > > -- Looking for memcpy - found > > -- Looking for memmove > > -- Looking for memmove - found > > -- Looking for...
2012 Oct 12
0
[LLVMdev] cmake+ninja build error for compiler-rt sources
...ing for lrand48 - found > -- Looking for drand48 > -- Looking for drand48 - found > -- Looking for strtoll > -- Looking for strtoll - found > -- Looking for strtoq > -- Looking for strtoq - found > -- Looking for strerror > -- Looking for strerror - found > -- Looking for strerror_r > -- Looking for strerror_r - found > -- Looking for strerror_s > -- Looking for strerror_s - not found > -- Looking for memcpy > -- Looking for memcpy - found > -- Looking for memmove > -- Looking for memmove - found > -- Looking for setenv > -- Looking for setenv - foun...
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...at-tests stat-time stat-time-tests stdbool stdbool-tests stddef stddef-tests stdint stdint-tests stdio stdio-tests stdlib stdlib-tests strchrnul strchrnul-tests strdup-posix streq strerror strerror-override strerror-tests strerror_r-posix strerror_r-posix-tests string string-tests strndup strnlen strnlen-tests strnlen1 symlink symlink-tests symlinkat symlinkat-tests sys_ioctl sys_ioctl-tests sys_select sys_select-tests sys_socket sys_socket-tests sys_stat sy...
2011 Oct 25
0
[LLVMdev] [LLVMDev] Clang stopped compiling?
On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote: > Hi, I'm trying to compile the latest clang/llvm SVN versions and I get > this error on multiple systems : Linking, not compiling, but still. I am getting a similar error when building this morning. > Undefined symbols for architecture x86_64: > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced
2012 Oct 13
0
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...king for drand48 - found >> > -- Looking for strtoll >> > -- Looking for strtoll - found >> > -- Looking for strtoq >> > -- Looking for strtoq - found >> > -- Looking for strerror >> > -- Looking for strerror - found >> > -- Looking for strerror_r >> > -- Looking for strerror_r - found >> > -- Looking for strerror_s >> > -- Looking for strerror_s - not found >> > -- Looking for memcpy >> > -- Looking for memcpy - found >> > -- Looking for memmove >> > -- Looking for memmove - fou...
2011 Jan 05
0
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
Eric Christopher <echristo at apple.com> writes: >>> Or cleanup both headers from unused stuff by Eric's >>> suggestion? >> >> I'm not sure this is a good idea (not that it is bad either). Murphy's >> Law says that a function that you remove today will be used tomorrow. > > I meant literally functions that aren't used in the
2009 Aug 03
0
[PATCH] guestfs: don't fault upon failed vasprintf
...c/guestfs.c @@ -443,9 +443,11 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...) int err = errno; va_start (args, fs); - vasprintf (&msg, fs, args); + int err = vasprintf (&msg, fs, args); va_end (args); + if (err < 0) return; + #ifndef _GNU_SOURCE char buf[256]; strerror_r (err, buf, sizeof buf); -- 1.6.3.3
2019 Jan 22
2
Re: [nbdkit PATCH 0/3] Fix %m usage on BSD
...results among all threads, in part because it computes the resulting string via catopen()/catgets()/catclose() and MUST copy the localized string somewhere because the source read via catgets() may not survive catclose(). So we really need to audit all use of sterror() in nbdkit and switch over to strerror_r(), remembering to work around the alternate glibc signature when _GNU_SOURCE is defined. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
2011 Jan 05
2
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
On Jan 5, 2011, at 6:34 AM, Óscar Fuentes wrote: > arrowdodger <6yearold at gmail.com> writes: > >>> Or to say it with other words: patches welcome. >> >> So, how should i proceed? Make CMake-generated config to be identical to >> autotools one? > > That would be a good thing. > > Please note that some checks are a bit tricky. A function that
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...gt; > -- Looking for strtoll > >> > -- Looking for strtoll - found > >> > -- Looking for strtoq > >> > -- Looking for strtoq - found > >> > -- Looking for strerror > >> > -- Looking for strerror - found > >> > -- Looking for strerror_r > >> > -- Looking for strerror_r - found > >> > -- Looking for strerror_s > >> > -- Looking for strerror_s - not found > >> > -- Looking for memcpy > >> > -- Looking for memcpy - found > >> > -- Looking for memmove > >&gt...