Unbreaking allbareconfig (svn 16125).
walter harms
wharms at bfs.de
Sun Sep 17 15:16:21 UTC 2006
hi,
just a reminder that paths.h contains:
_PATH_TTY "/dev/tty"
_PATH_CONSOLE "/dev/console"
i am just intending to prevent to invent that wheel again.
re,
wh
Rob Landley wrote:
>
> CURRENT_TTY, CONSOLE_DEV: I'm not really a big fan of taking small simple
> strings that aren't going to change and jumping through hoops to make an
> object out of them that you have to look up. The compiler and linker should
> be smart enough to merge duplicate strings. I suspect that with build all
> files at once mode they may actually be able to, I don't know. I'm all for
> merging duplicate strings that might have slightly different variants used
> and thus the compiler would be unable to merge them no matter how smart it
> got. But "/dev/tty" is unlikely to suffer from unnecessary variation. I'd
> just wire it straight into the apps in question as a string literal.
>
> Rob
More information about the busybox
mailing list