search for: get_handle

Displaying 20 results from an estimated 72 matches for "get_handle".

2020 Feb 12
0
[PATCH nbdkit 2/3] server: Rename ‘struct b_conn_handle’ to plain ‘struct handle’.
Also add an inline accessor function (get_handle). This also removes the unused function connection_get_handle. --- server/internal.h | 24 ++++++++++++++++----- server/backend.c | 50 ++++++++++++++++++++++---------------------- server/connections.c | 11 +--------- 3 files changed, 45 insertions(+), 40 deletions(-) diff --git a/server...
2006 May 15
1
[PATCH 8/12] openssh-4.3p2 return code check bugs
The get_handle function can return a negative value. The variable that value is assigned to is eventually passed to handle_close which uses the value as an array index thus not being able to handle negative values. This patch adds the return code check and provides an appropriate error exit in the event of a neg...
2007 Apr 26
0
[ wxruby-Bugs-10378 ] Window#get_handle causes segmentation fault on windows
...-26 06:16 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10378&group_id=35 Category: Incorrect behavior Group: v0.3 Status: Open Resolution: None Priority: 3 Submitted By: Scott McKay (fiirhok) Assigned to: Kevin Smith (qualitycode) Summary: Window#get_handle causes segmentation fault on windows Initial Comment: Attempting to call Window#get_handle on a Frame object causes a segmentation fault. Calling Window#get_handle on a Window object appears to succeed, but attempting to call any of the methods of the returned object causes a segmentation fault a...
2005 Sep 27
5
WxRuby + Ruby/SDL
Hi, I am making a game with Ruby/SDL and have run into trouble finding a GUI to cooperate. I have seen numerous examples of wxWindows in combination with SDL (wxPython and PyGame), but have yet to be able to do it in ruby (PyGame example: http://wiki.wxpython.org/index.cgi/IntegratingPyGame). I am not very good with wxRuby as this is my first time using it and thought some more knowledgable users
2007 Apr 29
0
[985] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix get_handle on GTK
...s {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[985] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix get_handle on GTK</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>985</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29 10:10:22 -0400 (Sun, 29 Apr 2007)</dd> &l...
2007 Apr 26
0
[973] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix crasher with Window#get_handle, also comment the paint method
...ext-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[973] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix crasher with Window#get_handle, also comment the paint method</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>973</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-26 18:45:33 -0400 (Thu, 26...
2020 Feb 12
5
[PATCH nbdkit 1/3] server: Rename global backend pointer to "top".
It's confusing to use the same terminology for a single backend as for the linked list of backends. In particular it's often not clear if we're calling the next backend or the whole chain of backends. --- server/internal.h | 14 ++++++++++-- server/connections.c | 20 ++++++++--------- server/locks.c | 2 +- server/main.c
2008 Jun 19
1
[LLVMdev] Constant function pointers and inlining
...r, once I get the GenericValue that points to the handler, I don't really know how to turn that to a constant function pointer in LLVM. What I do is rather complicated: Value* handler = ConstantExpr::getIntToPtr( ConstantInt::get(Type::Int32Ty, (unsigned int) engine->runFunction(get_handler, args).PointerVal), PointerType::get(handler_type, 0)); /* ^^^^^ Is there a better way to do the conversion? ^^^^^^ */ Value* result = builder.CreateCall2(handler, execute_data, tsrlm_ref, "execute_result"); And as a result I get handler calls like this: %execu...
2006 Apr 14
8
[rfc] [patch] 32/64-bit hypercall interface revisited
...ef struct { type *p; } __guest_handle_ ## name + typedef union { uint64_t u; type *p; } __guest_handle_ ## name +#define SET_HANDLE(hnd, val) do { \ + (void)((hnd).p == (val)); \ + (hnd).u = (uint64_t)(unsigned long)(void *)(val); \ + } while (0) + +#define GET_HANDLE(val, hnd) do { \ + (val) = (hnd).p; \ + } while (0) This patch could be applied in advance of solving problems #1 and #2 above. However, it will likely require hand-merging with the libxc whitespace patch I sent recently. [1] In the archive, the thread sp...
2011 Mar 31
2
Python Hivex Assertion Failed
...the blog post from 11/28/10 and is: import hivex h = hivex.Hivex("ntuser.dat") r = h.root() key = h.node_get_child(r) The assert failure happens when I call any of the "node" functions, even "node_name()". The error message I get each time is: python: hivex-py.c:52: get_handle: Assertion 'obj' failed When I print r (h.root() result), I get a long integer "4128". (Which makes sense -- that would be shortly into the second bin, where the root of the hive should be). The hivex.3 man page indicates that the return value for the root() function should...
2020 Mar 04
2
[PATCH nbdkit] server: Only display "close: " debug message if callback is called.
...lly being called. --- server/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/backend.c b/server/backend.c index 51b56a48..108f4a25 100644 --- a/server/backend.c +++ b/server/backend.c @@ -241,10 +241,10 @@ backend_close (struct backend *b) struct handle *h = get_handle (conn, b->i); /* outer-to-inner order, opposite .open */ - controlpath_debug ("%s: close", b->name); if (h->handle) { assert (h->state & HANDLE_OPEN); + controlpath_debug ("%s: close", b->name); b->close (b, h->handle); } el...
2011 Apr 27
2
[PATCH] hivex/python fix for i386 integer size issue
...ilure for the Python bindings with Python 2.7 on the i386 architecture. (The tests ran fine on amd64.) ,---- | $ make -C python check | make[1]: Entering directory `/home/bengen/src/deb/hivex/hivex.git/python' | 010-import.py | 020-open.py | 021-close.py | 200-write.py | python: hivex-py.c:52: get_handle: Assertion `obj' failed. `---- I narrowed this down to hivex-py.c:py_hivex_node_add_child(): The call ,---- | PyArg_ParseTuple (args, (char *) "OLs:hivex_node_add_child", | &py_h, &parent, &name) `---- results in `py_h' set to NULL, though...
2005 Sep 28
1
Patch for typemap.i
...rnings while compiling. You may noticed that I didn''t fix all the typecheck typemaps. I suppose I should fix all of them, but they don''t cause problems with the compilation. This also has a patch to convert void *''s into ruby numbers. This fixes a problem with the get_handle call. I still am not sure what''s causing the problems with the other returns it can''t use. I''m betting it has something to do with improper typemaps. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://ruby...
2012 Dec 14
1
[PATCH V5] libxenstore: filter watch events in libxenstore when we unwatch
...truct xs_handle { struct list_head watch_list; /* Clients can select() on this pipe to wait for a watch to fire. */ int watch_pipe[2]; + /* Filtering watch event in unwatch function? */ + bool unwatch_filter; }; #define mutex_lock(m) ((void)0) @@ -247,6 +251,8 @@ static struct xs_handle *get_handle(const char *connect_to) /* Watch pipe is allocated on demand in xs_fileno(). */ h->watch_pipe[0] = h->watch_pipe[1] = -1; + h->unwatch_filter = false; + #ifdef USE_PTHREAD pthread_mutex_init(&h->watch_mutex, NULL); pthread_cond_init(&h->watch_condvar, NULL); @@ -28...
2012 Dec 14
1
[PATCH V4] libxenstore: filter watch events in libxenstore when we unwatch
...truct xs_handle { struct list_head watch_list; /* Clients can select() on this pipe to wait for a watch to fire. */ int watch_pipe[2]; + /* Filtering watch event in unwatch function? */ + bool unwatch_filter; }; #define mutex_lock(m) ((void)0) @@ -247,6 +251,8 @@ static struct xs_handle *get_handle(const char *connect_to) /* Watch pipe is allocated on demand in xs_fileno(). */ h->watch_pipe[0] = h->watch_pipe[1] = -1; + h->unwatch_filter = false; + #ifdef USE_PTHREAD pthread_mutex_init(&h->watch_mutex, NULL); pthread_cond_init(&h->watch_condvar, NULL); @@ -28...
2023 Feb 22
1
[PATCH nbdkit] curl: Try to share as much as possible between handles in the pool
...a/plugins/curl/curldefs.h b/plugins/curl/curldefs.h index c2a3432fc..d614379d0 100644 --- a/plugins/curl/curldefs.h +++ b/plugins/curl/curldefs.h @@ -117,9 +117,10 @@ struct curl_handle { }; /* pool.c */ +extern void load_pool (void); +extern void unload_pool (void); extern struct curl_handle *get_handle (void); extern void put_handle (struct curl_handle *ch); -extern void free_all_handles (void); /* scripts.c */ extern int do_scripts (struct curl_handle *ch); diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c index b5927b5b4..b8624a6f8 100644 --- a/plugins/curl/curl.c +++ b/plugins/curl/c...
2019 Sep 30
5
[Bug 3074] New: memory leak reported in static code analysis
...Severity: minor Priority: P5 Component: sftp Assignee: unassigned-bugs at mindrot.org Reporter: krishnaiah.bommu at intel.com Static code analysis is reporting Possible memory leak as Dynamic memory stored in 'handle' allocated through function 'get_handle' at line 559 can be lost at line 635 -- You are receiving this mail because: You are watching the assignee of the bug.
2020 Mar 04
0
Re: [PATCH nbdkit] server: Only display "close: " debug message if callback is called.
...ent since it likewise gets skipped when .prepare fails. > > diff --git a/server/backend.c b/server/backend.c > index 51b56a48..108f4a25 100644 > --- a/server/backend.c > +++ b/server/backend.c > @@ -241,10 +241,10 @@ backend_close (struct backend *b) > struct handle *h = get_handle (conn, b->i); > > /* outer-to-inner order, opposite .open */ > - controlpath_debug ("%s: close", b->name); > > if (h->handle) { > assert (h->state & HANDLE_OPEN); > + controlpath_debug ("%s: close", b->name); >...
2008 Aug 01
1
Question about Window#raise
I want to force my Frame to be visible under certain conditions, even if it''s currently behind other windows. I am running under Windows XP. I am calling raise to do this, but the Frame doesn''t come to the front, though the icon does alert. Isn''t this what Window#raise is supposed to do? Is this a Windows issue? Eric Rubin
2010 Jan 10
0
Problem with StyledTextCtrl
...fn = stc.send_msg 2184, 0, 0 # SCI_GETDIRECTFUNCTION ptr = stc.send_msg 2185, 0, 0 # SCI_GETDIRECTPOINTER puts "#{fn}, #{ptr}" #=> "0, 0" ? frame.show end end Why ? My environments: Windows7, wxruby-ruby19(2.0.1) I also tried stc.get_handle() and pass the handle to C, but still got no response. -- Posted via http://www.ruby-forum.com/.