File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / dsap / common / file_cpy.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#include "quipu/util.h"
#include "quipu/attrvalue.h"

struct file_syntax * fileattr_cpy (fs)
struct file_syntax * fs;
{
	fs->fs_ref++;
	return (fs);
}

file_cmp (a,b)
struct file_syntax *a, *b;
{
	if ((a->fs_attr != NULLAttrV) && (b->fs_attr != NULLAttrV))
		return (AttrV_cmp (a->fs_attr,b->fs_attr));

	/* just compare file name for now */
	if (a->fs_name == NULLCP)
		return (2);
	if (b->fs_name == NULLCP)
		return (2);

	return (pstrcmp (a->fs_name,b->fs_name));
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.