Searched refs:comparf (Results 1 – 6 of 6) sorted by relevance
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | tsearch.c | 68 int(* comparf)_ARG_((const Void_t*, const Void_t*)); member 86 return (*((Treedisc_t*)disc)->comparf)((Void_t*)one,(Void_t*)two); 104 int(*comparf)(const Void_t*,const Void_t*) ) in tsearch() 106 Void_t* tsearch(key, rootp, comparf) in tsearch() 109 int(* comparf)(); 120 Treedisc.comparf = comparf; 140 int(*comparf)(const Void_t*, const Void_t*) ) in tfind() 142 Void_t* tfind(key, rootp, comparf) in tfind() 145 int(* comparf)(); 153 Treedisc.comparf = comparf; [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | ftwalk.c | 35 int (*comparf)(Ftw_t*, Ftw_t*); member 45 return (*state.comparf)(*pf1, *pf2); in ftscompare() 53 ftwalk(const char* path, int (*userf)(Ftw_t*), int flags, int (*comparf)(Ftw_t*, Ftw_t*)) in ftwalk() 75 state.comparf = comparf; in ftwalk() 76 if (!(f = fts_open((char* const*)path, flags, comparf ? ftscompare : 0))) in ftwalk()
|
H A D | fts.c | 60 Compar_f comparf; /* node comparison func */ \ 258 search(FTSENT* e, FTSENT* root, int(*comparf)(FTSENT* const*, FTSENT* const*), int insert) in search() 270 if (!(cmp = (*comparf)(&e, &root)) && !insert) in search() 278 if (root->left && (cmp = (*comparf)(&e, &root->left)) <= 0) in search() 303 if (root->right && (cmp = (*comparf)(&e, &root->right)) >= 0) in search() 698 root = search(f, root, fts->comparf, 1); in order() 746 fts_open(char* const* pathnames, int flags, int (*comparf)(FTSENT* const*, FTSENT* const*)) in fts_open() 754 fts->comparf = comparf; in fts_open() 871 if (!fts->state && fts->comparf) in fts_read() 1002 fts->cpname = fts->cd && !fts->nostat || !fts->children && !fts->comparf; in fts_read() [all …]
|
H A D | mime.c | 817 mp->dict.comparf = order; in mimeopen()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strsearch.c | 40 strsearch(const void* tab, size_t num, size_t siz, Strcmp_f comparf, const char* name, void* contex… in strsearch() argument 46 Strcmp_context_f comparf_c = (Strcmp_context_f)(uintptr_t)comparf; in strsearch() 51 …if (!(v = context ? (*comparf_c)(name, *((char**)mid), context) : (*comparf)(name, *((char**)mid))… in strsearch()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | cdt.h | 124 Dtcompar_f comparf;/* to compare two objects */ member 133 (dc)->comparf = (cmpf), (dc)->hashf = (hshf), \ 314 ((dc)->comparf ? (*(dc)->comparf)((dt), (k1), (k2), (dc)) : \
|