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