Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setxattr (0.03 sec)

  1. docs/debugging/xattr/main.go

    var (
    	path, name string
    	value      uint64
    	set, list  bool
    )
    
    func getxattr(path, name string) (uint64, error) {
    	buf, err := xattr.LGet(path, name)
    	if err != nil {
    		return 0, err
    	}
    
    	return binary.LittleEndian.Uint64(buf[:8]), nil
    }
    
    func listxattr(path string) ([]string, error) {
    	return xattr.LList(path)
    }
    
    func setxattr(path, name string, value uint64) error {
    	data := make([]byte, 8)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Dec 29 23:52:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            // Test setAttr
            tag.setAttr("data-role", "button");
            assertTrue(tag.toString().contains("attrName=data-role"));
            assertTrue(tag.toString().contains("attrValue=button"));
    
            // Test overwriting values
            tag.setId("new-id");
            tag.setCss("new-class");
            tag.setAttr("role", "link");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/PrunedTag.java

         * Sets a custom attribute name-value pair that this pruned tag should match.
         *
         * @param name the attribute name to match
         * @param value the attribute value to match
         */
        public void setAttr(final String name, final String value) {
            attrName = name;
            attrValue = value;
        }
    
        @Override
        public String toString() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top