[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / Mono.Posix / Mono.Unix.Native / ChangeLog
1 2010-07-21  Jackson Harper  <jackson@ximian.com>
2
3         * Syscall.cs: Add bindings to the various epoll
4         functions. (epoll_create, epoll_ctl, epoll_wait).
5
6 2008-12-19  Jonathan Pryor  <jpryor@novell.com>
7
8         * NativeConvert.cs: Add FromRealTimeSignum(), ToRealTimeSignum().
9           Patch thanks to tim.jenks@realtimeworlds.com.
10         * RealTimeSignum.cs: Added; structure which represents a real-time
11           signal, a value V such that V >= SIGRTMIN and V <= SIGRTMAX.
12           Patch thanks to tim.jenks@realtimeworlds.com.
13         * Stdlib.cs: Add SetSignalAction() and raise() overloads which accept
14           a RealTimeSignum instance.
15           Patch thanks to tim.jenks@realtimeworlds.com.
16
17 2008-10-15  Jonathan Pryor  <jpryor@novell.com>
18
19         * Syscall.cs: [Map] Flock, add Timespec, bind nanosleep(2).
20         * NativeConvert.generated.cs: Flush (Add TryCopy methods for Flock,
21           Timespec).
22
23 2008-01-28  Jonathan Pryor  <jpryor@novell.com>
24
25         * Stdlib.cs: Obsolete Stdlib.signal(), as it's not safe; see also:
26           http://lists.ximian.com/pipermail/mono-devel-list/2008-January/026501.html
27           http://lists.ximian.com/pipermail/mono-devel-list/2008-January/026503.html
28           Add SetSignalAction() as a replacement.
29
30 2008-01-22  Sebastien Pouliot  <sebastien@ximian.com>
31
32         * Syscall.cs: Fix Flock.Equals to avoid NRE (and return false if object 
33         is null). Found using Gendarme.
34
35 2008-01-05  Jonathan Pryor  <jonpryor@vt.edu>
36
37         * Syscall.cs: Add ST_NOEXEC, ST_REMOUNT, ST_BIND to MountFlags.  Patch from
38           Joe Dluzen <jdluzen@gmail.com>.
39
40 2007-12-17  Jonathan Pryor  <jonpryor@vt.edu>
41
42         * Syscall.cs: Bind uname(2).
43
44 2007-10-25  Jonathan Pryor  <jonpryor@vt.edu>
45
46         * Stdlib.cs: Fix perror(3) so that it works as expected.  (Since errno is
47           cleared during P/Invoke, previously Stdlib.perror("") would always print
48           "Success", which isn't very helpful.)
49
50 2007-06-28  Jonathan Pryor  <jonpryor@vt.edu>
51
52         * NativeConvert.generated.cs: Flush (add TryCopy() methods for Utimbuf).
53         * Syscall.cs: Map Utimbuf to `struct utimbuf'; needed so that Mono.Fuse can
54           rely on Mono.Posix.dll for copying all native types.
55
56 2006-11-14  Jonathan Pryor  <jonpryor@vt.edu>
57
58         * MapAttribute.cs: Update (changes SuppressFlags to a string holding mask).
59         * Syscall.cs: Specify the mask value for non-bitmask values in
60           FilePermissions.
61
62 2006-10-27  Jonathan Pryor  <jonpryor@vt.edu>
63
64         * MapAttribute.cs: Update (adds SuppressFlags property).
65         * Syscall.cs: Mark non-flags FilePermissions enumeration members so that
66           they aren't treated as bitfields.  Impacts e.g. S_IFDIR, S_IFCHR, etc..
67
68 2006-10-24  Jonathan Pryor  <jonpryor@vt.edu>
69
70         * HeaderAttribute.cs: Removed.  Use create-native-map command-line arguments
71           instead of HeaderAttribute.Includes & HeaderAttribute.Defines.
72         * make-map.cs: Moved to mono-tools/create-native-map/src/create-native-map.cs.
73         * MapAttribute.cs: Moved from ../Mono.Unix.  Can now be
74           specified on Class, Delegeate, Enum, Field, & Struct (instead of just
75           Enum).  Add NativeType property.
76         * NativeConvert.generated.cs: Flush (adds new .TryCopy methods to copy [Map]'d
77           structures).
78         * NativeConvert.cs: Add .TryCopy methods for Statvfs.
79         * Syscall.cs: Remove HeaderAttribute declaration; Markup [Map]'d structure 
80           members with [Map] attributes (or MapAttribute subclasses) to specify the 
81           native types they correspond to (used by create-native-map).
82         * TypeAttributes.cs: Added; internal subclasses of MapAttribute to help
83           markup structures (e.g. so I can use [blkcnt_t] instead of 
84           [Map ("blkcnt_t")], thus minimizing the liklihood of a spelling error).
85
86 2006-09-15  Jonathan Pryor  <jonpryor@vt.edu>
87
88         * Syscall.cs: "Remove" crypt(3), encrypt(3), setkey(3).  These use an
89           encryption algorithm which was broken years ago and could be cracked in
90           minutes on a modern machine.  This also removes a libcrypt.so dependency,
91           which means you don't need to have development packages installed to use
92           these either (since "crypt" wasn't <dllmap>'d).  These are still present,
93           but marked [Obsolete] and throw a SecurityException when invoked.
94
95 2006-09-07  Jonathan Pryor  <jonpryor@vt.edu>
96
97         * Syscall.cs: readdir(P) is not thread-safe, so it needs to be locked so
98           that the `struct dirent' it returns is stable.
99
100 2006-04-06  Jonathan Pryor  <jonpryor@vt.edu>
101
102         * NativeConvert.cs: Fix ToDateTime()/FromDateTime()/ToTimeT()/FromTimeT() so
103           that they take timezones into account.  Previously, results would be off
104           by an hour if Daylight Savings Time was in effect.  Fixes #78033.
105
106 2006-03-23  Raja R Harinath  <rharinath@novell.com>
107
108         * NativeConvert.generated.cs: Update after merge.
109
110 2006-02-25  Marek Safar  <marek.safar@seznam.cz>
111
112         * NativeConvert.generated.cs: Guarded CLSCompliant attribute by NET_2_0
113         until mcs is merged with gmcs.
114
115 2006-02-21  Marek Safar  <marek.safar@seznam.cz>
116
117         * NativeConvert.generated.cs: Removed duplicated CLSCompliant attribute.
118
119 2006-01-10  Raja R Harinath  <rharinath@novell.com>
120
121         * Syscall.cs (sys_futimes): Remove buggy custom marshaller on 'fd' parameter.
122
123 2005-01-09  Jonathan Pryor <jonpryor@vt.edu>
124
125         * NativeConvert.cs: s/IsType/IsSet/g: deal with UnixFileSystemInfo method 
126           name change.
127
128 2005-01-02  Jonathan Pryor <jonpryor@vt.edu>
129
130         * Stdlib.cs: s/ACCESS/ACCES/g.  I didn't create a badly named errno value, I
131           mis-read EACCES in man pages.  I can't read. :-(
132
133 2005-01-02  Jonathan Pryor <jonpryor@vt.edu>
134
135         * NativeConvert.generated.cs: Flush (remove Obsolete members).
136         * Syscall.cs: Remove invalid utimes(2) wrapper.
137
138 2005-01-02  Jonathan Pryor <jonpryor@vt.edu>
139
140         * Stdlib.cs: s/ACCES/ACCESS/g.  How'd I create a badly named errno value?
141
142 2005-12-29  Jonathan Pryor <jonpryor@vt.edu>
143
144         * make-map.cs: Properly handle managed arrays in argument lists.
145         * Syscall.cs: Properly bind utimes(2) (the Linux man pages are vague on what
146           it does; the BSD ones are much better).  Bind lutimes(2) and futimes(2).
147
148 2005-12-27  Jonathan Pryor <jonpryor@vt.edu>
149
150         * Syscall.cs: Include <sys/mman.h> for map.c generation.  Fixes #77091.
151
152 2005-12-27  Jonathan Pryor <jonpryor@vt.edu>
153
154         * make-map.cs: Always include 2nd parameter of [Obsolete] attributes; mark
155           the [DllImport]ed method with [Obsolete] if the underlying type is
156           [Obsolete].
157         * NativeConvert.generated.cs: Flush.
158
159 2005-12-27  Jonathan Pryor <jonpryor@vt.edu>
160
161         * FileNameMarshaler.cs: Use UnixMarshal.PtrToStringUnix -- it's faster.
162
163 2005-11-28  Jonathan Pryor <jonpryor@vt.edu>
164
165         * Stdlib.cs: Prelink all SignalHandlers passed to Stdlib.signal().  This is
166           so that mono doesn't have to JIT the handler within signal context.
167
168 2005-11-08  Jonathan Pryor <jonpryor@vt.edu>
169
170         * Stdlib.cs: Implement IEquatable<FilePosition> for FilePosition.
171         * Syscall.cs: Provide GetHashCode(), Equals(), operator==, operator!= for
172           all structure types.  Implement IEquatable<T> for all "value type" 
173           structs and classes.
174
175 2005-11-07  Jonathan Pryor <jonpryor@vt.edu>
176
177         * Syscall.cs: *xattr functions should use the FileNameMarshaler for filenames.
178
179 2005-11-07  Jonathan Pryor <jonpryor@vt.edu>
180
181         * make-map.cs: Always use ordinal string sorting behavior.  The string
182           collation sorting has changed, so to keep the mono/support diff sizes down
183           we have to explicitly specify the previous implicit ordering.
184
185 2005-11-02  Jonathan Pryor <jonpryor@vt.edu>
186
187         * Syscall.cs: Remove [CLSCompliant(false)] when it isn't needed.
188
189 2005-11-02  Jonathan Pryor <jonpryor@vt.edu>
190
191         * FileNameMarshaler.cs: Use UnixMarshal.FreeHeap().  .Free() is obsolete.
192
193 2005-10-27  Jonathan Pryor <jonpryor@vt.edu>
194
195         * Stdlib.cs: Correct return type of setbuf(IntPtr, byte*).
196         * Syscall.cs: Remove [Obsolete] SyslogFacility.LOG_USRE member
197           (Mono.Unix.Native hasn't shipped yet, so nobody is using it); correct
198           [Obsolete] comment for getpagesize().
199
200 2005-10-26  Jonathan Pryor <jonpryor@vt.edu>
201
202         * FileNameMarshaler.cs: Deal with UnixMarshal method name changes.
203
204 2005-10-26  Jonathan Pryor <jonpryor@vt.edu>
205
206         * Stdlib.cs: FilePosition should derive from MarshalByRefObject, for two
207           reasons: (1) it's a recommendation from FxCop that classes implementing
208           IDisposable also derive from MarshalByRefObject; (2) FilePosition is
209           exposed from Mono.Unix.StdioFileStream, which (indirectly) inherits from
210           MarshalByRefObject.  Fix Equals() so it doesn't rely on Reflection.
211
212 2005-10-25  Jonathan Pryor <jonpryor@vt.edu>
213
214         * FileNameMarshaler.cs: Custom marshaler to marshal filenames using
215           Mono.Unix.UnixEncoding.  A custom marshaler is used to remove the need to
216           have ~6 lines of boilerplate on every method that takes filenames.
217         * Stdlib.cs, Syscall.cs:  Filenames need to be marshaled through the
218           FileNameMarshaler, which will encode/decode filenames with UnixEncoder.
219
220 2005-10-14  Jonathan Pryor <jonpryor@vt.edu>
221
222         * Stdlib.cs, Syscall.cs: Flush naming convention documentation.
223
224 2005-10-14  Jonathan Pryor <jonpryor@vt.edu>
225
226         * NativeConvert.generated.cs: Flush currently generated version.
227
228 2005-10-14  Jonathan Pryor <jonpryor@vt.edu>
229
230         * make-map.cs: Fix documentation comment.
231         * Stdlib.cs: Fix export of XprintfFunctions.syslog(); make SetLastError()
232           protected (normal user code shouldn't call it, as it isn't safe); 
233           replace functions which return `void' with functions which return `int'
234           (adding them to MonoPosixHelper.so as well) -- since users can't reliably
235           use SetLastError(), they need the "normal" error detection mechanism;
236           correct the strlen(3) export.
237         * Syscall.cs: 
238           - s/PathConf/PathconfName/, s/SysConf/SysconfName/, s/ConfStr/ConfstrName/ 
239             to follow documented enumeration naming conventions.
240           - replace functions which return `void' with functions which return `int'
241             (adding them to MonoPosixHelper.so as well) -- since users can't reliably
242             use SetLastError(), they need the "normal" error detection mechanism;
243
244 2005-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
245
246         * Stdlib.cs: add strlen() to fix the build.
247
248 2005-09-23  Jonathan Pryor <jonpryor@vt.edu>
249
250         * make-map.cs: Generate NativeConvert documentation XML fragments for use in
251           monodoc.
252
253 2005-09-20  Jonathan Pryor <jonpryor@vt.edu>
254
255         * ChangeLog: Started.
256         * CdeclFunction.cs: Copied from ../Mono.Unix; change namespace.
257         * HeaderAttribute.cs: Added
258         * make-map.cs: Copied from ../Mono.Unix; sort type and member names in
259           output (makes for a more stable svn history, as types/members won't change
260           position anymore within generated code); look for HeaderAttribute not
261           IncludeAttribute for getting headers & #defines; generate NativeConvert
262           partial class.
263         * NativeConvert.cs: Copied from ../Mono.Unix; change namespace; turn into a
264           partial class; Remove generated code (generated code is in
265           NativeConvert.generated.cs).
266         * NativeConvert.generated.cs: Added
267         * Stdlib.cs: Copied from ../Mono.Unix; change namespace; rename Error to
268           Errno (as Error is a "reserved word" in FxCop); [CLSCompliant(false)]
269           support.
270         * Syscall.cs: Use HeaderAttribute, not IncludeAttribute, for CLS compliance; 
271           add [CLSCompliant(false)] as needed; use NativeConvert, not UnixConvert.
272