search for: get_prefix

Displaying 9 results from an estimated 9 matches for "get_prefix".

Did you mean: set_prefix
2002 Jul 13
0
[PATCH]: scp program improved
...size > lastsize) { - lastupdate = now; - lastsize = cursize; - if (wait.tv_sec >= STALLTIME) { - start.tv_sec += wait.tv_sec; - start.tv_usec += wait.tv_usec; - } - wait.tv_sec = 0; - } - timersub(&now, &start, &td); - elapsed = td.tv_sec + (td.tv_usec / 1000000.0); +void get_prefixed(off_t value, char *prefixed) +{ + static const char prefixes[] = " KMGT"; + int i = 0; + + for (i = 0; value >= 1024 && i < sizeof(prefixes); i++) { + value >>= 10; + } + + if (i > 0) + snprintf(prefixed, MAX_PREFIXLEN, "%u %ciB", +...
2011 Jul 12
0
[PATCH] pxelinux: open_file() returns a non-negative handle
...e/fs/pxe/pxe.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index f0f8b61..d689e61 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -1065,7 +1065,7 @@ static int pxe_open_config(struct com32_filedata *filedata) get_prefix(); if (DHCPMagic & 0x02) { /* We got a DHCP option, try it first */ - if (!open_file(ConfigName, filedata)) + if (open_file(ConfigName, filedata) >= 0) return 0; } @@ -1077,13 +1077,13 @@ static int pxe_open_config(struct com32_filedata *filedata) /* Try loadi...
2011 Mar 27
1
[PATCH] MAC Address Ranges
...e/pxe.c.orig 2011-03-26 22:33:37.067359656 -0400 +++ syslinux-4.03/core/fs/pxe/pxe.c 2011-03-26 22:40:18.470771416 -0400 @@ -1079,6 +1079,8 @@ static int pxe_load_config(void) char *config_file; char *last; int tries = 8; + int mac_tries = 16; + char *last_mac; get_prefix(); if (DHCPMagic & 0x02) { @@ -1101,8 +1103,16 @@ static int pxe_load_config(void) /* Try loading by MAC address */ strcpy(config_file, MAC_str); - if (try_load(ConfigName)) - return 0; + last_mac = &config_file[20]; + + while (mac_tries) { + *last_mac...
2010 Apr 22
4
More efficient dial plan for a list of selective inbound numbers
I have a list of CLIDs prefixes that I want to use in a context. Basically, I want to do this but the list of prefix numbers is much longer. List of prefixes (556,557,557,989.....) [custom-inbound] exten => _556,1,answer exten => _556,n,playback(beep) exten => _557,1,answer exten => _557,n,playback(beep) exten => _558,1,answer exten => _558,n,playback(beep) exten =>
2008 May 02
0
Wine release 0.9.61
...is cleared. user32: Add an exception handler around LB_GETTEXT to hide a Delphi bug. richedit: Avoid strlen in traces. urlmon: Avoid sizeof in traces. Updated the authors list. Alistair Leslie-Hughes (9): msxml3: Implement get_namespaceURI. msxml3: Add tests for get_prefix and get_namespaceURI. msxml3: Implement get_prefix. msxml3: Corrected IXMLDOMComment appendData with a broken xmlTextConcat function. msxml3: Corrected transformNode. msxml3: Added IObjectWithSite support in IXMLDOMDocument2. msxml3: Implement IDispatch for IXMLDOMNode...
2010 Sep 18
0
Wine release 1.3.3
...ut. msxml3/domdoc: Implement IXMLDOMNamedNodeMap::removeQualifiedItem(). msxml3/tests: Some tests for ::get_ownerDocument() returned document instance. msxml3/tests: Basic test for ::setAttributeNode(). msxml3: Support elements with namespaces. msxml3: Fix IXMLDOMNode::get_prefix() for empty prefix. msxml3: Fix IXMLDOMNode::get_namespaceURI() for empty URIs. msxml3: Properly set default value for SelectionLanguage property. msxml3/tests: Don't raise a test error on first try to create a document. msxml3: Fix ::selectSingleNode() behaviour on inva...
2011 Nov 18
0
Wine release 1.3.33
...l3: Fix getNamedItem() for qualified node names. msxml3: Support multiple IXMLDOMNamedNodeMap implementations. msxml3: Added IDispatchEx support for IXMLDOMImplementation. msxml3: Properly handle qualified names in getAttributeNode(). msxml3: Properly return node prefix from get_prefix(). msxml3: Fix get_namespaceURI(). msxml3: Return qualified name from get_nodeName(). msxml3: Convert test stream to single byte string. Octavian Voicu (3): makefiles: Add manual dependencies also for testlist cross object. ddraw/tests: Fix a couple of copy-paste typo...
2010 Nov 12
0
Wine release 1.3.7
...tests: '\' needs to be escaped in a C string (sparse). urlmon/tests: Escape '\' in C strings (sparse). Nikolay Sivov (17): msxml3: Implement a trivial case of ::put_nodeTypedValue() for elements. msxml3: Get rid of ::cloneNode() forward. msxml3: Get rid of ::get_prefix() forward. msxml3: Get rid of ::get_baseName() forward. msxml3: Hint parser to use UTF-8 if it's specfied as BOM. comctl32/treeview: Make item data layout partially compatible with native one. msxml3: Encode special characters while setting attribute content. msxml...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address