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