functions no longer declared within Mono.Posix.dll).
* signal.c: Allow Mono_Unix_UnixSignal_WaitAny() to be called
concurrently from multiple threads w/o blocking each thread;
previously, calls to Mono_Unix_UnixSignal_WaitAny() would block
until the previous call completed. This required restructuring
Mono_Unix_UnixSignal_SignalInfo to hold a ref-counted
read_fd/write_fd pair (instead of allocating & releasing within
_WaitAny()) so that the pipes could be "shared" between threads.
Patch thanks to [email protected].
svn path=/trunk/mono/; revision=127538
* old-map.c: Added prototypes to silence compile warnings. Looks
like this file is supposed to be autogenerated, so probably not
the right fix but I can't find the autogen script.
* map.h (helper_Mono_Posix_getpwnamuid): Added a prototype for
this - it doesn't seem to be used anywhere in mono, so
maybe it can be removed but I'm not positive.
(map_Mono_Posix_PollEvents): Added prototype.
(map_Mono_Posix_Signals): Added prototype.
* macros.c: #include "map.h" to silence compile warnings about no
previous prototypes.
svn path=/trunk/mono/; revision=126460
* signal.c: Don't allow registration of a realtime signal to happen
if it was already registered outside of Mono.Posix.
svn path=/trunk/mono/; revision=122755
* configure.in : Adding a auto configure check for dirent.h.
* support/Makefile.am : For generation of map.c adding preprocessor
checks for sys/time.h, unistd.h, dirent.h and utime.h.
* support/map.c : Re-run 'make refresh' to add preprocessor checks
for sys/time.h, unistd.h, dirent.h and utime.h.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=118010
* serial.c: When writing bytes and polling, take into account negative
values to indicate infinite timeout. Patch by Leszek Ciesielski.
Fixes#399245.
svn path=/trunk/mono/; revision=112959
* serial.c (set_attributes): When setting parity to Even,
besides removing the PARODD bit, add the PARENB bit to actually
use even parity.
Patch by Leszek Ciesielski.
Fixes#365248.
svn path=/trunk/mono/; revision=102565
Provide a fallback mechanism between using Mono's atomic.h, glib 2.4
functions, and horribly unsafe-but-no-alternative code.
svn path=/trunk/mono/; revision=95526
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