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

Re: [libvirt] PATCH: Latest MinGW patches



On Thu, Sep 04, 2008 at 08:24:14AM +0200, Jim Meyering wrote:
> Instead of adding the #if/else blocks above,
> how about adding these in some header file?
> 
> #ifndef HAVE_GETGID
> static inline gid_t getgid (void) { return 0; }
> #endif
> 
> #ifndef HAVE_GETUID
> static inline uid_t getuid (void) { return 0; }
> #endif

Hmmm ...

It's a bit unexpected to have fundamental syscalls like getuid()
implemented as macros which can return 0 ...

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


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