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