* Makefile.am (MPH_UNIX_SOURCE): Add syslog.c.
authorJonathan Pryor <jpryor@novell.com>
Fri, 14 Oct 2005 11:58:02 +0000 (11:58 -0000)
committerJonathan Pryor <jpryor@novell.com>
Fri, 14 Oct 2005 11:58:02 +0000 (11:58 -0000)
commitd72a28cc100baf5ef038554908b3bfe7a9dc9159
treebf67a987190e0e64bfd42970c1f1ae5ef7d375fe
parent4cc68baf9065fa349e2c05e62b4e7467e9c87c1b
* Makefile.am (MPH_UNIX_SOURCE): Add syslog.c.
* dirent.c, grp.c, pwd.c, signal.c, stdio.c, stdlib.c: Wrap functions which
  return `void' so that they instead: (1) return `int', (2) clear errno
  before calling the real function, and (3) return -1 if errno changed.
  This must be done in native code because calling
  Stdlib.SetLastError/Syscall.xxx
  from managed code won't work reliably (since errno may change between the
  SetLastError call and the actual Syscall invocation).
* unistd.c: Same as above, and allow fpathconf(3), pathconf(3), sysconf(3),
  and confstr(3) callers to explicitly choose their own errno value.
* map.c, map.h: Handle enumeration name change in Mono.Unix.Native
  (e.g. ConfStr --> ConfstrName, etc.).  This is so that they follow the
  established naming conventions.
* map-icalls.h: Add new icalls.
* syslog.c: Added; wraps <syslog.h> functions.

svn path=/trunk/mono/; revision=51711
13 files changed:
support/ChangeLog
support/Makefile.am
support/dirent.c
support/grp.c
support/map-icalls.h
support/map.c
support/map.h
support/pwd.c
support/signal.c
support/stdio.c
support/stdlib.c
support/syslog.c [new file with mode: 0644]
support/unistd.c