mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
doc: rewrite examples for extended attributes
This commit is contained in:
parent
34d66374cd
commit
babeca2dcd
1 changed files with 6 additions and 9 deletions
|
@ -277,18 +277,15 @@ The backend decides which attributes are available during initialization,
|
|||
and all bookmark files share the same set of attributes.
|
||||
All attributes have a @code{bookmarkfs.} name prefix.
|
||||
|
||||
For example, to get the GUID of a bookmark file (Firefox backend) on GNU/Linux:
|
||||
For example, to get the GUID of a bookmark file (Firefox backend):
|
||||
|
||||
@example
|
||||
$ getfattr --absolute-names -n user.bookmarkfs.guid \
|
||||
> /mnt/firefox/bookmarks/toolbar/Example
|
||||
@end example
|
||||
// Linux
|
||||
len = fgetxattr(fd, "user.bookmarkfs.guid", buf, sizeof(buf));
|
||||
|
||||
The FreeBSD equivalent:
|
||||
|
||||
@example
|
||||
$ getextattr user bookmarkfs.guid \
|
||||
> /mnt/firefox/bookmarks/toolbar/Example
|
||||
// FreeBSD
|
||||
len = extattr_get_fd(fd, EXTATTR_NAMESPACE_USER, "bookmarkfs.guid",
|
||||
buf, sizeof(buf));
|
||||
@end example
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue