Made AAIP 1.0 official, mentioned it in aaip source files,

and claimed copyright and GPLv2 on aaip source files.
This commit is contained in:
2009-02-19 09:36:22 +01:00
parent 0e0ecc1d00
commit 97d885fc9a
6 changed files with 112 additions and 103 deletions

View File

@ -5,11 +5,14 @@
Idle placeholder for:
Arbitrary Attribute Interchange Protocol , system adapter for getting and
setting of ACLs and XFS-style Extended Attributes.
setting of ACLs and xattr.
See aaip-os-linux.c for a real implementation of this interface.
To be included by aaip_0_2.c
Copyright (c) 2009 Thomas Schmitt, libburnia project, GPLv2
*/
#include <ctype.h>

View File

@ -3,9 +3,12 @@
aaip-os-freebsd.c
Arbitrary Attribute Interchange Protocol , system adapter for getting and
setting of ACLs and XFS-style Extended Attributes.
setting of ACLs and ixattr.
To be included by aaip_0_2.c
Copyright (c) 2009 Thomas Schmitt, libburnia project, GPLv2
*/
#include <ctype.h>

View File

@ -3,9 +3,12 @@
aaip-os-linux.c
Arbitrary Attribute Interchange Protocol , system adapter for getting and
setting of ACLs and XFS-style Extended Attributes.
setting of ACLs and xattr.
To be included by aaip_0_2.c
Copyright (c) 2009 Thomas Schmitt, libburnia project, GPLv2
*/
#include <ctype.h>

View File

@ -1,12 +1,14 @@
/*
Arbitrary Attribute Interchange Protocol , AAIP version 0.2
Demonstration implementation of encoding and decoding EA and ACL.
Arbitrary Attribute Interchange Protocol , AAIP versions 0.2 and 1.0.
Implementation of encoding and decoding xattr and ACL.
See test/aaip_0_2.h
http://libburnia-project.org/wiki/AAIP
Copyright (c) 2009 Thomas Schmitt, libburnia project, GPLv2
*/
#include <ctype.h>
@ -242,7 +244,7 @@ static ssize_t aaip_encode_acl_text(char *acl_text, mode_t st_mode,
/* Convert an ACL text as of acl_to_text(3) into the value of an Arbitrary
Attribute. According to AAIP 0.2 this value is to be stored together with
Attribute. According to AAIP this value is to be stored together with
an empty name.
@param acl_text The ACL in long text form
@param st_mode The stat(2) permission bits to be used with flag bit3

View File

@ -1,13 +1,15 @@
/*
Arbitrary Attribute Interchange Protocol , AAIP version 0.2
Demonstration program for encoding and decoding EA and ACL.
Arbitrary Attribute Interchange Protocol , AAIP versions 0.2 and 1.0.
Implementation for encoding and decoding xattr and ACL.
See http://libburnia-project.org/wiki/AAIP
or doc/susp_aaip_0_2.txt
or doc/susp_aaip_1_0.txt
test/aaip_0.2.h - Public declarations
test/aaip_0_2.h - Public declarations
Copyright (c) 2009 Thomas Schmitt, libburnia project, GPLv2
*/
@ -39,7 +41,7 @@ size_t aaip_encode(size_t num_attrs, char **names,
/* ------ ACL representation ------ */
/* Convert an ACL from long text form into the value of an Arbitrary
Attribute. According to AAIP 0.2 this value is to be stored together with
Attribute. According to AAIP this value is to be stored together with
an empty name.
@param acl_text The ACL in long text form
@param st_mode The stat(2) permission bits to be used with flag bit3
@ -61,7 +63,7 @@ int aaip_encode_acl(char *acl_text, mode_t st_mode,
/* Convert an "access" and "default" ACL from long text form into the value
of an Arbitrary Attribute. According to AAIP 0.2 this value is to be stored
of an Arbitrary Attribute. According to AAIP this value is to be stored
together with an empty name.
@param a_acl_text The "access" ACL in long text form.
Submit NULL if there is no such ACL to be encoded.
@ -414,7 +416,7 @@ int aaip_get_decoded_attrs(struct aaip_state **handle, size_t *num_attrs,
/* ------ ACL representation ------ */
/* Convert an AAIP 0.2 ACL attribute value into the long text form of ACL.
/* Convert an AAIP ACL attribute value into the long text form of ACL.
@param data The raw data to decode
@param num_data Number of data bytes provided
@param consumed Returns the number of consumed data bytes