Commit Graph
6 Commits
Author SHA1 Message Date
Jonathan Pryor 37829d3208 * dirent.c, errno.c, fcntl.c, fstab.c, grp.c, macros.c, pwd.c, signal.c,
stdio.c, stdlib.c, string.c, sys-mman.c, sys-sendfile.c, sys-stat.c, 
	  sys-statvfs.c, sys-time.c, sys-xattr.c syslog.c, time.c, unistd.c, 
	  utime.c: Remove structure definitions, and use the
	  create-native-map generated definitions within map.h.  Update function
	  prototypes to match current map.h declarations.
	* map.c, map.h: Flush (current create-native-map output).
	* mph.h: Don't include "map-icalls.h"; "icalls" are now in map.h.
	* create-native-map.exe: Added; cached version of create-native-map.exe
	  used to update map.c, map.h.  (create-native-map.exe source within
	  mono-tools/create-native-map.)
	* Makefile.am: Added update-create-native-map target to update 
	  create-native-map.exe using pkg-config & the create-native-map.pc package. 
		Use create-native-map.exe to generate map.* files instead of make-map.exe.
	* sys-statvfs.c: Add Mono_Posix_ToStatvfs, Mono_Posix_FromStatvfs exports.

svn path=/trunk/mono/; revision=66946
2006-10-24 22:28:25 +00:00
Jonathan Pryor f31bb832ad * configure.in: Remove check for setkey(3).
* support/Makefile.am: Remove CRYPT_LIBS use; we no longer rely on libcrypt.
 	* support/stdlib.c: Remove setkey(3) wrapper.
 	* support/unistd.c: Remove encrypt(3) wrapper.

svn path=/trunk/mono/; revision=65458
2006-09-15 14:12:09 +00:00
Jonathan Pryor 05207de43f * configure.in: Check for setkey(3) in -lcrypt and define CRYPT_LIBS
accordingly.
	* support/Makefile.am: Use $(CRYPT_LIB), not -lcrypt, as not all platforms
	  support -lcrypt.
	* support/stdlib.c: Wrap Mono_Posix_Syscall_setkey() within HAVE_SETKEY, 
	  not PLATFORM_WIN32

svn path=/trunk/mono/; revision=53787
2005-12-01 19:34:09 +00:00
Jonathan Pryor d72a28cc10 * 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
2005-10-14 11:58:02 +00:00
Jonathan Pryor 2da7935e0c * serial.c: HPUX compiler fix.
* stdlib.c: Add C-defined macro wrappers.

svn path=/trunk/mono/; revision=38348
2005-01-05 13:30:33 +00:00
Jonathan Pryor 50cd49c88c Integrate Mono.Posix OEE with Mono.
* support/.cvsignore: Ignore generated files.
  * support/Makefile.am: Add new INCLUDE directives (for glib headers),
    source; bump library version (so we don't clobber previous versions of
    libMonoPosixHelper.so).
  * support/dirent.c: New file; <dirent.h> wrapper functions
  * support/errno.c: New file; <errno.h> wrapper functions
  * support/fcntl.c: New file; <fcntl.h> wrapper functions
  * support/grp.c: New file; <grp.h> wrapper functions
  * support/map.c: Updated macro mapping functions (more enums mapped, more
    error checking, etc.).
  * support/map.h: Updated macro mapping functions
  * support/old-map.c: Previous map.c implementation, for backward compatibility
  * support/old-map.h: Previous map.h implementation, for backward compatibility
  * support/mph.h: New file; Utility types, macros
  * support/pwd.c: New file; <pwd.h> wrapper functions
  * support/stdio.c: New file; <stdio.h> wrapper functions
  * support/stdlib.c: New file; <stdlib.h> wrapper functions
  * support/sys-mman.c: New file; <sys/mman.h> wrapper functions
  * support/sys-mount.c: New file; <sys/mount.h> wrapper functions
  * support/sys-sendfile.c: New file; <sys/sendfile.h> wrapper functions
  * support/sys-stat.c: New file; <sys/stat.h> wrapper functions
  * support/sys-wait.c: New file; <sys/wait.h> wrapper functions
  * support/time.c: New file; <time.h> wrapper functions
  * support/unistd.c: New file; <unistd.h> wrapper functions

svn path=/trunk/mono/; revision=35689
2004-11-05 12:32:30 +00:00