[PATCH 13/39] libbb: update messages.c to support Windows

Nguyen Thai Ngoc Duy pclouds at gmail.com
Fri Apr 16 07:54:58 UTC 2010


On Fri, Apr 16, 2010 at 9:50 AM, Dan Fandrich <dan at coneharvesters.com> wrote:
> On Thu, Apr 15, 2010 at 09:58:33PM +0200, Nguy�n Thái Ng�c Duy wrote:
>> +#if ENABLE_TARGET_WIN32
>> +/* this one is only used in diff and ash at the moment */
>> +const char bb_dev_null[] ALIGN1 = "nul";
>> +#else
>>  const char bb_dev_null[] ALIGN1 = "/dev/null";
>>  const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH;
>> +#endif
>
> I thought Windows actually supported /dev/null in addition to nul and nul:
> Are you sure this is necessary?

No it's not. open/fopen will be replaced later to support /dev/null.
This is a piece from old time when open/fopen were original.
-- 
Duy


More information about the busybox mailing list