Displaying 20 results from an estimated 44 matches for "sys_errlist".
2019 Sep 30
0
[PATCH libnbd v2 1/2] lib: Don't use perror after fork in nbd_connect_callback.
...should be another API to do this
+ - capture error message when nbd_connect_command fails
diff --git a/configure.ac b/configure.ac
index 6296ccf..35a4fed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,16 @@ AC_CHECK_HEADERS([\
stdatomic.h \
sys/endian.h])
+dnl Check for sys_errlist (optional).
+AC_MSG_CHECKING([for sys_errlist])
+AC_TRY_LINK([], [extern int sys_errlist; char *p = &sys_errlist;], [
+ AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+ [Define if libc has a sys_errlist variable.])
+ AC_MSG_RESULT([yes])
+], [
+ AC_MSG_RESULT([no])
+])
+
dnl Check fo...
2019 Sep 30
1
Re: [PATCH libnbd v2 1/2] lib: Don't use perror after fork in nbd_connect_callback.
...| 2 ++
> lib/utils.c | 66 ++++++++++++++++++++++++++++++++++++++
> 5 files changed, 84 insertions(+), 2 deletions(-)
>
> +++ b/configure.ac
> @@ -77,6 +77,16 @@ AC_CHECK_HEADERS([\
> stdatomic.h \
> sys/endian.h])
>
> +dnl Check for sys_errlist (optional).
> +AC_MSG_CHECKING([for sys_errlist])
> +AC_TRY_LINK([], [extern int sys_errlist; char *p = &sys_errlist;], [
We probably ought to use AC_CACHE_CHECK for our various configure.ac
things, to let a user have more control at overriding things if we
probed wrong without having...
2019 Nov 15
1
Re: [PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
...c b/configure.ac
index 2dbe97d..9bd6f73 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,10 +79,6 @@ AC_CHECK_HEADERS([\
AC_CHECK_HEADERS([linux/vm_sockets.h], [], [], [#include <sys/socket.h>])
-dnl Check for functions, all optional.
-AC_CHECK_FUNCS([\
- execvpe])
-
dnl Check for sys_errlist (optional).
AC_MSG_CHECKING([for sys_errlist])
AC_TRY_LINK([], [extern int sys_errlist; char *p = &sys_errlist;], [
diff --git a/generator/states-connect-socket-activation.c
b/generator/states-connect-socket-activation.c
index 243ba36..ee08dff 100644
--- a/generator/states-connect-socket-a...
2004 Aug 17
1
[LLVMdev] What's the meaning of [0 x sbyte*]?
Hi
When I compiled sendmail v8.11.6 with LLVM 1.2, I found some variables with
strange type, such as:
%sys_errlist = external constant [0 x sbyte*] ; <[0 x sbyte*]*> [#uses=3]
%tmp.24 = getelementptr [0 x sbyte*]* %sys_errlist, long 0, long %tmp.23 ; <sbyte**> [#uses=1]
The process of getting these is:
1. entry sendmail-8.11.6 directory
2. make CC="/cfrontend/x86/llvm...
2019 Sep 30
4
[PATCH libnbd v2 0/2] Implement systemd socket activation.
v1 was posted here:
https://www.redhat.com/archives/libguestfs/2019-September/thread.html#00337
v2:
- Drop the first patch.
- Hopefully fix the multiple issues with fork-safety and general
behaviour on error paths.
Note this requires execvpe for which there seems to be no equivalent
on FreeBSD, except some kind of tedious path parsing (but can we
assign to environ?)
Rich.
2001 Mar 12
1
Bug in bsd-misc.c
Hi guys...
Just wanted to see what is so different in BSD from Linux and had a
quick look at the openbsd-compat directory (openssh-2.5.1p1).
There is a REALLY obvious bug in bsd-misc.c, quoted below:
#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) &&
defined(HAVE_SYS_NERR)
const char *strerror(int e)
{
extern int sys_nerr;
extern char *sys_errlist[];
if ((e >= 0) || (e < sys_nerr))
return("unlisted error");
else
return(sys_errlist[e]);
}
#endif...
2000 Jul 17
0
patch for getting 2.1.1p4 to compile on SunOS 4
Hi.
SunOS 4 is one system that relies on the strerror() in bsd-misc.[ch].
However, that replacement function does not have the right prototype.
This is fixed in the patch below. There was also an error with
sys_errlist not being explicitely declared. Also fixed.
There was another weird link-time problem with bsd-misc.o being at the
same time used by some *.o in libssh.a and using itself entropy.o in
libssh.a. This only showed up in linking scp which doesn't need
libssh.a. The only solution to this is to s...
2002 Jun 06
0
Problem running dejaGNU testsuites for samba.
...roups in getent group
Running ./nsswitch/finger.exp ...
FAIL: error running wbinfo
Running ./nsswitch/getent.exp ...
FAIL: no domain users in getent passwd
Running ./nsswitch/getgrent_r.exp ...
ERROR: compile getgrent_r
nsswitch/getgrent_r.c: In function `dump_grent':
nsswitch/getgrent_r.c:26: `sys_errlist' undeclared (first use in this function)
nsswitch/getgrent_r.c:26: (Each undeclared identifier is reported only once
nsswitch/getgrent_r.c:26: for each function it appears in.)
Running ./nsswitch/getgrgid.exp ...
ERROR: No domain groups returned from getent
Running ./nsswitch/getgrnam.exp ......
2000 Feb 14
0
[openssh-1.2.2] some porting notes for SunOS 4.1.4
...ed on BSD signal semantics; do they also apply when using signal
functions from the POSIX interface? (See patch at end of mail.)
That's it for now.
Charles
========================================================================
==> strerror.c <==
extern int sys_nerr;
extern char *sys_errlist[];
char *
strerror(e)
int e;
{
return (e >= 0 && e < sys_nerr)
? sys_errlist[e]
: "unlisted error" ;
}
==> atexit.c <==
#include <sys/types.h>
extern int on_exit(void (*f)(), caddr_t a);
int
atexit(f)
void (*f)(void);
{
return on_exit(f, 0) ? 0 : -1;...
2003 Mar 14
2
recycle.so compiling problem
...des.h:25:20: config.h: No such file or
directory
In file included from recycle/recycle.c:37:
../../source/include/includes.h:402: conflicting types for `socklen_t'
/usr/include/bits/socket.h:36: previous declaration of `socklen_t'
../../source/include/includes.h:636: conflicting types for `sys_errlist'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/include/stdio.h:561:
previous declaration of `sys_errlist'
In file included from ../../source/include/includes.h:683,
from recycle/recycle.c:37:
../../source/include/smb.h:380: parse error before "int32"
../../source/...
2019 Oct 01
2
Re: [PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
On 9/30/19 11:32 AM, Richard W.M. Jones wrote:
> This adds new APIs for running a local NBD server and connecting to it
> using systemd socket activation (instead of stdin/stdout).
>
> This includes interop tests against nbdkit and qemu-nbd which I
> believe are the only NBD servers supporting socket activation. (If we
> find others then we can add more interop tests in
2019 Sep 30
0
[PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
...acters are escaped.
diff --git a/configure.ac b/configure.ac
index 35a4fed..2ebd47c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,10 @@ AC_CHECK_HEADERS([\
stdatomic.h \
sys/endian.h])
+dnl Check for functions, all optional.
+AC_CHECK_FUNCS([\
+ execvpe])
+
dnl Check for sys_errlist (optional).
AC_MSG_CHECKING([for sys_errlist])
AC_TRY_LINK([], [extern int sys_errlist; char *p = &sys_errlist;], [
diff --git a/generator/Makefile.am b/generator/Makefile.am
index c20184a..dca17de 100644
--- a/generator/Makefile.am
+++ b/generator/Makefile.am
@@ -24,6 +24,7 @@ DISTCLEANFILES...
2009 Jun 01
0
Compiling 3.4.0pre1 via makerpms.sh
...-mtune=' or '-march=' instead.
> In file included from ../lib/replace/replace.c:25:
> ../lib/replace/replace.h:32:20: error: config.h: No such file or directory
> In file included from ../lib/replace/replace.c:25:
> ../lib/replace/replace.h:125: error: conflicting types for ?sys_errlist?
> /usr/include/bits/sys_errlist.h:28: error: previous declaration of
> ?sys_errlist? was here
> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
> ../lib/replace/replace.c:54:2: error: #error "you must have a
> ftruncate function"
> ../lib/r...
2000 Jul 14
1
Patch to make openssh-2.1.1p3 compile on SunOS 4.1.4
Hi,
For the last few weeks I've been struggling to get openSSL/openSSH compiled
and running under SunOS.
Specfically, openssh-2.1.1p3:
SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0.
Compiled with SSL (0x00905820).
on SunOS 4.1.4.
Happily I can say there is only one small change so I'm not going to even
try to generate all the associated noise you'd expect.
The function
2005 Feb 20
0
Re: Asterisk-Users Digest, Vol 7, Issue 260
...itch.h"
/* Main program. */
int main(int argc, char **argv)
{
struct termios port_config;
int fd;
int set_bits = 6;
/* Open monitor device. */
if ((fd = open(SWDEV, O_RDWR | O_NDELAY)) < 0) {
fprintf(stderr, "lpswtich: %s: %s\n", SWDEV, sys_errlist[errno]);
exit(1);}
cfmakeraw( &port_config );
port_config.c_iflag=port_config.c_iflag|IXON;
port_config.c_oflag=port_config.c_oflag|CLOCAL|~CRTSCTS;
tcsetattr( fd, TCSANOW, &port_config );
ioctl(fd, TIOCMSET, &set_bits );
sleep(5);
close(fd);...
2023 Mar 16
1
[libnbd PATCH v4 3/3] lib/utils: add unit test for async-signal-safe assert()
...ern starts with a pipe (|) symbol, Linux
>> +dnl ignores "ulimit -c" and (equivalent) setrlimit(RLIMIT_CORE) actions, for
>> +dnl disabling core dumping. Only prctl() can be used then, for that purpose.
>> +dnl
>> dnl strerrordesc_np (glibc only) is preferred over sys_errlist:
>> dnl https://lists.fedoraproject.org/archives/list/glibc at lists.fedoraproject.org/thread/WJHGG2OO7ABNAYICGA5WQZ2Q34Q2FEHU/
>> AC_CHECK_FUNCS([\
>> posix_fadvise \
>> posix_memalign \
>> + prctl \
>> strerrordesc_np \
>&...
1997 Apr 23
0
Linux squake security hole (provides root if squake is installed mode 4755)
...probably
start seeing "permission denied" errors there if you make the rootness stuff
work reasonably, but they won''t have any idea what the error number means.
Maybe change it to something more like:
printf("CDAudio_Init: open of \"/dev/cdrom\" failed(%s)\n",sys_errlist[errno]);
Thank you for reading all of this drivel. Have a nice day.
Greg Alexander
<Tag removed>
----------------------------------------------------------------------
John Carmack responded saying that it was up to Zoid to fix the problem.
Zoid responded by saying that he would have to t...
2020 Aug 25
0
ANNOUNCE: libnbd 1.4 - high performance NBD client library
...Compatibility with Python 3.9.
External C programs can now be compiled against libnbd’s build
directory using "../libnbd/run ./configure".
Honggfuzz can be used as another external fuzzing option.
Fix compilation with glibc 2.32 which deprecates "sys_errlist".
Many examples added or extended to demonstrate uses of the new APIs
(Eric Blake).
SEE ALSO
libnbd(3).
AUTHORS
Eric Blake
Richard W.M. Jones
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and vir...
2019 Sep 26
2
Re: [PATCH libnbd 2/2] api: Implement local command with systemd socket activation.
On 9/26/19 11:40 AM, Richard W.M. Jones wrote:
> This adds new APIs for running a local NBD server and connecting to it
> using systemd socket activation (instead of stdin/stdout).
>
> This includes interop tests against nbdkit and qemu-nbd which I
> believe are the only NBD servers supporting socket activation. (If we
> find others then we can add more interop tests in
2023 Mar 15
4
[libnbd PATCH v4 0/3] lib/utils: add async-signal-safe assert()
This is version 4 of the following sub-series:
[libnbd PATCH v3 06/29] lib/utils: introduce xwrite() as a more robust write()
[libnbd PATCH v3 07/29] lib/utils: add async-signal-safe assert()
[libnbd PATCH v3 08/29] lib/utils: add unit test for async-signal-safe assert()
http://mid.mail-archive.com/20230215141158.2426855-7-lersek at redhat.com