Skip to contentSkip to conversation

PATCH: Add strtoul in syscall table

U-Boot-Users Pierre AUBERT 2 participants 3 messages Dec 9, 2002 – Jan 14, 2003

lore
Share & tools
lore
#0 lore raw

Hi everybody,

The following patch adds the strtoul entry in the syscall table. This function is
very usefull for analyzing the command line arguments in standalone applications.

CHANGELOG:
* Patch by Pierre Aubert , 09 Dec 2002
Add strtoul in syscall table.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: strtoul.patch
Type: application/octet-stream
Size: 2087 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20021209/0dc8c7ca/attachment.obj

#1 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

The following patch adds the strtoul entry in the syscall table. This function is
very usefull for analyzing the command line arguments in standalone applications.

Why do you think this is necessary?

simple_strtoul() is part of the generic library (implemented in lib_generic/vsprintf.c). Any standalone application that needs this function can simply link against this library, so I don;t see the benefit from calling this through the syscall interface.

Maybe I'm missing something?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
A right is not what someone gives you; it's what no one can take from
you.                                                   - Ramsey Clark
#2 lore raw
Quoted 7 lines · Wolfgang Denk
Quoted 5 lines · In message <[email protected]> you wrote:

The following patch adds the strtoul entry in the syscall table. This function is
very usefull for analyzing the command line arguments in standalone applications.

Quoted 8 lines

Why do you think this is necessary?

simple_strtoul() is part of the generic library (implemented in lib_generic/vsprintf.c). Any standalone application that needs this function can simply link against this library, so I don;t see the benefit from calling this through the syscall interface.

Maybe I'm missing something?

I've tried to link my standalone application againt the libgeneric library. I've got a lot
of undefined references (to printf, putc, udelay, do_reset) during the link because the
function simple_strtoul is in the file vsprintf.c which contains other functions (panic, sprintf, ...).
If we want to use this function in a standalone application, we need to separate the
vsprintf.c in several pieces. What is the best solution ?

Quoted 4 lines

Best regards,

Wolfgang Denk

Best regards