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