Displaying 20 results from an estimated 321 matches for "strtoul".
Did you mean:
kstrtoul
2003 Sep 17
8
[Bug 670] SunOS 4.1.2 libs do not contain strtoul, used in moduli.c
http://bugzilla.mindrot.org/show_bug.cgi?id=670
Summary: SunOS 4.1.2 libs do not contain strtoul, used in
moduli.c
Product: Portable OpenSSH
Version: 3.7p1
Platform: Sparc
OS/Version: SunOS
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: openssh-bugs at min...
2014 Dec 15
2
Replace atoi and atol with strtol strtoul:Need Help
Hello,
I am working on replacing atoi () and atol() functions with strtol() and
strtoul() . I came across many files which uses statement like these
time_t secs= atoi(data_span.c_str()), here time_t Datatype is not known but
wikipedia says that it is integer so is it necessary to replace atoi with
strtol over here ??
And is their any document which helps me what each file function...
2002 Mar 25
2
OpenSSH on SunOS 4
...a
problem.
I've successfully built zlib 1.1.4, OpenSSL 0.9.6c, and tcp_wrappers , but
when I attempt to run configure, I get the error about the missing posix
regex. So I attempted to download and use pcre (the Perl hack to expose
perl regex to posix. But I can't build that since it calls strtoul()
(string to unsigned long?) which doesn't exist on SunOS. Does anyone have a
patch/workaround to avoid this? And no, I can't build glibc to snag its
strtoul() since it doesn't have a SunOS port either.
Thanks in advance,
Jason Lacoss-Arnold
TS/Unix Architecture
314-955-8501
*****...
2014 Dec 16
2
Replace atoi and atol with strtol strtoul:Need Help
...this function *HtmlParser::decode_entities(string &s)* in
*xapian-application/omega/htmlparse.cc* which basically does is extract hex
value if any or extract number.For extracting number atoi is used and value
returned by it is stored in variable "val" , I think so replacing atoi with
strtoul would be useful here as number can have larger value although the
variable "val" is unsigned int so i need to change the that definition of
"val" also. Is that ok to do so ? Just need to clarify .
On 16 December 2014 at 04:34, Olly Betts <olly at survex.com> wrote:
>
&...
2008 Aug 22
1
syslinux-3.71-21-gbd09a6d - build breakage
...ibutil/include -I../../com32/include -c -o ethersel.o ethersel.c
ld -m elf_i386 -T ../../com32/lib/com32.ld -o ethersel.elf ethersel.o
ld: warning: cannot find entry symbol _start; defaulting to 0000000000101000
ethersel.o: In function `get_did':
ethersel.c:(.text+0x62): undefined reference to `strtoul'
ethersel.c:(.text+0x7a): undefined reference to `strtoul'
ethersel.c:(.text+0x98): undefined reference to `strtoul'
ethersel.c:(.text+0xbd): undefined reference to `strtoul'
ethersel.o: In function `main':
ethersel.c:(.text+0xee): undefined reference to `dev_stdcon_w'
ether...
2011 Jun 11
1
isohybrid.c patch: to support hex parameters
...d = 0;
?
???? const char optstr[] = ":h:s:e:o:t:i:fcp?vV";
@@ -135,32 +136,38 @@ check_option(int argc, char *argv[])
???????? switch (n)
???????? {
???????? case 'h':
-??????????? if (!sscanf(optarg, "%hu", &head) || head < 1 || head > 256)
+??????????? head = strtoul(optarg, &err, 0);
+??????????? if (head < 1 || head > 256)
???????????????? errx(1, "invalid head: `%s', 1 <= head <= 256", optarg);
???????????? break;
?
???????? case 's':
-??????????? if (!sscanf(optarg, "%hhu", §or) || sector < 1 || sec...
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
...o
require C++11 for trunk, we can now use uint32_t here. Prior to C++11
I think we'd have to generate the API header based on configure checks
and then install it to an architecture-dependent path.
But anyway, there's no "strtou()" so you have to converting to unsigned
long with strtoul() and then check for potential overflow from the cast
to Xapian::valueno.
> I think you?ve been looking at other uses of atoi/atol; if you?ve
> successfully updated code then you should make a pull request or email
> a patch (or attach one to the trac ticket) so someone can review it
>...
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
On Sat, Dec 20, 2014 at 12:42:08AM +0530, Priyank Bhatt wrote:
> As James said I am attaching two file *date.cc* and *datematchdecider.cc*
Please send patches, not complete source files:
http://trac.xapian.org/browser/git/xapian-core/HACKING#L1176
Patches are much smaller, and don't require the reviewer to work out the
exact version of the source file you started from.
Cheers,
Olly
2014 Dec 18
4
Replace atoi and atol with strtol strtoul:Need Help
...The code you refer to is actually parsing a decimal value (like &) -
> the hex case (like &) uses sscanf().
>
> > For extracting number atoi is used and value
> > returned by it is stored in variable "val" , I think so replacing atoi
> with
> > strtoul would be useful here as number can have larger value although the
> > variable "val" is unsigned int so i need to change the that definition of
> > "val" also. Is that ok to do so ? Just need to clarify .
>
> We ultimately pass val to Xapian::Unicode::nonascii_...
2013 Jun 24
2
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...nt.
Correction: simple menu always does decimal (as should be expected).
>> com32/elflink/ldlinux/readconfig.c:
>> } else if ((ep = looking_at(p, "ipappend")) ||
>> (ep = looking_at(p, "sysappend"))) {
>> uint32_t s = strtoul(skipspace(ep), NULL, 16);
>> if (ld.label)
>> ld.ipappend = s;
>> else
>> SysAppends = s;
>>
>> com32/menu/readconfig.c
>> } else if ((ep = looking_at(p, "ipappend")) || (ep =
>>...
2012 Sep 21
8
PATCH [base vtpm and libxl patches 4/6] add iomem support to libxl
Add support for mapping hardware io memory into domains via domain
config files.
The syntax is
iomem=[PAGE,NUM_PAGES]
Signed off by Matthew Fioravante: matthew.fioravante@jhuapl.edu
---
Changes from previous
* Rebased onto latest xen-unstable
* Rewrote the feature to mimic the style used by iports and irqs in
current libxl
* Updated xl.cfg manpage
* removed the redundant "allow"
2018 Sep 21
3
Bias in R's random integers?
Not sure what should happen theoretically for the code in vseq.c, but
I see the same pattern with the R generators I tried (default,
Super-Duper, and L'Ecuyer) and with with bash $RANDOM using
N <- 10000
X1 <- replicate(N, as.integer(system("bash -c 'echo $RANDOM'", intern = TRUE)))
X2 <- replicate(N, as.integer(system("bash -c 'echo $RANDOM'",
2012 Aug 31
2
[PATCH V2] libxl/xl: implement support for guest iooprt and irq permissions
...s, e;
+ unsigned long ul;
+
+ buf = xlu_cfg_get_listitem (ioports, i);
+ if (!buf) {
+ fprintf(stderr,
+ "xl: Unable to get element #%d in ioport list\n", i);
+ exit(1);
+ }
+ ul = strtoul(buf, &ep, 16);
+ if (ep == buf) {
+ fprintf(stderr, "xl: Invalid argument parsing ioport: %s\n",
+ buf);
+ exit(1);
+ }
+ if (ul > UINT32_MAX) {
+ fprintf(stderr, "xl: ioport %...
2006 Feb 25
1
[PATCH] fix mkelf32 when cross compiling on i386 for x86-64
Use strtoull to parse the final_exec_addr value from the command
line. Whe cross compiling on i386 for x86-64 unsigned long is 32 bit,
which leads to final_exec_addr being truncated to 32 bits by strtoul,
which leads to grub refusing to load the resulting image. Please
apply.
Signed-Off-By: Muli Ben-Yehuda &l...
2003 Oct 08
2
[Bug 735] ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul
http://bugzilla.mindrot.org/show_bug.cgi?id=735
Summary: ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul
Product: Portable OpenSSH
Version: -current
Platform: Sparc
OS/Version: SunOS
Status: NEW
Severity: major
Priority: P2
Component: ssh-keygen
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: Howard.J....
2013 Jun 24
2
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...ctives in the same way. Which is the proper way? Either way,
this should be clarified in the documentation.
com32/elflink/ldlinux/readconfig.c:
} else if ((ep = looking_at(p, "ipappend")) ||
(ep = looking_at(p, "sysappend"))) {
uint32_t s = strtoul(skipspace(ep), NULL, 16);
if (ld.label)
ld.ipappend = s;
else
SysAppends = s;
com32/menu/readconfig.c
} else if ((ep = looking_at(p, "ipappend")) || (ep =
looking_at(p, "sysappend"))) {
if (ld.label)...
2018 Sep 21
0
Bias in R's random integers?
...cal tests, but it cannot be brought down that easily.
Interestingly, I first used Dirk's C++ function for convenience, and
that did *not* show these bands. But when I compiled vseq.c I could
reproduce this. To cut this short: There is an error in vseq.c when the
numbers are read in:
tmp = strtoul(buf, NULL, 16);
The third argument to strtoul is the base in which the numbers should be
interpreted. However, R has written numbers with base 10. Those can be
interpreted as base 16, but they will mean something different. Once one
changes the above line to
tmp = strtoul(buf, NULL, 10);
the...
2009 Feb 16
2
[Bug 577] New: cannot set spi/reqid numbers higher than 0x7fffffff (policy match)
...Component: iptables
AssignedTo: laforge at netfilter.org
ReportedBy: chris at linuxinfotag.de
When using the -m policy match, the option argument for --spi is converted
using strtol(), which returns a signed 32 bit value, so the highest
positive value is 0x7fffffff. Instead strtoul() should be used.
The same applies for the --reqid option argument.
Setting a rule like
iptables -A FORWARD -m policy --dir in --spi cafe2342 -j ACCEPT
and looking at the chain afterwards will give the following
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in...
2012 Apr 18
0
ANNOUNCE: cifs-utils release 5.4 is ready for download
...anpage: update wsize= entry to account for change in default wsize
Signed-off-by: Jeff Layton <jlayton at samba.org>
commit f6384b4fe1ffdeebee3e9d73dd533a4fbf83b6d8
Author: Jeff Layton <jlayton at samba.org>
Date: Thu Feb 23 10:42:09 2012 -0500
mount.cifs: fix tests for strtoul success
The current test just looks to see if errno was 0 after the conversion
but we need to do a bit more. According to the strtoul manpage:
If there were no digits at all, strtoul() stores the original value
of nptr in *endptr (and returns 0).
So, if yo...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...int range;
- unsigned int major, minor;
+ unsigned int major_num, minor_num;
dev_t res;
char *s;
int len;
@@ -37,13 +37,13 @@ static dev_t try_name(char *name, int part)
if (len <= 0 || len == BUF_SZ || buf[len - 1] != '\n')
goto fail;
buf[len - 1] = '\0';
- major = strtoul(buf, &s, 10);
+ major_num = strtoul(buf, &s, 10);
if (*s != ':')
goto fail;
- minor = strtoul(s + 1, &s, 10);
+ minor_num = strtoul(s + 1, &s, 10);
if (*s)
goto fail;
- res = makedev(major, minor);
+ res = makedev(major_num, minor_num);
/* if it's there and...