Re: Problem in "porting" a function on windows to linux?

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

 



On Sat, 2010-06-26 at 02:56 -0500, jeremy28 wrote:
> Hi all!
> 
> I use ubuntu 9.04;
> I have a function called "isLogEnabled" in my project on windows, I wanna port it to linux. 
>
Are you intending to use Linux system logs?

If so, you need to modify your logging interface to use the openlog(),
syslog() and closelog() functions, which are defined in syslog.h - see
"man 3 syslog" for details and, since the logging system is always
available, your isLogEnabled() function would become:

Code:

//This function return True if log policy is set in registry and False otherwise
int isLogEnabled()   
{
   return 1;
}


Martin





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux