mirror of
https://github.com/claunia/Claunia.IO.git
synced 2025-12-16 19:24:44 +00:00
Implemented Mac OS X setattrlist(2).
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user