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 a3e3afa3b6 * map-icalls.h: Added; auto-generated file which contains Mono_Posix_*
declarations for DllImport functions in Mono.Posix.dll.  This ensure
    consistency between Mono.Posix.dll and MonoPosixHelper.so.
  * mph.h: Add include for map-icalls.h, to ensure that all MonoPosixHelper
    exports have correct prototypes.
  * dirent.c, grp.c, macros.c, pwd.c, signal.c, stdio.c, sys-stat.c,
    sys-time.c, utime.c: Correct prototypes to match map-icalls.h.  Alas, this
    "loses" information -- FILE* becomes void*, etc. -- but no semantics or
    ABI should be changed (except for Mono_Posix_Syscall_utime).  Some
    structure names also changed to match the generated names; since the
    structures are private, this shouldn't break anything.
  * errno.c: Remove Mono_Posix_Syscall_SetLastError so we don't get a warning
    about a missing prototype.  This was never in a stable release.
  * old-map.c: Include mph.h for prototype checking.
  * unistd.c: SeekFlags conversion is now done in managed code so that a short
    isn't passed as a parameter; Correct prototypes to match map-icalls.h.
  * sys-xattr.c: fix lsetxattr/fsetxattr confusion; Correct prototypes to
    match map-icalls.h.
  * sys-sendfile.c: Move mph.h include so that HAVE_SYS_SENDFILE_H is used.
  * sys-wait.c: Include mph.h so that prototypes are checked.

svn path=/trunk/mono/; revision=44702
2005-05-18 18:04:49 +00:00
Jonathan Pryor 702376ddc1 * errno.c: Use the GNU version of strerror_r if _GNU_SOURCE is defined
(otherwise assume existence of XPG variant).  This allows proper
    compilation under Red Hat 9.
  * fstab.c: protect against users calling setfsent(), setfsent(), ...     
    endfsent(), which would otherwise leak a FILE handle.

svn path=/trunk/mono/; revision=42642
2005-04-07 14:29:52 +00:00
Jonathan Pryor edb6779cf2 * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
since it's part of ANSI C (and errno will be used from StdioFileStream).
    Add Mono_Posix_Stdlib_SetLastError.  Don't remove the Syscall version, as     
    we don't want to break Mono 1.1.4/svn users the day after release. :-)

svn path=/trunk/mono/; revision=40086
2005-02-03 21:12:02 +00:00
Jonathan Pryor 9906284ecb * support/errno.c: Only export strerror_r if it's available.
* support/mph.h: Remove MPH_ON_BSD; use the configure checks instead.
	* support/sys-mman.c: Only export posix_madvise if it's available.
	* support/unistd.c: Only export sethostid if it's available.

svn path=/trunk/mono/; revision=36051
2004-11-12 10:46:31 +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