![]() |
|
La función establece el valor de un atributo extendido del archivo.
Extended attributes have two different namespaces: user and root namespace. User namespace is available for all users while root namespace is available only for user with root privileges. xattr operates on user namespace by default, but you can change that using flags argument.
El archivo al que se establecerá el atributo.
Nombre del atributo extendido. El atributo se crea si no existe y se reemplaza si ya existía. Se puede modificar este comportamiento con el parámetro opciones.
El valor del atributo.
Tabla 1. Opciones de xattr soportadas
XATTR_CREATE | La función falla si el atributo extendido ya existía. |
XATTR_REPLACE | La función falla si el atributo extendido no existe. |
XATTR_DONTFOLLOW | Realizar las operaciones en el propio enlace simbólico (no seguirlo). |
XATTR_ROOT | Establecer atributo en el espacio de nombres raíz (y de confianza). Requiere privilegios de root. |
Hosting by: hurra.com
Generated: 2007-01-26 18:01:08