Implemented Mac OS X setattrlist(2).

This commit is contained in:
2015-04-25 22:27:33 +01:00
parent 3e0f058e89
commit 2922ef832d
2 changed files with 17 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2015-04-25 Natalia Portillo <claunia@claunia.com>
* Interop/Apple/Interop.Apple.getattrlist.cs:
Implemented Mac OS X setattrlist(2).
2015-04-25 Natalia Portillo <claunia@claunia.com>
* Interop/Apple/Interop.Apple.getattrlist.cs:

View File

@@ -743,6 +743,18 @@ internal static partial class Interop
/// <param name="options"><see cref="getAttrListOptions"/>.</param>
[DllImport(Libraries.Libc, SetLastError = true)]
public static extern int getattrlist(string path, AttrList attrList, IntPtr attrBuf, UInt32 attrBufSize, UInt32 options);
/// <summary>
/// Sets the specified lists of attributes for the file system object.
/// Calls to system's setattrlist(2)
/// </summary>
/// <param name="path">Path to the file system object.</param>
/// <param name="attrList">List of attributes to set.</param>
/// <param name="attrBuf">Pointer to a buffer that store the attributes on it.</param>
/// <param name="attrBufSize">Allocated size of <paramref name="attrBuf"/>.</param>
/// <param name="options"><see cref="getAttrListOptions"/>.</param>
[DllImport(Libraries.Libc, SetLastError = true)]
public static extern int setattrlist(string path, AttrList attrList, IntPtr attrBuf, UInt32 attrBufSize, UInt32 options);
}
}