You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -33,11 +33,13 @@ using System.Net.Sockets;
|
||||
|
||||
namespace Mono.Unix
|
||||
{
|
||||
#pragma warning disable 649
|
||||
internal struct PeerCredData {
|
||||
public int pid;
|
||||
public int uid;
|
||||
public int gid;
|
||||
}
|
||||
#pragma warning restore 649
|
||||
|
||||
public class PeerCred
|
||||
{
|
||||
|
||||
@@ -60,35 +60,43 @@ namespace Mono.Unix {
|
||||
|
||||
public StdioFileStream (string path)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException ("path");
|
||||
InitStream (Fopen (path, "rb"), true);
|
||||
}
|
||||
|
||||
public StdioFileStream (string path, string mode)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException ("path");
|
||||
InitStream (Fopen (path, mode), true);
|
||||
}
|
||||
|
||||
public StdioFileStream (string path, FileMode mode)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException ("path");
|
||||
InitStream (Fopen (path, ToFopenMode (path, mode)), true);
|
||||
}
|
||||
|
||||
public StdioFileStream (string path, FileAccess access)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException ("path");
|
||||
InitStream (Fopen (path, ToFopenMode (path, access)), true);
|
||||
InitCanReadWrite (access);
|
||||
}
|
||||
|
||||
public StdioFileStream (string path, FileMode mode, FileAccess access)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException ("path");
|
||||
InitStream (Fopen (path, ToFopenMode (path, mode, access)), true);
|
||||
InitCanReadWrite (access);
|
||||
}
|
||||
|
||||
private static IntPtr Fopen (string path, string mode)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException ("path");
|
||||
if (path.Length == 0)
|
||||
throw new ArgumentException ("path");
|
||||
if (mode == null)
|
||||
|
||||
@@ -152,11 +152,13 @@ namespace Mono.Unix {
|
||||
|
||||
// signum, count, write_fd, pipecnt, and pipelock are read from a signal handler thread
|
||||
// count and pipelock are both read and written from the signal handler thread
|
||||
#pragma warning disable 649
|
||||
[Map]
|
||||
struct SignalInfo {
|
||||
public int signum, count, read_fd, write_fd, pipecnt, pipelock, have_handler;
|
||||
public IntPtr handler; // Backed-up handler to restore when signal unregistered
|
||||
}
|
||||
#pragma warning restore 649
|
||||
|
||||
#region WaitHandle overrides
|
||||
protected unsafe override void Dispose (bool disposing)
|
||||
|
||||
Reference in New Issue
Block a user