declarations.
* Makefile.am: Add sys-utsname.c to the build.
* sys-utsname.c: Added; binding for uname(2).
* mph.h: Change definition of _mph_copy_structure_strings() so that the
offset array specifies whether the string is a pointer (char*) or inline
array (char[]) within the structure. Necessary because most bound
structure string members are pointers, but `struct utsname' uses arrays.
* fstab.c, pwd.c: Update offset array generation due to above.
* x-struct-str.c: Update _mph_copy_structure_strings() as above.
svn path=/trunk/mono/; revision=91500
2007-08-12 Lukasz Byczynski <[email protected]>
* serial.c:
- all changes are based on Windows .Net SerialPort behavior and
this
document: http://www.easysw.com/~mike/serial/serial.html
- removed wrong default values from open_serial
- added timeout detection in write_serial
- added proper parameters setting in set_attributes
svn path=/trunk/mono/; revision=83921
logic of the 2007-06-27 logic... Only return failure if an actual
DOCUMENTED error occurred. For many of these functions, there are no
docuemented errors, so they "can't fail," even if errno were set.
All praise the POSIX standard?
svn path=/trunk/mono/; revision=81037
* support/map.c, support/map.h: Refresh -- to add Utimbuf copy conversion functions.
- Includes latest-and-greatest create-native-map output.
- Mono's Reflection output has changed as well --
FieldInfo.GetValue().ToString("x") is now "correct" for the underlying
type, so `short' enums are 0x0000, etc.
- Member sorting is now case-insensitive.
svn path=/trunk/mono/; revision=81002
This fixes UnixUserInfo.GetLocalUsers() and UnixGroupInfo.GetLocalGroups()
on systems missing the file /etc/default/nss (which generates ENOENT,
which isn't documented, so therefore it's not a "real" error).
* mph.h: Add mph_return_if_val_in_list5().
svn path=/trunk/mono/; revision=80868
* serial.c (poll_serial): Fix for #79073, based on the patch by
Leszek Ciesielski, without introducing a GNU libc-ism.
(write_serial): Handle EINTR here as well.
svn path=/trunk/mono/; revision=71514
XATTR_AUTO is a value which frequently isn't definedy by any OS, yet it
has the value 0, a default value which is supported by most OS's).
svn path=/trunk/mono/; revision=67768
* map.c: Revert addition of L_SET et al; this breaks the Win32 build.
* mph.h: Add macros for L_SET, L_INCR, and L_XTND for non-Win32 platforms.
svn path=/trunk/mono/; revision=67536
* map.c: Make sure that L_SET, L_INCR, and L_XTND are defined. Lets
Mono_Posix_FromSeekFlags() work on Solaris, fixing Gnome Bugzilla 370081.
svn path=/trunk/mono/; revision=67502
`stream' to a `FILE*' to avoid derefing a `void*'.
* sys-statvfs.c: Build fix to support OS X 10.3.9 & systems w/o statvfs(2).
svn path=/trunk/mono/; revision=67254
versions of Mac OS X don't define these, needed by support/map.c.
* support/mph.h: Add fallback typedefs for blkcnt_t, blksize_t, suseconds_t
so that map.c can rely on their presence. (Some versions of OS X don't
provide these typedefs.)
svn path=/trunk/mono/; revision=67252
non-bitfield values (i.e. FilePermissions and S_IFREG, which isn't a bit
field, along with a few other FilePermissions values). Fixes#79161.
svn path=/trunk/mono/; revision=67056
This is so that support/map.c can use HAVE_STRUCT_... wrappers around
structure conversion functions, allowing them to be omitted from the Win32
build.
* support/map.c: Enclose structure conversion functions with
HAVE_<<STRUCT NAME>>, so that Unix-specific structures don't break the
Win32 build.
svn path=/trunk/mono/; revision=67012
refresh map.[ch].
* Makefile.am: Remove `update-create-native-map' target, and just have the
`refresh' target grab the latest create-native-map.exe program.
* map.c: Flush (remove fallback to <inttypes.h> constants).
svn path=/trunk/mono/; revision=67004
* map.c: Flush (adds integral limits fallback, so that if G_MININT8 doesn't
exist we can fallback sanely instead of breaking the build).
svn path=/trunk/mono/; revision=66995
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
* mph.h (MPH_INTERNAL): Only use this if HAVE_VISIBILITY_HIDDEN is
defined since it is not supported on some archs with gcc.
svn path=/trunk/mono/; revision=62099
* serial.c: Added poll_serial () function, to poll
outside the read_serial () functions; and get_bytes_in_buffer (), to
get bytes in serialport buffers . Update some functions/enums
used by System.IO.Port.SerialPort too (Changes aproved by Miguel:
we will add tests in the managed side).
svn path=/trunk/mono/; revision=59625
* serial.c: Add get_signal_code, get_signal, and set_signal
functions to access serial signals. Also add a MonoSerialSignal
enum, which is a copy of System.IO.Ports.SerialSignal.
svn path=/trunk/mono/; revision=58288
* serial.h: New file with serial port constants.
* serial.c: Use the constants in serial.h instead of magic numbers.
svn path=/trunk/mono/; revision=57383
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