Bernhard Reutner-Fischer schrieb:
> On Tue, Feb 03, 2009 at 07:55:57PM +0100, walter harms wrote:
>>
>> Bernhard Reutner-Fischer schrieb:
>>> On Sun, Feb 01, 2009 at 08:02:48PM +0100, walter harms wrote:
> 
>>>> * http://www.opengroup.org/onlinepubs/007904975/utilities/touch.html
>>> wrong URL. The SUSv4 one for who would be
>>> http://www.opengroup.org/onlinepubs/9699919799/utilities/who.html
>>>
>> i work after that specs, did they change something ?
> 
> Well, you definitely did _not_ work after the specs you cite in above URL ;)
> 
> I didn't look if or what changed, see the docs.

ups, now i see wrong copy :)



>> void utmpname(const char *file);
> 
> Mine looks like:
> include/utmp.h:extern int utmpname (__const char *__file) __THROW;
> 
> What libc are you using?
> 

we really should check that out:
the above is from the man page

this is from utmp.h

/* Change name of the utmp file to be examined.  */
extern int utmpname (__const char *__file) __THROW;


code says:
int
__utmpname (const char *file)

i guess i should send a patch to the man-page maintainer.

btw:
/lib/libc.so.6
GNU C Library stable release version 2.8 (20080425), by Roland McGrath et al.
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Configured for i686-suse-linux.
Compiled by GNU CC version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 
135036].
Compiled on a Linux 2.6.25 system on 2008-12-17.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        NoVersion patch for broken glibc 2.0 binaries
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.



>>> could be that it's cheaper to set the unconditional stuff (e.g. NAME) once, 
>>> before that block.
>> i do not understand. do you suggest something like ..
>>
>> pattern=NAME
>>
>> if (foo)
>>      pattern|=LINE;
> 
> yes, exactly (if it's benefical)


i did some reordering and found i can save up to 100 bytes, enough to add
"mom loves" and "I am", coming up soon.



_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to