[Mono-devel-list] problems with Syscall.syslog
jonpryor at vt.edu
Tue Jun 28 07:31:55 EDT 2005
On Mon, 2005-06-27 at 18:35 +0400, Vorobiev Maksim wrote:
> I've started using Syscall.syslog method and encounted several
> problems. It may be errors in mono, or I just missed some details.
> Please note, that I use Suse 9.2 linux distribute.
It's nice to know someone is testing it. :-)
> 1. In Syscall.cs enumeration SyslogFacility declared with members:
> LOG_UUCP = 8 << 3,
> LOG_CRON = 8 << 3
> But under Suse the same constants declared
> in /usr/include/sys/syslog.h as LOG_UUCP = 8 << 3, LOG_CRON = 9 << 3
Oops, my bad. Fixed in svn-trunk (r46637,r46638).
> 2. There is no constant LOG_USRE in syslog.h under Suse, but it's
> LOG_USER. So, in support/map.c there is a bug (?) - no such definition
> found and error returned then code execution steps in this branch. The
> question is the same: is it mono problem, or Suse-platform specific
> header file?
This was fixed on June 15 in svn-trunk.
> 3. It seems very strange that SyslogFacility enumeration declared with
> [Flag] attribute. Members of this enumeration are not "powers of 2",
> so their combination via OR-mask is something incorrect. And these
> constants should be used independantly, not in combination. Is it true
> or I missed something?
No, it's my mistake. Fixed in svn-trunk.
Thank you for the help.
More information about the Mono-devel-list