[ccan] Portability [was Mathematics Module]

Tim Post echo at echoreply.us
Thu Jan 29 23:55:53 EST 2009


On Thu, 2009-01-29 at 12:19 +1030, Rusty Russell wrote:

> > Most people will be using a modern and fully functional C library.
> 
> I hope so, but I don't want to rule out catering to others.  SAMBA have 
> a fairly complete set of replacements IIRC, but so far I've been happy to
> assume ISO C (but if modules have lesser requirements that's fine too).

Alright, so POSIX creature comforts, advisories and IPC (signal) should
be conditional upon config.h? IOW :

#ifdef POSIX
   posix_fadvise(fileno(fp), 0, 0, POSIX_FADV_NOREUSE);
#endif

Cheers,
--Tim







More information about the ccan mailing list