You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FreeBSD uses the `extattr_*` calls for setting extended attributes. Unlike like, the namespace for the extattrs are not determined by prefix of the attribute
// if we don't have permission to list attributes in system namespace, this returns -1 and skips it
967
+
varsize=extattr_list_fd(srcFD, namespace,nil,0)
968
+
if size >0{
969
+
// we are allocating size + 1 bytes here such that we have room for the last null terminator
970
+
trywithUnsafeTemporaryAllocation(of:CChar.self, capacity: size +1){ keyList in
971
+
// The list of entry returns by `extattr_list_*` contains the length(1 byte) of the attribute name, follow by the Non-NULL terminated attribute name. (See exattr(2))
0 commit comments