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