Displaying 20 results from an estimated 53 matches for "num_results".
2010 Apr 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
...gular expression."); }
+
+ while(!input.eof() && !done)
+ {
+ string line;
+
+ getline(input, line);
+ int match = pcre_exec(regex, NULL, line.c_str(), line.length(),
+ 0, PCRE_NOTEMPTY,found, expected * 3);
- int num_results;
- char** processors = libhal_find_device_by_capability(context,"processor", &num_results, &dbus_error);
+ if(match == expected)
+ {
+ string name = line.substr(found[2], found[3] - found[2]);
+ string value = line.substr(found[4], fo...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...::redhat::matahari;
+
+extern DBusError dbus_error;
+
+void
+ProcessorsAgent::setup(ManagementAgent* agent)
+{
+ // setup the management object
+ management_object = new _qmf::Processors(agent, this);
+ agent->addObject(management_object);
+
+ LibHalContext* context = get_hal_ctx();
+
+ int num_results;
+ char** processors = libhal_find_device_by_capability(context,"processor", &num_results, &dbus_error);
+
+ if (!processors)
+ throw runtime_error("Error: could not query processors via HAL.");
+
+ // populate the managed object's values
+ management_object-&...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average()
method is now const since it does not change the object's state.
2010 Mar 22
1
Resend with loadavg as a statistic...
After some feedback from Slow, mainly about the load_average API
being a method rather than an ongoing statistic. So I've converted
the code over to instead update the load average statistic on a
regular basis.
2006 Jul 05
1
search speed eclipsed by retrieval speed
...MDirectory. I am not actually sure how to do this, so I am guessing
here:
ram_dir = Ferret::Store::RAMDirectory.new
index = Ferret::Index::Index.new(:dir => ram_dir, :create => true)
index.add_indexes(Ferret::Store::FSDirectory.new(''path/to/index''))
results = []
num_results = index.search_each(''search word(s)'', { :first_doc => 0,
:num_docs => 50 }) do | doc, score |
results << index[doc]
end
Any help would be awesome. Thanks!
- chris
--
Posted via http://www.ruby-forum.com/.
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...with
- * NICs found in the system found by querying dbus and making other system
- * calls.
- */
-void NICWrapper::fillNICInfo(vector <NICWrapper*> &nics,
- ManagementAgent *agent)
-{
- LibHalContext* hal_ctx = get_hal_ctx();
- char **net_devices;
- int num_results, i;
- net_devices = libhal_find_device_by_capability(hal_ctx,
- "net.80203",
- &num_results,
- &dbus_error);
- if (!net_devices)
- throw runtime_error("Error: Couldn't get NIC devic...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...er*> &nics,
- ManagementAgent *agent,
- LibHalContext *hal_ctx)
+void NICWrapper::fillNICInfo(vector <NICWrapper*> &nics,
+ ManagementAgent *agent,
+ LibHalContext *hal_ctx)
{
char **net_devices;
int num_results, i;
- net_devices = libhal_find_device_by_capability(hal_ctx,
+ net_devices = libhal_find_device_by_capability(hal_ctx,
"net.80203",
- &num_results,
+ &num_results,...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were
removed with this patch. So, I'm pushing an updated patch that contains
none of the HAL code in it.
2016 Mar 06
0
Segmentation Fault when trying to set root samba password, IPA as a backend
On 06/03/16 14:12, Volker Lendecke wrote:
> On Fri, Mar 04, 2016 at 04:16:44PM +0000, Rowland penny wrote:
>> On 04/03/16 09:58, Volker Lendecke wrote:
>>> On Fri, Mar 04, 2016 at 10:53:17AM +0100, Volker Lendecke wrote:
>>>> On Wed, Mar 02, 2016 at 09:23:34AM +0000, Rowland penny wrote:
>>>>> OK, here is the output:
>>>> Can you try the
2006 Jan 18
1
Problem in rpc_api_pipe related to the \spoolss pipe
...000
000c call_id : 00000001
000010 smb_io_rpc_hdr_ba
000010 smb_io_rpc_hdr_bba
0010 max_tsize: 10b8
0012 max_rsize: 10b8
0014 assoc_gid: 000053f0
000018 smb_io_rpc_addr_str
0018 len: 000c
001a str:
000026 smb_io_rpc_results
0028 num_results: 01
002c result : 0000
002e reason : 0000
000030 smb_io_rpc_iface
000030 smb_io_uuid uuid
0030 data : 8a885d04
0034 data : 1ceb
0036 data : 11c9
0038 data : 9f e8
003a data : 08 00 2b 10 48 6...
2016 Mar 06
2
Segmentation Fault when trying to set root samba password, IPA as a backend
On Fri, Mar 04, 2016 at 04:16:44PM +0000, Rowland penny wrote:
> On 04/03/16 09:58, Volker Lendecke wrote:
> >On Fri, Mar 04, 2016 at 10:53:17AM +0100, Volker Lendecke wrote:
> >>On Wed, Mar 02, 2016 at 09:23:34AM +0000, Rowland penny wrote:
> >>>OK, here is the output:
> >>Can you try the attached (UNTESTED!) patch?
> >>
> >>Thanks,
>
2003 Dec 12
1
Problems with rpcclient
Hello all,
I am having a pretty serious problem with rpcclient ...
if I try 'enumprinters' at the prompt, i get back
rpcclient $> enumprinters
cli_pipe: return critical error. Error was NT_STATUS_INVALID_PARAMETER
result was NT_STATUS_UNSUCCESSFUL
However, enumdrivers works fine.
Addriver does not work either, and just returns
NT_STATUS_UNSUCCESSFUL
... which means that
2000 Feb 14
0
Getting SAMBA 2.0.0 (SGI's compile) and HP's AS/U LanMan playing nice
...last both set
rpc_api_pipe: return OK
000010 smb_io_rpc_hdr_ba
000010 smb_io_rpc_hdr_bba
0010 max_tsize: 0008
0012 max_rsize: 0008
0014 assoc_gid: 76010000
000018 smb_io_rpc_addr_str
0018 len: 0000
001a str:
00001a smb_io_rpc_results
001c num_results: 01
0020 result : 0000
0022 reason : 0000
000024 smb_io_rpc_iface
0024 data : 8a 88 5d 04 1c eb 11 c9 9f e8 08 00 2b 10 48 60
0034 version: 02000000
bind_rpc_pipe: transfer syntax differs
cli_nt_session_open: rpc bind failed. Error was code 0
write_sock...
2016 Jul 10
0
Debian Jessie joining AD as member fails with "The object name is not found."
...assoc_group_id : 0x0012e7d2 (1238994)
secondary_address_size : 0x000c (12)
secondary_address : '\pipe\lsass'
_pad1 : DATA_BLOB length=2
[0000] 00 00 ..
num_results : 0x01 (1)
ctx_list: ARRAY(1)
ctx_list: struct dcerpc_ack_ctx
result : DCERPC_BIND_ACK_RESULT_ACCEPTANCE (0)
reason : union dcerpc_bind_ack_reason(case 0)
value...
2016 Jul 18
3
Debian Jessie joining AD as member fails with "The object name is not found."
... assoc_group_id : 0x0012e7d2 (1238994)
secondary_address_size : 0x000c (12)
secondary_address : '\pipe\lsass'
_pad1 : DATA_BLOB length=2
[0000] 00 00 ..
num_results : 0x01 (1)
ctx_list: ARRAY(1)
ctx_list: struct dcerpc_ack_ctx
result : DCERPC_BIND_ACK_RESULT_ACCEPTANCE (0)
reason : union dcerpc_bind_ack_reason(case 0)
value ...
2003 Aug 31
1
Samba joining Samba-based NT-Domain w/ 2.2
Hi,
I'm having terrible difficulties getting Samba to cooperate. I have the
following scenario:
Samba 2.2.3 set up as a PDC on a linux machine (turing, with the domain
set to DEFAULTDOMAIN), working fine with a win2k client.
Now I wish to join a Samba 2.2 linux machine was a domain member server
(moog), and I can't seem to convince samba to do what I want it to.
moog$ is set up on the PDC
2016 Aug 11
0
net ads testjoin OK, net rpc testjoin fails
...assoc_group_id : 0x00140a37 (1313335)
secondary_address_size : 0x000c (12)
secondary_address : '\pipe\lsass'
_pad1 : DATA_BLOB length=2
[0000] C2 2D .-
num_results : 0x01 (1)
ctx_list: ARRAY(1)
ctx_list: struct dcerpc_ack_ctx
result : DCERPC_BIND_ACK_RESULT_ACCEPTANCE (0)
reason : union dcerpc_bind_ack_reason(case 0)
value...
2016 Jul 18
0
Debian Jessie joining AD as member fails with "The object name is not found."
...4)
> > secondary_address_size : 0x000c (12)
> > secondary_address : '\pipe\lsass'
> > _pad1 : DATA_BLOB length=2
> > [0000] 00 00 ..
> > num_results : 0x01 (1)
> > ctx_list: ARRAY(1)
> > ctx_list: struct dcerpc_ack_ctx
> > result :
> DCERPC_BIND_ACK_RESULT_ACCEPTANCE (0)
> > reason : union
> dcer...
2003 Sep 23
1
rpcclient adddriver not recognizing Dependentfiles... Samba-HOWTO-Collection HEAD/3.0
...0
000c call_id : 00000001
rpc_api_pipe: len left: 0 smbtrans read: 68
rpc_pipe_bind: rpc_api_pipe returned OK.
000010 smb_io_rpc_hdr_ba
0010 max_tsize: 10b8
0012 max_rsize: 10b8
0014 assoc_gid: 000053f0
0018 len: 000c
001a str: \PIPE\lsass.
0028 num_results: 01
002c result : 0000
002e reason : 0000
0030 data : 8a885d04
0034 data : 1ceb
0036 data : 11c9
0038 data : 9f e8 08 00 2b 10 48 60
0040 version: 00000002
bind_rpc_pipe: server pipe_name found: \PIPE\lsass
bind_rpc_pipe: accep...
2002 Jun 30
0
Winbind in Windows 2000 Domain
...rpc_api_pipe returned OK.
000010 smb_io_rpc_hdr_ba
000010 smb_io_rpc_hdr_bba
0010 max_tsize: 10b8
0012 max_rsize: 10b8
0014 assoc_gid: 000385f8
000018 smb_io_rpc_addr_str
0018 len: 000c
001a str: \PIPE\lsass.
000026 smb_io_rpc_results
0028 num_results: 01
002c result : 0000
002e reason : 0000
000030 smb_io_rpc_iface
0030 data : 8a885d04
0034 data : 1ceb
0036 data : 11c9
0038 data : 9f e8 08 00 2b 10 48 60
0040 version: 00000002
bind_rpc_pipe: server pipe_name found: \PIP...