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