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