1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
|
2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
* Stdlib.cs: Add syslog(3) to XPrintfFunctions; Add additional printf(3)
and fprintf(3) overload which properly escape the format string
(by using "%s" as the format for the user-supplied message).
* Syscall.cs: Add #regions for enummerations, structures, classes; Wrap
syslog(3) and related enumerations; fix operator!= on Dirent, Group;
wrap {f}statvfs(2); wrap <fstab.h> entries (getfsent(3), etc.).
* UnixConvert.cs: Add Syslog-releated enumeration translation functions;
Move ToOpenFlags here from UnixFile and UnixFileInfo.
* UnixMarshal.cs: Missing P/Invoke methods throw
EntryPointNotFoundException, not MissingMethodException; add
EscapeFormatString, which escapes printf-style format strings so that they
can be safely handed off to native code (avoiding stack overflow, etc);
make CreateExceptionForError internal.
2004-12-15 Jonathan Pryor <jonpryor@vt.edu>
* Stdlib.cs: Add more <stdio.h> wrappers, such as fread(3) and fwrite(3).
These will be useful in implementing System.IO.Stream subclass for
reading/writing to a FILE*. Fix a typo in the realloc(3) DllImport.
* Syscall.cs: Fix the sys_kill and sys_crypt declarations.
* CdeclFunction.cs: Document calling convention problems on AMD64.
2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
* CdeclFunction.cs: Added.
* Stdlib.cs: Re-add printf(3) and fprintf(3). They may not be portable (the
jury is still out on that; the AMD64 SysV ABI looks like it should be
portable to AMD64 to my eyes), but they will work on *some* platforms, so
we should permit it. The new implementation takes a page out of
cocoa-sharp: use System.Reflection.Emit to generate a P/Invoke method at
runtime to invoke printf(3) or fprintf(3). This way, we can export a
params signature to C# code, permitting natural usage such as:
Stdlib.printf ("Hello, %s world! (%i)\n", "silly", 42);
* Syscall.cs: Mark which headers are complete, which functions still need
wrapping (for headers which have anything done to them), add #region
blocks for each header;
export mkfifo(3), fexecve(), getppid(2), setlogin(); fix sleep(3) export.
* UnixEnvironment.cs: Export a friendly getppid(2) wrapper.
GetParentProcessId isn't in UnixProcess as there's no way (that I know of)
to get the Parent's Parent, so it can't be a class member, and exposing it
as a static member of UnixProcess doesn't make sense to me, as it isn't
general. Added GetUserShells().
* UnixProcess.cs: Change constructor to internal, so it can be used from
UnixEnvironment.
2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
* Stdlib.cs: Remove printf(3) and fprintf(3). These are vararg/CDECL
functions, and it's not portable to call them in this manner.
(It's not portable because some architectures, such as AMD64, use a
"cookie" as part of the vararg calling sequence to help reduce buffer
overflow exploits. Trying to call vararg functions as if they were an
overloaded function will not properly set this hardware cookie, resulting
in a hardware exception. Talk to lupus for more information.)
2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
* Syscall.cs, UnixConvert.cs: Remove mount- and umount-related
functionality. Mount/umount is inherently non-portable (see the C code
for mount/umount), and trying to provide a consistent interface is
impossible. If you need mount/umount support, use the command-line
programs mount(1) and umount(1).
2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
+ Lots o' Renames, as the namespace changed.
* PosixConvert.cs: Moved to UnixConvert.cs:
* PosixDirectory.cs: Moved to UnixDirectory.cs:
* PosixEnvironment.cs: Moved to UnixEnvironment.cs:
* PosixDirectoryInfo.cs: Moved to UnixDirectoryInfo.cs:
* PosixFile.cs: Moved to UnixFile.cs:
* PosixFileInfo.cs: Moved to UnixFileInfo.cs:
* PosixFileSystemInfo.cs: Moved to UnixFileSystemInfo.cs:
* PosixGroup.cs: Moved to UnixGroup.cs:
* PosixGroupInfo.cs: Moved to UnixGroupInfo.cs:
* PosixIOException.cs: Moved to UnixIOException.cs:
* PosixMarshal.cs: Moved to UnixMarshal.cs:
* PosixProcess.cs: Moved to UnixProcess.cs:
* PosixStream.cs: Moved to UnixStream.cs:
* PosixSymbolicLinkInfo.cs: Moved to UnixSymbolicLinkInfo.cs:
* PosixUser.cs: Moved to UnixUser.cs:
* PosixUserInfo.cs: Moved to UnixUserInfo.cs:
* Catalog.cs, IncludeAttribute.cs, MapAttribute.cs, PeerCred.cs, Stdlib.cs,
Syscall.cs, UnixConvert.cs, UnixDirectory.cs, UnixDirectoryInfo.cs,
UnixEndPoint.cs, UnixEnvironment.cs, UnixFile.cs, UnixFileInfo.cs,
UnixFileSystemInfo.cs, UnixGroup.cs, UnixGroupInfo.cs, UnixIOException.cs,
UnixMarshal.cs, UnixProcess.cs, UnixStream.cs, UnixSymbolicLinkInfo.cs,
UnixUser.cs, UnixUserInfo.cs: Deal with renamed classes/members.
2004-11-15 Jonathan Pryor <jonpryor@vt.edu>
* PosixUserInfo.cs: Make the PosixUserInfo(Passwd) constructor public;
override Object.GetHashCode and Object.Equals.
* PosixGroupInfo.cs: Make the PosixGroupInfo(Group) constructor public;
override Object.GetHashCode and Object.Equals.
* PosixIOException.cs: Use PosixMarshal.GetErrorDescription instead of
calling Syscall.strerror_r directly
* PosixMarshal.cs: Add GetErrorDescription. Strerror_r() isn't portable, so
GetErrorDescription() first tries strerror_r(), and if it fails falls back
to strerror(3).
* Syscall.cs:
- Seal the Dirent class. It has no virtual members, so there's no point
in it being non-sealed. Override Object.GetHashCode and Object.Equals.
- Seal the Group class. It has no virtual members, so there's no point
in it being non-sealed. Override Object.GetHashCode and Object.Equals.
Provide operator== and operator!=.
- Seal the Passwd class. It has no virtual members, so there's no point
in it being non-sealed. Override Object.GetHashCode and Object.Equals.
Provide operator== and operator!=.
- Remove strerror_r() convenience overload. This is now
PosixMarshal.GetErrorDescription().
2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
* Syscall.cs: Export time-related functions (gettimeofday, settimeofday,
utime, utimes), mknod.
2004-11-07 Atsushi Enomoto <atsushi@ximian.com>
* PosixEnvironment.cs : csc build fix. see bug #69195.
* PosixStream.cs : csc build fix. see bug #69196.
2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
* PosixConvert.cs: New file; conversion functions for Mono.Posix types.
* PosixDirectory.cs: New file; Friendly wrapper over directory information.
* PosixDirectoryInfo.cs: New file; Friendly wrapper over directory information.
* PosixEnvironment.cs: New file; Friendly wrapper over environment information.
* PosixFile.cs: New file; Friendly wrapper over file information.
* PosixFileInfo.cs: New file; Friendly wrapper over file information.
* PosixFileSystemInfo.cs: New file; Friendly wrapper over `stat'.
* PosixGroup.cs: New file; User Group-related functionality
* PosixGroupInfo.cs: New file; User Group-related functionality
* PosixIOException.cs: New file; Exception for POSIX-generated exceptions.
* PosixMarshal.cs: New file; utility functions for marshaling, etc.
* PosixProcess.cs: New file; Friendly wrapper over process information.
* PosixStream.cs: New file; Friendly wrapper over file descriptors.
* PosixSymbolicLinkInfo.cs: New file; Friendly wrapper over symbolic links.
* PosixUser.cs: New file; Friendly wrapper over user information.
* PosixUserInfo.cs: New file; Friendly wrapper over user information.
* Stdlib.cs: New file; C standard library exports.
* Syscall.cs: Effective re-write.
- Organize exports by header file
- add additional enumerations (Error for the E* error values, etc.)
- always explicitly specify enumeration underlying type
- Use a new wrapping infrastructure so that ABI-stable types are exported
- For example, size_t is exported as ulong, not IntPtr.
- Wrap more functions, and wrap them better (such as getpwnam).
- This release is NOT backward compatible. Many names are the same, and
hopefully they're still compatible, but no effort was made to maintain
compatibility. For example, FileMode was removed and replaced with
FilePermissions, to avoid a name conflict with System.IO.FileMode.
- Change umount() to use MonoPosixHelper: portability fix for Mac OS X.
* make-map.cs: Another effective re-write, to clean up the code, produce
better output, and produce more output. For example, most of
PosixConvert can be auto-generated, so it is (modulo version delays and
bootstrap issues). `map.c' is now conditional on all macros, and has
error checking for invalid/unsupported values.
2004-09-18 Jackson Harper <jackson@ximian.com>
* Syscall.cs: Add support for poll ().
2004-09-18 Jackson Harper <jackson@ximian.com>
* make-map.cs: Use field value not name for #defines.
2004-09-14 Loren Bandiera <lorenb@mmgsecurity.com>
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
2004-07-09 Dick Porter <dick@ximian.com>
* PeerCred.cs: Get the unix socket peer credentials.
2004-05-26 Miguel de Icaza <miguel@ximian.com>
* Syscall.cs: Do not let the runtime handle strings, as we do not
own those strings, we must transform the char * into a string
ourselves.
2004-05-03 Miguel de Icaza <miguel@ximian.com>
* Syscall.cs: Add symlink
2004-04-19 Miguel de Icaza <miguel@ximian.com>
* Syscall.cs: Use hex values for FileMode, since C# does not have
an octal integer mode.
2004-03-30 Joshua Tauberer <tauberer@for.net>
* Added readlink, strerror, opendir, readdir, closedir
* Added Mono.Posix.Stat.UnixToDateTime(long unixtime) --> DateTime
2004-03-11 Joshua Tauberer <tauberer@for.net>
* Syscall.cs: Removed argument to getgid that shouldn't be there.
Added getusername, getgroupname which wrap getpwuid, getgrgid
without dealing with pointers to structures.
Removed duplicate FileMode enum nested in Syscall class.
Added stat and lstat, which use StatMode enumeration
(like FileMode but nicer and complete) and Stat struct.
* macros.c: Helper functions for getpwuid, getgrgid, stat, lstat.
2004-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Syscall.cs: moved the assembly attribute to a proper place
and added 'signal.h'
* make-map.cs: use reflection to invoke the properties, as it
fails under MS runtime.
2004-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Syscall.cs: moved assembly attribute and added unsafe block to fix
the build on windows.
2003-11-11 Wojciech Polak <polak@gnu.org
* Syscall.cs: Applied patch from Wojciech Polak <polak@gnu.org> to
support IsAtty.
2003-05-16 Dick Porter <dick@ximian.com>
* UnixEndPoint.cs: New property to get and set the filename, like
the IPEndPoint has for the IP address. Also implement ToString().
Tue Apr 29 16:53:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
* Syscall.cs: remove the unsafe mess.
2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Check in.
* UnixEndPoint.cs: first file.
|