|
|
1.1 ! root 1: #include "quipu/util.h" ! 2: #include "quipu/attrvalue.h" ! 3: ! 4: struct file_syntax * fileattr_cpy (fs) ! 5: struct file_syntax * fs; ! 6: { ! 7: fs->fs_ref++; ! 8: return (fs); ! 9: } ! 10: ! 11: file_cmp (a,b) ! 12: struct file_syntax *a, *b; ! 13: { ! 14: if ((a->fs_attr != NULLAttrV) && (b->fs_attr != NULLAttrV)) ! 15: return (AttrV_cmp (a->fs_attr,b->fs_attr)); ! 16: ! 17: /* just compare file name for now */ ! 18: if (a->fs_name == NULLCP) ! 19: return (2); ! 20: if (b->fs_name == NULLCP) ! 21: return (2); ! 22: ! 23: return (pstrcmp (a->fs_name,b->fs_name)); ! 24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.