remove .cvsignore from everywhere, as it is useless on svn
[mono.git] / mcs / class / Mono.Posix / Mono.Unix / ChangeLog
1 2005-06-15  Jonathan Pryor <jonpryor@vt.edu>
2
3         * Syscall.cs: s/LOG_USRE/LOG_USER/.  Fixes #75274.  
4           Thanks to Martin Honermeyer.
5
6 2005-06-09  Jonathan Pryor <jonpryor@vt.edu>
7
8         * make-map.cs: Look for [Obsolete] members, and mark the UnixConvert
9           conversion functions with the same [Obsolete] message.  This should permit
10           more graceful deprecation of enumerations in the future (rather than just
11           API breaks).
12
13 2005-06-08  Jonathan Pryor <jonpryor@vt.edu>
14
15         * Syscall.cs: Add execvp(2).  (This should have been added with the other
16           exec(2) additions...).
17
18 2005-06-08  Jonathan Pryor <jonpryor@vt.edu>
19
20         * Syscall.cs: Update comment with correct exception type.
21         * UnixConvert.cs: Rename ToFilePermissions(string) to
22           FromOctalPermissionString; Add ToOctalPermissionString,
23           FromUnixPermissionString, ToUnixPermissionString.
24         * UnixMarshal.cs: Remove ErrorMarshal.HaveStrerror_r and
25           UnixMarshal.IsErrorDescriptionThreadSafe.  strerror(3) is now thread-safe
26           (from managed code, at least).  Update comment.
27
28 2005-06-07  Jonathan Pryor <jonpryor@vt.edu>
29
30         * UnixFileSystemInfo.cs: Don't use lstat(2), use stat(2).  This fits with
31           expectations better -- if you create a UnixFileInfo() on a symlink, you
32           want to get the target's information, not the symlink's info.  Add
33           GetFileStatus so UnixSymbolicLinkInfo can override this behavior.
34         * UnixSymbolicLinkInfo.cs: Implement GetFileStatus() (which calls lstat(2)).
35
36 2005-06-07  Jonathan Pryor <jonpryor@vt.edu>
37
38         * Syscall.cs: Document naming conventions.
39
40 2005-06-05  Jonathan Pryor <jonpryor@vt.edu>
41
42         * make-map.cs: Change automatic "ifdef HAVE_<header>" support prefix to
43           "ah:" from ">".  I hadn't known about ">", and "ah:" is (somewhat) more
44           obvious.
45         * Syscall.cs: Change IncludeAttribute to put all headers/defines one/line.
46           It's easier to read this way.  Add "ah:sys/xattr.h" to the headers.
47
48 2005-06-03  Jonathan Pryor <jonpryor@vt.edu>
49
50         * Stdlib.cs: Add sanity checking to snprintf(3) to avoid buffer overflows.
51
52 2005-06-02  Jonathan Pryor <jonpryor@vt.edu>
53
54         * StdioFileStream.cs: Remove FilePosition property & replace with
55           SaveFilePosition/RestoreFilePosition methods.  Since FilePosition has a
56           finalizer, it's not right to have implicitly created instances.
57         * Stdlib.cs: 
58           - FilePosition: GC.SuppressFinalize() should be last in Dispose() 
59             (following .NET guidelines).
60           - Syscall: Add locking around functions most likely to be thread unsafe.
61             This should provide some level of thread-safety to managed code.
62         * Syscall.cs: Add locking around functions most likely to be thread unsafe;
63           add mkstemp(3) export.
64         * UnixEnvironment.cs: GetUserShells should be atomic (from managed code).
65         * UnixGroup.cs: GetLocalGroups should be atomic (from managed code).
66         * UnixGroupInfo.cs: Add ToGroup() method to retrieve underlying Group info.
67         * UnixUser.cs: GetLocalUsers should be atomic (from managed code).
68         * UnixUserInfo.cs: Add ToPasswd () method to retrieve underlying Passwd info.
69         * UnixDriveInfo.cs: GetDrives should be atomic (from managed code).
70
71 2005-05-31  Jonathan Pryor <jonpryor@vt.edu>
72
73         * Stdlib.cs: Add comment for atexit(3) so I don't try to add it.
74         * Syscall.cs: Add fcntl(2) overload which takes DirectoryNotifyFlags (so
75           that *something* accepts a DirectoryNotifyFlags); Fix IncludeAttribute
76                 header files (">sys/poll.h" doesn't exist); 
77           Add additional <sys/mman.h> functions mmap, munmap, msync, mlock, munlock,
78           mlockall, munlockall, mremap, mincore, remap_file_pages.
79         * UnixConvert.cs: Add conversion functions for MmapFlags, MmapProt, MsyncFlags,
80           MlockallFlags, MremapFlags.
81
82 2005-05-31  Jonathan Pryor <jonpryor@vt.edu>
83
84         * Syscall.cs, UnixConvert.cs: Rename LockFlags to LockfCommand.  This is a more 
85           consistent naming, and it's more correct (they weren't flags in the first place).
86
87 2005-05-18  Jonathan Pryor <jonpryor@vt.edu>
88
89         * Stdlib.cs: Correct Mono_Posix_Stdlib_InvokeSignalHandler export.
90
91 2005-05-18  Jonathan Pryor <jonpryor@vt.edu>
92
93         * make-map.cs: Process the Mono.Posix namespace as well as Mono.Unix; add
94           mapping for Boolean => int for native type conversion.
95
96 2005-05-18  Jonathan Pryor <jonpryor@vt.edu>
97
98         * make-map.cs: Add a MphPrototypeFileGenerator, which looks for DllImport
99           methods across all types and generates a C header file declaration for
100           those methods.  This allows us to ensure consistency between
101           Mono.Posix.dll and MonoPosixHelper.so.  Rename WrapperFileGenerator to
102                 ConvertFileGenerator (it generates UnixConvert).
103         * MapAttribute.cs, IncludeAttribute.cs: Make these internal -- there's no
104           reason for external users to even know these exist.
105         * StdioFileStream.cs: Move GC.SuppressFinalize call to be last Dispose()
106           call.  This follows current design guidelines, and allows an exception to
107           be thrown from Dispose() without un-registering the finalizer.
108         * Syscall.cs: Change method declarations to match MonoPosixHelper, etc.
109            - posix_fallocate(P) takes a size_t
110            - mis-spelled settimeofday(2), sethostname(2)
111            - exec(2) can be public; it's safe to call
112            - change lseek(2) so int's are passed to MonoPosixHelper.so, not shorts
113            - We can't allow two incompatible prototypes to exist (since C allows
114              only one prototype, and we're cross-checking prototypes now).  Change
115              utime(2) so only one prototype is needed.
116         * UnixMarshal.cs: ErrorMarshal.ErrorTranslator and ErrorMarshal.Translate
117           shouldn't be public; make them internal.
118         * UnixStream.cs: Remove `unsafe` code block when a "safe" alternative works;
119           Close() should also call GC.SuppressFinalize.
120
121 2005-05-12  Jonathan Pryor <jonpryor@vt.edu>
122
123         * Syscall.cs: The Statvfs structure should contain a MountFlags enumeration,
124           not a ulong (we can "safely" do this since POSIX defines some values for
125           f_flag, so we should be kind and expose them).
126         * UnixConvert.cs: Add MountFlags conversion functions.
127
128 2005-05-02  Joe Shaw  <joeshaw@novell.com>
129
130         * UnixListener.cs (Init): Remove the call to Cleanup() and the
131         method itself, which was not supposed to be here.  We try to
132         connect to the socket if it exists instead of deleting it
133         undconditionally.
134
135 2005-04-30  Ben Maurer  <bmaurer@ximian.com>
136
137         * Stdlib.cs: Comment out usage of `UnmanagedFunctionPointer'. It
138         isn't supported in the runtime -- it throws an assert -- so better
139         not to use it at all for now.
140
141 2005-04-29  Jonathan Pryor <jonpryor@vt.edu>
142
143         * UnixConvert.cs: Fix time_t -> DateTime conversions.  time_t should be
144           assumed to be in the local time zone, so don't mess with UTC shifts.
145           This allows Mono.Unix to produce sane output (e.g. identical to ls(1) or
146           stat(1), instead of several hours different).
147
148 2005-04-29  Jonathan Pryor <jonpryor@vt.edu>
149
150         * Stdlib.cs: Make FilePosition slightly more useful by providing a
151           ToString() override which dumps the fpos_t structure contents into a 
152           hex string.  Add Equals(), GetHashCode(), operator==, and operator!=
153           so FilePosition behaves like a value type.
154
155 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
156
157         * UnixClient.cs:
158         * UnixListener.cs: TcpListener/TcpClient clones from Jow Shaw.
159
160 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
161
162         * Mono.Posix.dll.sources: added UnixListener and UnixClient from Joe
163         Shaw.
164
165 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
166
167         * UnixEndPoint.cs: fix from Mono.Posix.
168
169 2005-04-20  Jonathan Pryor <jonpryor@vt.edu>
170
171         * Syscall.cs: Make all fork(2) and exec(2) functions `private`.  It
172           currently isn't safe to call these under *any* circumstances.  See also
173           68141, and this pertinent quote from Butenhof's 
174           "Programming with POSIX Threads", p197, s6.1:
175           
176               "When a threaded process calls fork to create a child process,
177               Pthreads specifies that only the thread calling fork exists in the
178               child. ... Pthreads does not 'terminate' the other threads in a forked
179               process...They simply cease to exist.  ... This is not a problem if
180               the child process is about to call exec to run a new program, but if
181               you use fork to clone a threaded program, beware that you may lose
182               access to memory, especially heap memory stored only as
183               thread-specific data values."
184           
185           Since P/Invoke currently requires using thread local storage, once you
186           fork(2) you won't be able to invoke exec(2) from managed code (since that
187           would require a P/Invoke transition to call exec(2), which would require
188           TLS, which doesn't exist in the new process).
189          
190           This can only be fixed by removing the TLS dependency on P/Invoke, which
191           isn't a priority (and may not be possible).
192          
193           The workaround is to create a C function which does your fork(2)/exec(2)
194           (and any other functions such as daemon(3)) on your behalf, and P/Invoke
195           to call this C function.
196
197 2005-04-18  Jonathan Pryor <jonpryor@vt.edu>
198
199         * Syscall.cs: Update comment specifying which functions belong in Syscall.
200         * UnixConvert.cs: Add XattrFlags conversion functions.
201         * UnixMarshal.cs: Remove warning about self-assignment.
202
203 2005-04-16  Daniel Drake <dsd@gentoo.org>
204
205         * Syscall.cs: Add bindings for extended attribute manipulation
206
207 2005-04-05  Miguel de Icaza  <miguel@novell.com>
208
209         * Syscall.cs: Set entry point for sys_syslog to be syslog.
210         Include the syslog.h header in the generated map so that we
211         actually do the mapping.
212
213 2005-03-28  Jonathan Pryor <jonpryor@vt.edu>
214
215         * UnixConvert.cs: Add ToFopenMode() methods, which convert FileMode/FileAccess
216           into an fopen(3) mode string.  ToOpenFlags() should throw
217           ArgumentOutOfRangeException for argument violations.
218         * StdioFileStream.cs: Add constructor overloads accepting filename and
219           FileMode/FileAccess overloads; Compatibility fixes with regression tests;
220           remove IDisposable implementation since System.IO.Stream already
221           implements it (which calls Close() for us).
222
223 2005-03-17  Jonathan Pryor <jonpryor@vt.edu>
224
225         * Stdlib.cs: Move Errno-related functionality into Stdlib from Syscall,
226           since (1) errno is part of C89, and (2) StdioFileStream will need it, and
227           StdioFileStream shouldn't use Syscall.  Add [UnmanagedFunctionPointer]
228                 attribute to SignalHandler for .NET 2.0 (since signal handlers use C
229                 calling convention, not Stdcall).
230         * Syscall.cs: Move Errno-related functionality into Stdlib.
231         * UnixMarshal.cs: Use ERANGE not EPERM when figuring out appropriate
232           translator, since ERANGE is part of C99 and EPERM isn't.  Use Stdlib
233           instead of Syscall for Errno-related functionality.
234
235 2005-02-02  Jonathan Pryor <jonpryor@vt.edu>
236
237         * UnixFile.cs: Cope with changes in UnixStream.
238         * UnixStream.cs: Change FileDescriptor property to Handle for consistency.
239         * StdioFileStream.cs: Change FileStream property to Handle for consistency.
240
241 2005-02-02  Jonathan Pryor <jonpryor@vt.edu>
242
243         * Syscall.cs: Remove public sys_ methods.  Some were public by mistake, and
244           others so that users could manually marshal strings if desired.  Manually
245           marshaling strings shouldn't be necessary, though, so remove them too.
246
247 2005-02-02  Jonathan Pryor <jonpryor@vt.edu>
248
249         * StdioFileStream.cs: Fix Length property to actually return the size of the
250           file, not the # of bytes from the current position to EOF.  Oops.
251
252 2005-01-31  Jonathan Pryor <jonpryor@vt.edu>
253
254         * Stdlib.cs: Import "msvcrt", not "libc".  These members are part of the
255           ANSI C standard, and thus should be present on Windows via msvcrt.dll
256           (except snprintf, until they catch up to C99).  Change the calling
257           convention of all functions to Cdecl, as the .NET default is Stdcall.
258           Changing the calling convention isn't needed in Syscall, as it can only be
259           run on Unix platforms anyway, where the default is Cdecl.
260         * Syscall.cs: Add LIBC member that points to the real "libc"; we can't use
261           the imported definition from Stdlib as "msvcrt" doesn't exist on Unix.
262
263 2005-01-29  Jonathan Pryor <jonpryor@vt.edu>
264
265         * Stdlib.cs: sys_* functions shouldn't be public.
266
267 2005-01-13  Jonathan Pryor <jonpryor@vt.edu>
268
269         * make-map.cs: libMonoPosixHelper exports Mono_Posix prefixes, not Mono_Unix
270           prefixes, so change the type and namespace to generate compatible code.
271         * Syscall.cs: Change OpenFlags values so they match the Linux values.
272
273 2005-01-13  Jonathan Pryor <jonpryor@vt.edu>
274
275         * Stdlib.cs: Use Stdlib.LIBC instead of "libc".
276         * StdioFileStream.cs: Add FilePosition property (not that I expect anyone to
277           use it) and Rewind() method.
278
279 2005-01-05  Jonathan Pryor <jonpryor@vt.edu>
280
281         * StdioFileStream.cs: Added; System.IO.Stream wrapper for C FILE struct.
282         * Stdlib.cs: Correct visibility of ftell().
283
284 2005-01-05  Jonathan Pryor <jonpryor@vt.edu>
285
286         * Stdlib.cs: Re-order declarations to match the order used in the 
287           C99 Standard Annex B; Complete <stdio.h> exports (except for those not
288           worth supporting); Add non-"unsafe" versions of fread(3), fwrite(3) and
289           add some rudimentary buffer-overflow checking; Add <stdlib.h> exports such
290           as getenv(3), exit(3), rand(3), EXIT_SUCCESS, RAND_MAX, etc.
291
292 2005-01-03  Jonathan Pryor <jonpryor@vt.edu>
293
294         * Syscall.cs: Update endfsent() and setfsent() declarations, as these must
295           now be implemented in MonoPosixHelper.
296
297 2005-01-01  Jonathan Pryor <jonpryor@vt.edu>
298
299         * Stdlib.cs, Syscall.cs: Minimize duplicate declarations of
300           "MonoPosixHelper" for use in DllImport statements.
301
302 2005-01-01  Jonathan Pryor <jonpryor@vt.edu>
303
304         * Stdlib.cs: Don't use C# v2 features; fixes build under CSC.EXE.
305
306 2004-12-30  Jonathan Pryor <jonpryor@vt.edu>
307
308         * Stdlib.cs: On miguel's suggestion, rename Sighandler_t to SignalHandler.
309
310 2004-12-30  Jonathan Pryor <jonpryor@vt.edu>
311
312         * Stdlib.cs: Implement all C89 <stdio.h> functions except for the scanf(3)
313           family.  These are too dangerous to expose.
314
315 2004-12-30  Jonathan Pryor <jonpryor@vt.edu>
316
317         * CdeclFunctions.cs: Remove warning about unused variable.
318         * Stdlib.cs: Make signal(2) sane and (hopefully) complete.
319         * Syscall.cs: Fix cuserid Obsolete message to reference correct class name.
320         * UnixProcess.cs: Remove warning about unused variable.
321         * UnixMarshal.cs: Remove warnings about unused variables.
322
323 2004-12-29  Jonathan Pryor <jonpryor@vt.edu>
324
325         * UnixPath.cs: Add ReadSymbolicLink(), which takes an intelligent approach
326           to reading symlinks (since their contents may be any size, we grow the
327           buffer dynamically to fit them all, instead of assuming a maximum size).
328         * UnixSymbolicLinkInfo.cs: Remove MaxContentsSize.
329
330 2004-12-29  Jonathan Pryor <jonpryor@vt.edu>
331
332         * UnixPath.cs: Add check for when symlink points to a full path name.
333
334 2004-12-29  Jonathan Pryor <jonpryor@vt.edu>
335
336         * Syscall.cs: Fix Object.Equals implementations.
337         * UnixPath.cs: New & improved, with Testing!  GetRealPath() is changed so
338           that it doesn't walk the entire path looking for symlinks, it just reads 
339           the leaf.  GetCompletRealPath() walks the entire path resolving symlinks.
340           GetCanonicalPath() added, which "cleans up" a path (removing extraneous
341           "." and ".." entries).
342         * UnixSymbolicLinkInfo.cs: Rename ContentsLength -> MaxContentsSize.
343
344 2004-12-28  Jonathan Pryor <jonpryor@vt.edu>
345
346         * UnixFileSystemInfo.cs: Add a link(2) wrapper, CreateLink().  Strictly
347           speaking it's only "safe" to do this on files, but an exception will be 
348           returned if the user tries to hard link directories (because of EPERM), 
349           unless the user is root, in which case it should be allowed anyway...
350
351 2004-12-28  Jonathan Pryor <jonpryor@vt.edu>
352
353         * CdeclFunctions.cs: Correct the comments for AMD64
354         * UnixDirectoryInfo.cs: override Name; add Parent & Root properties; 
355           Correct Path usage (s/Path/FullPath/g).
356         * UnixDriveInfo.cs: Added.  Based on .NET 2.0 System.IO.DriveInfo docs,
357           provides statvfs(2) and getfsfile(3) information about a mounted volume.
358           GetDrives() wraps getfsent(3), thus parsing /etc/fstab.
359         * UnixFile.cs: Use UnixConver.ToOpenFlags, deleting the local version.
360         * UnixFileInfo.cs: Use UnixConver.ToOpenFlags, deleting the local version;
361           override Name; add DirectoryName and Directory properties; 
362         * UnixFileSystemInfo.cs: Make more .NET-like, using FullPath and
363           OriginalPath protected members, abstract Name property; Add
364           CreateSymbolicLink; Remove ReadLink (it's now 
365           UnixSymbolicLinkInfo.Contents); Use lstat(2) for Create(string), so we
366           properly detect Symbolic Links.
367         * UnixPath.cs: Added; Path manipulation utility functions.
368         * UnixSymbolicLinkInfo.cs: 
369           - Seal the class; 
370           - override new abstract member Name; 
371           - rename ReadLink to ContentsPath (and Contents) properties 
372             (why "Contents"?  Because readlink(2) says "readlink places the 
373             contents of the symbolic link in the buffer...")
374           - Add CreateSymbolicLinkTo(), which creates a symlink to the specified
375             "normal" file
376
377 2004-12-28  Jonathan Pryor <jonpryor@vt.edu>
378
379         * Stdlib.cs: Add syslog(3) to XPrintfFunctions; Add additional printf(3) 
380           and fprintf(3) overload which properly escape the format string 
381           (by using "%s" as the format for the user-supplied message).
382         * Syscall.cs: Add #regions for enummerations, structures, classes; Wrap
383           syslog(3) and related enumerations; fix operator!= on Dirent, Group; 
384           wrap {f}statvfs(2); wrap <fstab.h> entries (getfsent(3), etc.).
385         * UnixConvert.cs: Add Syslog-releated enumeration translation functions;
386           Move ToOpenFlags here from UnixFile and UnixFileInfo.
387         * UnixMarshal.cs: Missing P/Invoke methods throw
388           EntryPointNotFoundException, not MissingMethodException; add
389           EscapeFormatString, which escapes printf-style format strings so that they
390           can be safely handed off to native code (avoiding stack overflow, etc);
391           make CreateExceptionForError internal.
392
393 2004-12-15  Jonathan Pryor <jonpryor@vt.edu>
394
395         * Stdlib.cs: Add more <stdio.h> wrappers, such as fread(3) and fwrite(3).
396           These will be useful in implementing System.IO.Stream subclass for
397           reading/writing to a FILE*.  Fix a typo in the realloc(3) DllImport.
398         * Syscall.cs: Fix the sys_kill and sys_crypt declarations.
399         * CdeclFunction.cs: Document calling convention problems on AMD64.
400
401 2004-11-18  Jonathan Pryor <jonpryor@vt.edu>
402
403         * CdeclFunction.cs: Added.
404         * Stdlib.cs: Re-add printf(3) and fprintf(3).  They may not be portable (the
405           jury is still out on that; the AMD64 SysV ABI looks like it should be
406           portable to AMD64 to my eyes), but they will work on *some* platforms, so
407           we should permit it.  The new implementation takes a page out of
408           cocoa-sharp: use System.Reflection.Emit to generate a P/Invoke method at
409           runtime to invoke printf(3) or fprintf(3).  This way, we can export a
410           params signature to C# code, permitting natural usage such as:
411               Stdlib.printf ("Hello, %s world! (%i)\n", "silly", 42);
412         * Syscall.cs: Mark which headers are complete, which functions still need
413           wrapping (for headers which have anything done to them), add #region
414           blocks for each header;
415           export mkfifo(3), fexecve(), getppid(2), setlogin(); fix sleep(3) export.
416         * UnixEnvironment.cs: Export a friendly getppid(2) wrapper.
417           GetParentProcessId isn't in UnixProcess as there's no way (that I know of)
418           to get the Parent's Parent, so it can't be a class member, and exposing it
419           as a static member of UnixProcess doesn't make sense to me, as it isn't
420           general.  Added GetUserShells().
421         * UnixProcess.cs: Change constructor to internal, so it can be used from
422           UnixEnvironment.
423
424 2004-11-16  Jonathan Pryor <jonpryor@vt.edu>
425
426         * Stdlib.cs: Remove printf(3) and fprintf(3).  These are vararg/CDECL 
427           functions, and it's not portable to call them in this manner.
428           (It's not portable because some architectures, such as AMD64, use a
429           "cookie" as part of the vararg calling sequence to help reduce buffer
430           overflow exploits.  Trying to call vararg functions as if they were an
431           overloaded function will not properly set this hardware cookie, resulting
432           in a hardware exception.  Talk to lupus for more information.)
433
434 2004-11-16  Jonathan Pryor <jonpryor@vt.edu>
435
436         * Syscall.cs, UnixConvert.cs: Remove mount- and umount-related
437           functionality.  Mount/umount is inherently non-portable (see the C code
438           for mount/umount), and trying to provide a consistent interface is
439           impossible.  If you need mount/umount support, use the command-line
440           programs mount(1) and umount(1).
441
442 2004-11-16  Jonathan Pryor <jonpryor@vt.edu>
443
444         + Lots o' Renames, as the namespace changed.
445         * PosixConvert.cs: Moved to UnixConvert.cs:
446         * PosixDirectory.cs: Moved to UnixDirectory.cs:
447         * PosixEnvironment.cs: Moved to UnixEnvironment.cs:
448         * PosixDirectoryInfo.cs: Moved to UnixDirectoryInfo.cs:
449         * PosixFile.cs: Moved to UnixFile.cs:
450         * PosixFileInfo.cs: Moved to UnixFileInfo.cs:
451         * PosixFileSystemInfo.cs: Moved to UnixFileSystemInfo.cs:
452         * PosixGroup.cs: Moved to UnixGroup.cs:
453         * PosixGroupInfo.cs: Moved to UnixGroupInfo.cs:
454         * PosixIOException.cs: Moved to UnixIOException.cs:
455         * PosixMarshal.cs: Moved to UnixMarshal.cs:
456         * PosixProcess.cs: Moved to UnixProcess.cs:
457         * PosixStream.cs: Moved to UnixStream.cs:
458         * PosixSymbolicLinkInfo.cs: Moved to UnixSymbolicLinkInfo.cs:
459         * PosixUser.cs: Moved to UnixUser.cs:
460         * PosixUserInfo.cs: Moved to UnixUserInfo.cs:
461         * Catalog.cs, IncludeAttribute.cs, MapAttribute.cs, PeerCred.cs, Stdlib.cs,
462           Syscall.cs, UnixConvert.cs, UnixDirectory.cs, UnixDirectoryInfo.cs,
463           UnixEndPoint.cs, UnixEnvironment.cs, UnixFile.cs, UnixFileInfo.cs,
464           UnixFileSystemInfo.cs, UnixGroup.cs, UnixGroupInfo.cs, UnixIOException.cs,
465           UnixMarshal.cs, UnixProcess.cs, UnixStream.cs, UnixSymbolicLinkInfo.cs,
466           UnixUser.cs, UnixUserInfo.cs: Deal with renamed classes/members.
467
468 2004-11-15  Jonathan Pryor <jonpryor@vt.edu>
469
470         * PosixUserInfo.cs: Make the PosixUserInfo(Passwd) constructor public;
471           override Object.GetHashCode and Object.Equals.
472         * PosixGroupInfo.cs: Make the PosixGroupInfo(Group) constructor public;
473           override Object.GetHashCode and Object.Equals.
474         * PosixIOException.cs: Use PosixMarshal.GetErrorDescription instead of
475           calling Syscall.strerror_r directly
476         * PosixMarshal.cs: Add GetErrorDescription.  Strerror_r() isn't portable, so
477           GetErrorDescription() first tries strerror_r(), and if it fails falls back
478           to strerror(3).
479         * Syscall.cs: 
480           - Seal the Dirent class.  It has no virtual members, so there's no point 
481       in it being non-sealed.  Override Object.GetHashCode and Object.Equals.
482           - Seal the Group class.  It has no virtual members, so there's no point 
483       in it being non-sealed.  Override Object.GetHashCode and Object.Equals.
484             Provide operator== and operator!=.
485           - Seal the Passwd class.  It has no virtual members, so there's no point 
486       in it being non-sealed.  Override Object.GetHashCode and Object.Equals.
487             Provide operator== and operator!=.
488           - Remove strerror_r() convenience overload.  This is now
489             PosixMarshal.GetErrorDescription().
490
491 2004-11-12  Jonathan Pryor <jonpryor@vt.edu>
492
493         * Syscall.cs: Export time-related functions (gettimeofday, settimeofday,
494           utime, utimes), mknod.
495
496 2004-11-07  Atsushi Enomoto  <atsushi@ximian.com>
497
498         * PosixEnvironment.cs : csc build fix. see bug #69195.
499         * PosixStream.cs : csc build fix. see bug #69196.
500
501 2004-11-05  Jonathan Pryor  <jonpryor@vt.edu>
502
503         * PosixConvert.cs: New file; conversion functions for Mono.Posix types.
504         * PosixDirectory.cs: New file; Friendly wrapper over directory information.
505         * PosixDirectoryInfo.cs: New file; Friendly wrapper over directory information.
506         * PosixEnvironment.cs: New file; Friendly wrapper over environment information.
507         * PosixFile.cs: New file; Friendly wrapper over file information.
508         * PosixFileInfo.cs: New file; Friendly wrapper over file information.
509         * PosixFileSystemInfo.cs: New file; Friendly wrapper over `stat'.
510         * PosixGroup.cs: New file; User Group-related functionality
511         * PosixGroupInfo.cs: New file; User Group-related functionality
512         * PosixIOException.cs: New file; Exception for POSIX-generated exceptions.
513         * PosixMarshal.cs: New file; utility functions for marshaling, etc.
514         * PosixProcess.cs: New file; Friendly wrapper over process information.
515         * PosixStream.cs: New file; Friendly wrapper over file descriptors.
516         * PosixSymbolicLinkInfo.cs: New file; Friendly wrapper over symbolic links.
517         * PosixUser.cs: New file; Friendly wrapper over user information.
518         * PosixUserInfo.cs: New file; Friendly wrapper over user information.
519         * Stdlib.cs: New file; C standard library exports.
520         * Syscall.cs: Effective re-write.  
521           - Organize exports by header file
522           - add additional enumerations (Error for the E* error values, etc.)
523           - always explicitly specify enumeration underlying type
524           - Use a new wrapping infrastructure so that ABI-stable types are exported
525                 - For example, size_t is exported as ulong, not IntPtr.
526           - Wrap more functions, and wrap them better (such as getpwnam).
527           - This release is NOT backward compatible.  Many names are the same, and
528             hopefully they're still compatible, but no effort was made to maintain
529             compatibility.  For example, FileMode was removed and replaced with
530             FilePermissions, to avoid a name conflict with System.IO.FileMode.
531                 - Change umount() to use MonoPosixHelper: portability fix for Mac OS X.
532         * make-map.cs: Another effective re-write, to clean up the code, produce
533           better output, and produce more output.  For example, most of
534           PosixConvert can be auto-generated, so it is (modulo version delays and
535           bootstrap issues).  `map.c' is now conditional on all macros, and has
536           error checking for invalid/unsupported values.
537
538 2004-09-18  Jackson Harper  <jackson@ximian.com>
539
540         * Syscall.cs: Add support for poll ().
541
542 2004-09-18  Jackson Harper  <jackson@ximian.com>
543
544         * make-map.cs: Use field value not name for #defines.
545                 
546 2004-09-14  Loren Bandiera <lorenb@mmgsecurity.com>
547
548         * Syscall.cs: Added method for getpwnam which uses Passwd
549         struct.
550         * macros.c: Helper function for getpwnam
551         (In committing, Josh Tauberer also added getpwuid.)
552
553 2004-07-09  Dick Porter  <dick@ximian.com>
554
555         * PeerCred.cs: Get the unix socket peer credentials.
556
557 2004-05-26  Miguel de Icaza  <miguel@ximian.com>
558
559         * Syscall.cs: Do not let the runtime handle strings, as we do not
560         own those strings, we must transform the char * into a string
561         ourselves. 
562
563 2004-05-03  Miguel de Icaza  <miguel@ximian.com>
564
565         * Syscall.cs: Add symlink
566
567 2004-04-19  Miguel de Icaza  <miguel@ximian.com>
568
569         * Syscall.cs: Use hex values for FileMode, since C# does not have
570         an octal integer mode.
571
572 2004-03-30  Joshua Tauberer <tauberer@for.net>
573
574         * Added readlink, strerror, opendir, readdir, closedir
575         * Added Mono.Posix.Stat.UnixToDateTime(long unixtime) --> DateTime
576
577 2004-03-11  Joshua Tauberer <tauberer@for.net>
578
579         * Syscall.cs: Removed argument to getgid that shouldn't be there.
580                 Added getusername, getgroupname which wrap getpwuid, getgrgid
581                 without dealing with pointers to structures.
582                 Removed duplicate FileMode enum nested in Syscall class.
583                 Added stat and lstat, which use StatMode enumeration
584                 (like FileMode but nicer and complete) and Stat struct.
585         * macros.c: Helper functions for getpwuid, getgrgid, stat, lstat.
586
587 2004-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
588
589         * Syscall.cs: moved the assembly attribute to a proper place
590         and added 'signal.h'
591         * make-map.cs: use reflection to invoke the properties, as it
592         fails under MS runtime.
593         
594
595 2004-01-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
596
597         * Syscall.cs: moved assembly attribute and added unsafe block to fix
598         the build on windows.
599
600 2003-11-11  Wojciech Polak <polak@gnu.org
601
602         * Syscall.cs: Applied patch from Wojciech Polak <polak@gnu.org> to
603         support IsAtty.
604
605 2003-05-16  Dick Porter  <dick@ximian.com>
606
607         * UnixEndPoint.cs: New property to get and set the filename, like
608         the IPEndPoint has for the IP address.  Also implement ToString().
609
610 Tue Apr 29 16:53:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
611
612         * Syscall.cs: remove the unsafe mess.
613
614 2003-02-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
615
616         * Check in.
617         * UnixEndPoint.cs: first file.
618