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