Displaying 8 results from an estimated 8 matches for "seterror".
Did you mean:
set_error
2004 Jan 01
1
[PATCH] Add winbind-backed NTLMSSP support to Cyrus-SASL
...) {
- to_unicode(base + *offset, str, len);
- len *= 2;
- }
- else {
- memcpy(base + *offset, str, len);
+ int pipe_in[2];
+ int pipe_out[2];
+
+ if ( (pipe(pipe_in) < 0) || (pipe(pipe_out) < 0) ) {
+ syslog(LOG_DEBUG, "fork_child: could not open pipes\n");
+ utils->seterror(utils->conn, 0, "Could not allocate pipe\n");
+ return SASL_FAIL;
}
- }
-
- UINT16_TO_INTEL(len, buf->len);
- buf->maxlen = buf->len;
- UINT32_TO_INTEL(*offset, buf->offset);
- *offset += len;
-}
-
-/* unload a string from an NTLM buffer */
-static int unl...
2012 Jun 18
0
[LLVMdev] object construction patterns and unique_ptr
...would work. This would be used as:
// In the error_category stuff
class blah_reader_error_category : public llvm::_do_message {
public:
virtual std::string message(int ev) const {
...
case uknown_reloc:
return "uknown relocation % at %";
...
}
};
// In the reader.
setError(make_pair(blah_error::unkown_reloc,
vector<string>{relocationumer, loc})); // loc could be calculated by
backtracking, or just the current file address. (we could even pass
the address as a stop address to obj2yaml).
// Someplace else.
if (File->error())
o << File->getErrorMes...
2001 Oct 23
1
can't find files due to wrong filepath
...on@@IAE@XZ(<unknown, check return>)
ret=00456338
0806cc20:CALL mfc42.349: @(<unknown, check return>) ret=40c3516c
0806cc20:RET mfc42.349: @(00000000) retval = 406b2c94 ret=40c3516c
0806cc20:RET rlmfc.22: ??0R_Exception@@IAE@XZ() retval = 406b2c94
ret=00456338
0806cc20:CALL rlmfc.690: ?setError@R_Exception@@QAAXPBDZZ(406b2c94,004d4850
"Could not find file %s",004d5360 "3dmark.ras") ret=0045635e
0806cc20:CALL msvcrt.497: _vsnprintf(<unknown, check return>) ret=40c352ef
0806cc20:RET msvcrt.497: _vsnprintf() retval = 0000001e ret=40c352ef
0806cc20:RET rlmfc.690: ?...
2012 Jun 19
2
[LLVMdev] object construction patterns and unique_ptr
...y stuff
> class blah_reader_error_category : public llvm::_do_message {
> public:
> virtual std::string message(int ev) const {
> ...
> case uknown_reloc:
> return "uknown relocation % at %";
> ...
> }
> };
>
> // In the reader.
>
> setError(make_pair(blah_error::unkown_reloc,
> vector<string>{relocationumer, loc})); // loc could be calculated by
> backtracking, or just the current file address. (we could even pass
> the address as a stop address to obj2yaml).
>
> // Someplace else.
>
> if (File->error()...
2005 Jan 20
0
SASL build error on solaris 8
...in lib
/bin/sh ../libtool --mode=link gcc -Wall -W -Wall -g -O2 -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -L/usr/local/lib -o libsasl2.la -rpath =/usr/local/lib -version-info 2:15:0 auxprop.lo canonusr.lo checkpw.lo client.lo common.lo config.lo external.lo md5.lo saslutil.lo server.lo seterror.lo dlopen.lo plugin_common.lo -ldl -lresolv -lsocket -lnsl -lresolv -lresolv -lresolv -lsocket
libtool: link: only absolute run-paths are allowed
*** Error code 1
make: Fatal error: Command failed for target `libsasl2.la'
Current working directory /export/home/fmg/ads/cyrus-sasl-2.1.15/lib
***...
2012 Jun 18
6
[LLVMdev] object construction patterns and unique_ptr
On Jun 16, 2012, at 3:51 PM, Chris Lattner wrote:
> On Jun 15, 2012, at 3:48 PM, Nick Kledzik wrote:
>
>> In lld we have a Reader class which is a factory that takes .o file(s) and produces an in memory lld::File object(s). But in doing so, there could be I/O errors (file not readable) or file may be malformed. We are also using C++11 in lld, so we use std::unique_ptr for managing
2020 Apr 21
2
[PATCH nbdkit v2] Add the ability to write plugins in golang.
...+ panic("plugin must implement PRead()")
+}
+
+// The implementation of the user plugin.
+var pluginImpl PluginInterface
+
+// Callbacks from the server. These translate C to Go and back.
+
+func set_error(err error) {
+ perr, ok := err.(PluginError)
+ if ok {
+ if perr.Errno != 0 {
+ SetError(perr.Errno)
+ }
+ Error(perr.Errmsg)
+ } else {
+ Error(err.Error())
+ }
+}
+
+//export implConfig
+func implConfig(key *C.char, value *C.char) C.int {
+ err := pluginImpl.Config(C.GoString(key), C.GoString(value))
+ if err != nil {
+ set_error(err)
+ return -1
+ }
+ return 0
+}
+
+//export im...
2020 Apr 23
2
Re: [PATCH nbdkit v2] Add the ability to write plugins in golang.
...the user plugin.
+var pluginImpl PluginInterface
+var nextConnectionId uintptr
+var connectionMap map[uintptr]ConnectionInterface
+
+// Callbacks from the server. These translate C to Go and back.
+
+func set_error(err error) {
+ perr, ok := err.(PluginError)
+ if ok {
+ if perr.Errno != 0 {
+ SetError(perr.Errno)
+ }
+ Error(perr.Errmsg)
+ } else {
+ Error(err.Error())
+ }
+}
+
+//export implLoad
+func implLoad() {
+ pluginImpl.Load()
+}
+
+//export implUnload
+func implUnload() {
+ pluginImpl.Unload()
+}
+
+//export implConfig
+func implConfig(key *C.char, value *C.char) C.int {
+ err := plu...