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