From f7e1cb986f8cbda95bd9a484fb240520694e38a0 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 3 May 2015 23:05:38 +0100 Subject: [PATCH] Correct extern declarations. --- Claunia.IO/ChangeLog | 5 +++++ .../Interop/FreeBSD/Interop.FreeBSD.extattr.cs | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Claunia.IO/ChangeLog b/Claunia.IO/ChangeLog index a3aa2d6..17c4b8a 100644 --- a/Claunia.IO/ChangeLog +++ b/Claunia.IO/ChangeLog @@ -1,3 +1,8 @@ +2015-05-03 Natalia Portillo + + * Interop/FreeBSD/Interop.FreeBSD.extattr.cs: + Correct extern declarations. + 2015-05-03 Natalia Portillo * Claunia.IO.csproj: diff --git a/Claunia.IO/Interop/FreeBSD/Interop.FreeBSD.extattr.cs b/Claunia.IO/Interop/FreeBSD/Interop.FreeBSD.extattr.cs index 36193a4..3a81de5 100644 --- a/Claunia.IO/Interop/FreeBSD/Interop.FreeBSD.extattr.cs +++ b/Claunia.IO/Interop/FreeBSD/Interop.FreeBSD.extattr.cs @@ -57,7 +57,7 @@ internal static partial class Interop /// Pointer to buffer where to store the data. /// Size of the buffer. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi)] - Int64 extattr_get_file(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int64 nbytes); + public static extern Int64 extattr_get_file(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int64 nbytes); /// /// Sets an extended attribute value @@ -70,7 +70,7 @@ internal static partial class Interop /// Pointer where the data is stored. /// Size of the data. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi)] - Int64 extattr_set_file(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int64 nbytes); + public static extern Int64 extattr_set_file(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int64 nbytes); /// /// Deletes an extended attribute value @@ -83,7 +83,7 @@ internal static partial class Interop /// Pointer to buffer where the data is stored. /// Size of the pointer. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi)] - Int64 extattr_delete_file(string path, attrNamespace attrnamespace, string attrname); + public static extern Int64 extattr_delete_file(string path, attrNamespace attrnamespace, string attrname); /// /// Gets a list of extended attributes that the file has in that namespace @@ -98,7 +98,7 @@ internal static partial class Interop /// Pointer to buffer where to store the list. /// Size of the buffer. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi)] - Int64 extattr_list_file(string path, attrNamespace attrnamespace, IntPtr data, Int64 nbytes); + public static extern Int64 extattr_list_file(string path, attrNamespace attrnamespace, IntPtr data, Int64 nbytes); /// /// Gets an extended attribute value @@ -112,7 +112,7 @@ internal static partial class Interop /// Pointer to buffer where to store the data. /// Size of the buffer. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi, EntryPoint = "extattr_get_file")] - Int32 extattr_get_file32(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int32 nbytes); + public static extern Int32 extattr_get_file32(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int32 nbytes); /// /// Sets an extended attribute value @@ -126,7 +126,7 @@ internal static partial class Interop /// Pointer where the data is stored. /// Size of the data. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi, EntryPoint = "extattr_set_file")] - Int32 extattr_set_file32(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int32 nbytes); + public static extern Int32 extattr_set_file32(string path, attrNamespace attrnamespace, string attrname, IntPtr data, Int32 nbytes); /// /// Deletes an extended attribute value @@ -140,7 +140,7 @@ internal static partial class Interop /// Pointer to buffer where the data is stored. /// Size of the pointer. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi, EntryPoint = "extattr_delete_file")] - Int32 extattr_delete_file32(string path, attrNamespace attrnamespace, string attrname); + public static extern Int32 extattr_delete_file32(string path, attrNamespace attrnamespace, string attrname); /// /// Gets a list of extended attributes that the file has in that namespace @@ -156,7 +156,7 @@ internal static partial class Interop /// Pointer to buffer where to store the list. /// Size of the buffer. [DllImport(Libraries.Libc, SetLastError = true, CharSet = CharSet.Ansi, EntryPoint = "extattr_list_file")] - Int32 extattr_list_file32(string path, attrNamespace attrnamespace, IntPtr data, Int32 nbytes); + public static extern Int32 extattr_list_file32(string path, attrNamespace attrnamespace, IntPtr data, Int32 nbytes); } }