Commit Graph
188 Commits
Author SHA1 Message Date
Martin Baulig a3ed5ef01f Add .gitignore.
svn path=/trunk/mono/; revision=128266
2009-02-28 14:37:10 +00:00
Martin Baulig 1cbad8abc3 Create .gitignore's.
svn path=/trunk/mono/; revision=128265
2009-02-28 14:36:50 +00:00
Jonathan Pryor 57b521e048 * map.h: Flush (adds Mono_Unix_UnixSignal_SignalInfo::pipecnt, removes
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
2009-02-20 15:15:05 +00:00
Jeffrey Stedfast 678b765c8b 2009-02-10 Jeffrey Stedfast <[email protected]>
* minizip/zip.c: Fix warnings about old-style paramater type
	specifications.

	* minizip/unzip.c Fix warnings about old-style paramater type
	specifications.

svn path=/trunk/mono/; revision=126463
2009-02-10 14:29:46 +00:00
Jeffrey Stedfast 21f14f83f4 2009-02-10 Jeffrey Stedfast <[email protected]>
* minizip/unzip.c (unzlocal_DosDateToTmuDate): Fix ambiguous
	else's.
	(unzlocal_DosDateToTmuDate): Here too.
	(unzlocal_CheckCurrentFileCoherencyHeader): And here.


svn path=/trunk/mono/; revision=126461
2009-02-10 14:22:22 +00:00
Jeffrey Stedfast fbdc6bdce0 2009-02-10 Jeffrey Stedfast <[email protected]>
* 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
2009-02-10 14:18:02 +00:00
Jeffrey Stedfast afc88b1169 2009-02-09 Jeffrey Stedfast <[email protected]>
* supportw.c (SetWindowPos): Fixed compile warnings about
	printf-style formatters.
	(SendMessageA): Same.


svn path=/trunk/mono/; revision=126409
2009-02-10 01:32:54 +00:00
Geoff Norton b44588e16a 2009-01-14 Geoff Norton <[email protected]>
* supportw.c: Use unsigned int instead of uint, as its more portable.
        Fixes compilation issue on Mac OSX.

svn path=/trunk/mono/; revision=123364
2009-01-14 16:04:45 +00:00
Rodrigo Kumpera 41221b3715 2009-01-08 Rodrigo Kumpera <[email protected]>
* 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
2009-01-08 12:52:49 +00:00
Jonathan Pryor b0313b64f9 * signal.c: Improve error checking within Mono_Posix_FromRealTimeSignum.
svn path=/trunk/mono/; revision=121910
2008-12-20 03:19:18 +00:00
Jonathan Pryor 848c445e8e * map.h: Flush.
* signal.c: Add Mono_Posix_SIGRTMIN(), Mono_Posix_SIGRTMAX(),
	  Mono_Posix_FromRealTimeSignum().
	  Patch thanks to [email protected].

svn path=/trunk/mono/; revision=121852
2008-12-19 15:23:37 +00:00
Alan McGovern 1e9a8e5d9c 2008-11-06 Alan McGovern <[email protected]>
* Makefile.am: Missed out on a header file for minizip


svn path=/trunk/mono/; revision=118112
2008-11-06 15:11:24 +00:00
Alan McGovern fd04772168 2008-11-06 Alan McGovern <[email protected]>
* minizip/minizip/miniunz.c :
        * Makefile.am: Removed unnecessary file from build and svn.


svn path=/trunk/mono/; revision=118108
2008-11-06 13:23:59 +00:00
Alan McGovern 07e01180a8 2008-11-06 Alan McGovern <[email protected]>
* minizip/*.am :
        * Makefile.am: Merged minizip build into the support code.


svn path=/trunk/mono/; revision=118095
2008-11-06 11:24:21 +00:00
Bill Holmes 690fe2e90d 2008-10-21 Bill Holmes <[email protected]>
* 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
2008-11-05 18:21:01 +00:00
Jonathan Pryor a44ad6af84 * time.c: Add Mono_Posix_Syscall_nanosleep().
svn path=/trunk/mono/; revision=115944
2008-10-16 00:52:09 +00:00
Jonathan Pryor 4f57ed04a9 * configure.in: Add checks for struct flock, struct timespec.
* support/fcntl.c: Use Mono_Posix_{From,To}Flock() for flock conversion.
	* support/Makefile.am: Include <time.h> in map.c.
	* support/map.c, support/map.h: Flush; adds Flock, Timespec support.

svn path=/trunk/mono/; revision=115916
2008-10-15 20:20:57 +00:00
Carlos Alberto Cortez 612109ef83 2008-09-14 Carlos Alberto Cortez <[email protected]>
* 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
2008-09-14 16:53:01 +00:00
Zoltan Varga 8172559891 2008-07-22 Zoltan Varga <[email protected]>
* Makefile.am (patch-libtool): New helper target.

svn path=/trunk/mono/; revision=108556
2008-07-23 15:17:53 +00:00
Carlos Alberto Cortez 0ebaad63da 2008-04-05 Carlos Alberto Cortez <[email protected]>
* 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
2008-05-05 21:48:20 +00:00
Miguel de Icaza 53eebbf040 Fix
svn path=/trunk/mono/; revision=101086
2008-04-17 23:55:08 +00:00
Miguel de Icaza b310879135 Remove redundant timeout check, de-select, use-poll instead
svn path=/trunk/mono/; revision=101085
2008-04-17 23:49:58 +00:00
Miguel de Icaza 86e1e90c83 2008-03-31 Miguel de Icaza <[email protected]>
* serial.c (write_serial): Avoid infinite loops, see #375580.

svn path=/trunk/mono/; revision=99480
2008-03-31 22:22:08 +00:00
Jonathan Pryor 77ef2c253b * signal.c: SLES9 has glib 2.2, so we can't rely on g_atomic_int_*().
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
2008-02-12 16:54:18 +00:00
Jonathan Pryor 6d6efd0b61 * signal.c: Fix another build break; g_atomic_int_set() (part of GLib 2.10)
isn't present on all build machines, so use an alternate function.

svn path=/trunk/mono/; revision=95499
2008-02-12 14:19:35 +00:00
Jonathan Pryor 713237b912 * signal.c: Mono_Unix_UnixSignal_WaitAny() semantic change: return the index
into the signals array of the first signaled signal if successful,
	  otherwise return the timeout.

svn path=/trunk/mono/; revision=95276
2008-02-08 17:05:34 +00:00
Jonathan Pryor 11b3c493f4 * signal.c: Make the signal handler thread-safe, so that it can safely be
invoked concurrently from multiple threads.

svn path=/trunk/mono/; revision=95140
2008-02-07 14:11:38 +00:00
Jonathan Pryor 3d2fbbde3d * signal.c: Fix the Win32 build.
svn path=/trunk/mono/; revision=94897
2008-02-05 15:48:54 +00:00
Jonathan Pryor e6832b669b * signal.c: Provide support functions for Mono.Unix.UnixSignal, which
supports both polling and waiting on signal emission.
	* map.h: Flush (adds UnixSignal-related prototypes).

svn path=/trunk/mono/; revision=94743
2008-02-04 13:59:28 +00:00
Jonathan Pryor 34cacf1317 * map.h, map.c: Flush; add new ST_NOEXEC, ST_REMOUNT, and ST_BIND MountFlags
enumeration values.

svn path=/trunk/mono/; revision=92275
2008-01-05 12:31:40 +00:00
Jonathan Pryor aaf6f0a816 * map.h: Flush; add Mono_Posix_Syscall__Utsname, Mono_Posix_Syscall_uname()
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-12-17 22:49:20 +00:00
Geoff Norton 6a9029faf5 2007-11-01 Geoff Norton <[email protected]>
* stdio.c:  Handle Leopards lack of L_cuserid.

svn path=/trunk/mono/; revision=88675
2007-11-01 19:04:01 +00:00
Jonathan Pryor 5f70c9f1a3 * stdio.c: Provide errno as a parameter and set errno before calling
perror(3), as errno is cleared during P/Invoke.
	* map.h: Updated prototype for Mono_Posix_Stdlib_perror().

svn path=/trunk/mono/; revision=88161
2007-10-25 14:03:16 +00:00
Miguel de Icaza f7025fccc0 Add support for sending breaks
svn path=/trunk/mono/; revision=87452
2007-10-14 03:08:59 +00:00
Jonathan Pryor 084bcac035 * dirent.c: NAME_MAX isn't defined on Solaris; fix the build.
svn path=/trunk/mono/; revision=85524
2007-09-08 19:07:17 +00:00
Jonathan Pryor 5d29a8bf34 * dirent.c: Fix `struct dirent' overflow on Solaris. See #82678.
svn path=/trunk/mono/; revision=85271
2007-09-04 12:32:25 +00:00
Jonathan Pryor 1465241c54 * dirent.c: Fix logic to determine if readdir_r() succeeded.
Thanks to Albert Lee for the patch; see #82678.

svn path=/trunk/mono/; revision=85252
2007-09-03 23:27:59 +00:00
Wade Berrier 1dae9b6828 2007-08-14 Wade Berrier <[email protected]>
* serial.c: include sys/time.h for mac osx 10.3 for timeval


svn path=/trunk/mono/; revision=84116
2007-08-14 19:38:11 +00:00
Miguel de Icaza c1618ae78e First part of patch for bug #81967,
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
2007-08-12 16:11:08 +00:00
Jonathan Pryor c5a868627a * dirent.c, grp.c, pwd.c, stdio.c, syslog.c, unistd.c: Following in the
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
2007-06-29 11:28:25 +00:00
Jonathan Pryor 31de07c25b * configure.in: Add a check for `struct utimbuf'; needed by MonoPosixHelper.
* 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
2007-06-28 20:54:22 +00:00
Jonathan Pryor 81350af83e * grp.c, pwd.c: Only return failure if a documented errno is encountered.
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
2007-06-27 13:43:21 +00:00
Wade Berrier c9756a7bdf * supportw.c (SendMessageA/GetWindowLongA): Return values to fix some
warnings, even though these aren't called (Patch from suse rpms)


svn path=/trunk/mono/; revision=75119
2007-03-29 00:11:34 +00:00
Miguel de Icaza 9cd6a45e87 2007-01-23 Miguel de Icaza <[email protected]>
* 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
2007-01-23 15:19:58 +00:00
Miguel de Icaza 521d7dde5d This time only use the embedded zlib if we cant find a suitable zlib
svn path=/trunk/mono/; revision=70507
2007-01-04 22:28:51 +00:00
Miguel de Icaza c1b93c0908 Added zlib files to the build, it will be part of MonoSupport
svn path=/trunk/mono/; revision=70501
2007-01-04 20:37:59 +00:00
Jonathan Pryor 4e1892e8eb * map.c: _cnm_return_val_if_overflow() should be a no-op unless DEBUG is
defined.  "Fixes" false positives pending further investigation.

svn path=/trunk/mono/; revision=68770
2006-11-30 19:38:31 +00:00
Miguel de Icaza d7aac05b28 2006-11-18 Miguel de Icaza <[email protected]>
* serial.c (poll_serial): Do not report an error for EINTR. 

svn path=/trunk/mono/; revision=68124
2006-11-18 16:40:25 +00:00
Miguel de Icaza 48082bacde 2006-11-18 Jelle Hissink <[email protected]>
* serial.c (poll_serial): Add timeout parameter to poll.

	Fixes #79722 and #79735

svn path=/trunk/mono/; revision=68123
2006-11-18 16:33:52 +00:00
Jonathan Pryor 9bf5509f91 * map.c: Flush (fix FromFilePermissions for SuppressFlags-marked values).
svn path=/trunk/mono/; revision=68103
2006-11-17 21:33:36 +00:00