Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2005-02-03 01:35:41 +0300
committerJonathan Pryor <jpryor@novell.com>2005-02-03 01:35:41 +0300
commit63ff637d37512802945153c768ccf997c510596a (patch)
treedccb8db743b6523f3394a396064b855d8aceafe5 /mcs
parenta0c11a3449599d55deefdf26cd311d998908c53e (diff)
* Syscall.cs: Remove public sys_ methods. Some were public by mistake, and
others so that users could manually marshal strings if desired. Manually marshaling strings shouldn't be necessary, though, so remove them too. svn path=/trunk/mcs/; revision=40010
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix/ChangeLog6
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix/Syscall.cs21
2 files changed, 13 insertions, 14 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix/ChangeLog b/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
index abcb8552e95..edf07c4e27c 100644
--- a/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
+++ b/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
@@ -1,5 +1,11 @@
2005-02-02 Jonathan Pryor <jonpryor@vt.edu>
+ * Syscall.cs: Remove public sys_ methods. Some were public by mistake, and
+ others so that users could manually marshal strings if desired. Manually
+ marshaling strings shouldn't be necessary, though, so remove them too.
+
+2005-02-02 Jonathan Pryor <jonpryor@vt.edu>
+
* StdioFileStream.cs: Fix Length property to actually return the size of the
file, not the # of bytes from the current position to EOF. Oops.
diff --git a/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs b/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs
index 04d30d961e8..c07fe98089f 100644
--- a/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs
+++ b/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs
@@ -1625,15 +1625,10 @@ namespace Mono.Unix {
[DllImport (LIBC, SetLastError=true, EntryPoint="strsignal")]
private static extern IntPtr sys_strsignal (int sig);
- public static IntPtr sys_strsignal (Signum sig)
- {
- int s = UnixConvert.FromSignum (sig);
- return sys_strsignal (s);
- }
-
public static string strsignal (Signum sig)
{
- IntPtr r = sys_strsignal (sig);
+ int s = UnixConvert.FromSignum (sig);
+ IntPtr r = sys_strsignal (s);
return UnixMarshal.PtrToString (r);
}
@@ -1850,7 +1845,7 @@ namespace Mono.Unix {
// mkdir(2)
// int mkdir(const char *pathname, mode_t mode);
[DllImport (LIBC, SetLastError=true, EntryPoint="mkdir")]
- public static extern int sys_mkdir (string oldpath, uint mode);
+ private static extern int sys_mkdir (string oldpath, uint mode);
public static int mkdir (string oldpath, FilePermissions mode)
{
@@ -2440,8 +2435,7 @@ namespace Mono.Unix {
public static extern int vfork ();
[DllImport (LIBC, SetLastError=true, EntryPoint="ttyname")]
- [Obsolete ("Not re-entrant. Use ttyname_r instead.")]
- public static extern IntPtr sys_ttyname (int fd);
+ private static extern IntPtr sys_ttyname (int fd);
[Obsolete ("Not re-entrant. Use ttyname_r instead.")]
public static string ttyname (int fd)
@@ -2503,8 +2497,7 @@ namespace Mono.Unix {
public static extern int tcsetpgrp (int fd, int pgrp);
[DllImport (LIBC, SetLastError=true, EntryPoint="getlogin")]
- [Obsolete ("Not re-entrant. Use getlogin_r instead.")]
- public static extern IntPtr sys_getlogin ();
+ private static extern IntPtr sys_getlogin ();
[Obsolete ("Not re-entrant. Use getlogin_r instead.")]
public static string getlogin ()
@@ -2592,7 +2585,7 @@ namespace Mono.Unix {
public static extern int acct (string filename);
[DllImport (LIBC, SetLastError=true, EntryPoint="getusershell")]
- public static extern IntPtr sys_getusershell ();
+ private static extern IntPtr sys_getusershell ();
public static string getusershell ()
{
@@ -2665,7 +2658,7 @@ namespace Mono.Unix {
public static extern int lockf (int fd, LockFlags cmd, long len);
[DllImport (CRYPT, SetLastError=true, EntryPoint="crypt")]
- public static extern IntPtr sys_crypt (string key, string salt);
+ private static extern IntPtr sys_crypt (string key, string salt);
public static string crypt (string key, string salt)
{