implenting BB variations of standard system calls
Robert P. J. Day
rpjday at mindspring.com
Thu Apr 20 16:12:23 UTC 2006
On Thu, 20 Apr 2006, Natanael Copa wrote:
> On Thu, 20 Apr 2006 09:50:02 -0400 (EDT)
> "Robert P. J. Day" <rpjday at mindspring.com> wrote:
>
> > fair enough. i'll give this more thought and see if i can come up
> > with some kind of coherent suggestion. as a single example, i would
> > suggest adding two new routines of the following form:
> >
> > map_username_to_uid()
>
> btw.. since I am actually into this right now, what would a
> map_username_to_uid() function return if the username does not
> exist?
that was just an example of what i thought would be a
developer-friendly wrapper routine. as for a return code, i would
imagine -1 would be the obvious error code. (technically, what is
returned is of type "uid_t" but, in any case, -1 seems to be the
natural "no such username" error code.)
rday
More information about the busybox
mailing list