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