Displaying 18 results from an estimated 18 matches for "_errno".
Did you mean:
errno
2007 Dec 10
0
[PATCH] avoid duplication of domain ID in messages
...2-10/xen/common/event_channel.c
===================================================================
--- 2007-12-10.orig/xen/common/event_channel.c 2007-09-10 09:59:37.000000000 +0200
+++ 2007-12-10/xen/common/event_channel.c 2007-12-10 09:22:53.000000000 +0100
@@ -42,8 +42,16 @@
#define ERROR_EXIT(_errno) \
do { \
gdprintk(XENLOG_WARNING, \
- "EVTCHNOP failure: domain %d, error %d, line %d\n", \
- current->dom...
2019 Jun 28
2
Re: [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
...tring containing
> +the error message. Use the .errno property to return a
> +Python errno (which may be None in some cases if the error
> +did not correspond to a system call failure).
> +'''
> +
> +Error.string = property (lambda self: self.args[0])
> +
> +def _errno (self):
> + import errno
> + try:
> + return errno.errorcode[self.args[1]]
> + except KeyError:
> + return None
> +Error.errno = property (_errno)
> +
> +def _str (self):
> + if self.errno:
> + return (\"%%s (%%s)\" %% (self.s...
2017 Feb 13
2
[PATCH] Enable specific ioctl calls for ICA crypto card (s390)
...ms). */
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#define LO_ARG(idx) offsetof(struct seccomp_data, args[(idx)])
+#elif __BYTE_ORDER == __BIG_ENDIAN
+#define LO_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) + sizeof(_u32)
+#else
+#error "Unknown endianness"
+#endif
#define SC_DENY(_nr, _errno) \
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 1), \
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO|(_errno))
@@ -82,9 +94,8 @@
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
#define SC_ALLOW_ARG(_nr, _arg_nr, _arg_val) \
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 4), \
- /* load first s...
2019 Jun 28
1
Re: [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
...a system call failure), or the .errno property to
+return a string containing the Python errno name if one is known
+(which may be None if the numeric value does not correspond to
+a known errno name).
'''
Error.string = property (lambda self: self.args[0])
@@ -3961,6 +3964,8 @@ def _errno (self):
return None
Error.errno = property (_errno)
+Error.errnum = property (lambda self: self.args[1])
+
def _str (self):
if self.errno:
return (\"%%s (%%s)\" %% (self.string, self.errno))
--
Eric Blake, Principal Software Engineer
Red Hat, Inc....
2019 Jun 28
3
[PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
Following Eric's suggestions from v2, this adds .string, .errno and
.__str__ properties. The .string property returns the error string.
The .errno property returns the errno (from the errno module), or
None. The __str__ property makes the exception nicely printable.
Rich.
2019 Jun 28
0
Re: [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
...ssage. Use the .errno property to return a
> > +Python errno (which may be None in some cases if the error
> > +did not correspond to a system call failure).
> > +'''
> > +
> > +Error.string = property (lambda self: self.args[0])
> > +
> > +def _errno (self):
> > + import errno
> > + try:
> > + return errno.errorcode[self.args[1]]
> > + except KeyError:
> > + return None
> > +Error.errno = property (_errno)
> > +
> > +def _str (self):
> > + if self.errno:
> > +...
2003 Dec 24
0
[LLVMdev] Re: pthread?
I try to run lli with "--load=/lib/libpthread.so", but it shows:
---------------------------------------------------
[yue at RH9 test]$ ./pthread.ll
Error opening '/lib/libpthread.so.0': /lib/libpthread.so.0: symbol
_errno, version GLIBC_2.0 not defined in file libc.so.6 with link time
reference
-load request ignored.
Creating thread 0
WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
instead!
ERROR; return code from pthread_create() is -1073747260
-----------------------------------...
2019 Jun 28
0
[PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
...d_handle\");
}
+/* nbd.Error exception. */
+extern PyObject *nbd_internal_py_Error;
+
+static inline void
+raise_exception ()
+{
+ PyObject *args = PyTuple_New (2);
+
+ PyTuple_SetItem (args, 0, PyUnicode_FromString (nbd_get_error ()));
+ PyTuple_SetItem (args, 1, PyLong_FromLong (nbd_get_errno ()));
+ PyErr_SetObject (nbd_internal_py_Error, args);
+}
+
";
List.iter (
@@ -3390,6 +3403,9 @@ static struct PyModuleDef moduledef = {
NULL, /* m_free */
};
+/* nbd.Error exception. */
+PyObject *nbd_internal_py_Error;
+
extern PyMODINIT_FUNC PyInit_libnbdmod (...
2003 Dec 24
1
[LLVMdev] Re: pthread?
On Wed, 24 Dec 2003, yue wrote:
> I try to run lli with "--load=/lib/libpthread.so", but it shows:
> ---------------------------------------------------
> [yue at RH9 test]$ ./pthread.ll
> Error opening '/lib/libpthread.so.0': /lib/libpthread.so.0: symbol
> _errno, version GLIBC_2.0 not defined in file libc.so.6 with link time
> reference
> -load request ignored.
This is strange, I have no idea why this is happening. Maybe you have
mixed versions of different libraries installed on your system? Maybe
your compiled version of LLI is not up-to-date?...
2003 Dec 23
4
[LLVMdev] pthread?
hi,
I compile a pthread program using llvmgcc, but when i run pthread.ll, it
show:
------------------
[yue at RH9 test]$ llvmgcc pthread.c -o pthread.ll
[yue at RH9 test]$ ls
pthread pthread.c pthread.ll pthread.ll.bc
[yue at RH9 test]$ ./pthread.ll
Creating thread 0
WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
instead!
ERROR; return code from
2013 Nov 23
3
[LLVMdev] [RFC] Identifying access to errno
...gt; Okay. We should check.
>>
>
> A Windows program can have two different global error numbers: Win32 and
> C-Runtime flavor.
>
> The Win32 flavor is exposed via GetLastError/SetLastError[Ex]
> The CRT flavor (errno) is, currently, exposed via a macro that expands to
> (*_errno())
>
>
>>
>> Thanks again,
>> Hal
>>
>> >
>> >
>> > --renato
>>
>> --
>> Hal Finkel
>> Assistant Computational Scientist
>> Leadership Computing Facility
>> Argonne National Laboratory
>> ____________...
2013 Nov 23
0
[LLVMdev] [RFC] Identifying access to errno
...; is not errno. Windows maybe?
>
> Okay. We should check.
>
A Windows program can have two different global error numbers: Win32 and
C-Runtime flavor.
The Win32 flavor is exposed via GetLastError/SetLastError[Ex]
The CRT flavor (errno) is, currently, exposed via a macro that expands to
(*_errno())
>
> Thanks again,
> Hal
>
> >
> >
> > --renato
>
> --
> Hal Finkel
> Assistant Computational Scientist
> Leadership Computing Facility
> Argonne National Laboratory
> _______________________________________________
> LLVM Developers mailing...
2013 Nov 24
0
[LLVMdev] [RFC] Identifying access to errno
...e should check.
>
>
>
> A Windows program can have two different global error numbers: Win32
> and C-Runtime flavor.
>
>
> The Win32 flavor is exposed via GetLastError/SetLastError[Ex]
> The CRT flavor (errno) is, currently, exposed via a macro that
> expands to (*_errno())
>
>
>
>
> Thanks again,
> Hal
>
> >
> >
> > --renato
>
>
>
> --
> Hal Finkel
> Assistant Computational Scientist
> Leadership Computing Facility
> Argonne National Laboratory
> ___________________________________________...
2003 May 30
1
krb5-1.2.8 on cygwin + kerberized ssh
...d be nice if there was an option to just
compile client stuff.
The resolv library problem went away. I don't know
if that was a change to krb5 or to cygwin. Bison
problems also went away.
Still need to add
#include <errno.h>
to src/util/ss/ss_internal.h, otherwise the
linker gives _errno errors.
I didn't have libutil installed when I did the
configure and I found I needed to add -lutil to
the link of login.krb5 in src/appl/bsd.
After that everything seemed to work (against an
AD KDC). I tried kinit, klist and telnet -a.
It seemed to create the file in /tmp with
appropriate NT...
2013 Nov 23
2
[LLVMdev] [RFC] Identifying access to errno
----- Original Message -----
> From: "Renato Golin" <renato.golin at linaro.org>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: "LLVM" <llvmdev at cs.uiuc.edu>
> Sent: Saturday, November 23, 2013 10:53:09 AM
> Subject: Re: [LLVMdev] [RFC] Identifying access to errno
>
>
>
>
> On 23 November 2013 14:14, Hal Finkel <
2013 Nov 24
1
[LLVMdev] [RFC] Identifying access to errno
...> > A Windows program can have two different global error numbers: Win32
> > and C-Runtime flavor.
> >
> >
> > The Win32 flavor is exposed via GetLastError/SetLastError[Ex]
> > The CRT flavor (errno) is, currently, exposed via a macro that
> > expands to (*_errno())
> >
> >
> >
> >
> > Thanks again,
> > Hal
> >
> > >
> > >
> > > --renato
> >
> >
> >
> > --
> > Hal Finkel
> > Assistant Computational Scientist
> > Leadership Computing Facility
> &...
2006 Nov 28
1
(PR#9390) when loading library tripack entry point "signal"
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--27464147-1968795515-1164715405=:5670
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT
You need to re-install packages when you update R, as it says in the
rw-FAQ. Use update.packages(checkBuilt=TRUE) to
2004 Jun 23
4
CRIS port of klibc
...- .globl ___syscall_common
- .type ___syscall_common,@function
-___syscall_common:
+ .globl __syscall_common
+ .type __syscall_common,@function
+__syscall_common:
push $srp
move [$sp+4],$mof
move [$sp+8],$srp
@@ -19,11 +19,12 @@
cmp.d -4096,$r10
blt 1f
- neg.d $r10,$r11
- move.d $r11,[_errno]
+ neg.d $r10,$r11
+ move.d $r11,[errno]
moveq -1,$r10
1:
- jump [sp+]
- nop
+ pop $srp
+ ret
+ nop
- .size ___syscall_common,.-___syscall_common
+ .size __syscall_common,.-__syscall_common
diff -urN ./klibc/arch/cris/sysstub.ph
../klibc-0.146-modified/klibc/arch/cris/sysstub.ph
--- ./klibc/...