qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Use of PATH_MAX


From: Ian Jackson
Subject: Re: [Qemu-devel] Use of PATH_MAX
Date: Fri, 16 May 2008 15:46:19 +0100

Anthony Liguori writes ("Re: [Qemu-devel] Use of PATH_MAX"):
> I don't see any value in converting PATH_MAX to QEMU_PATH_MAX.
> Both are equally wrong.

We can
  #define QEMU_PATH_MAX 1024
which is not wrong; it's just not the best most featureful possible
program.

Relying on the host headers to provide a sensible value of PATH_MAX
definitely is wrong - see the SuSv3 entry on <limits.h>.  PATH_MAX may
be not defined at all, or it may be defined to a ridiculously large
value (2^30ish or something).

Ian.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]