Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2000 11:13:44 +0200
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        arch@freebsd.org
Subject:   Re: Importing tsearch routines.
Message-ID:  <20000701111344.S307@daemon.ninth-circle.org>
In-Reply-To: <20000630153151.J275@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Jun 30, 2000 at 03:31:51PM -0700
References:  <20000630153151.J275@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-On [20000701 04:01], Alfred Perlstein (bright@wintelcom.net) wrote:
>I would like to import Open/NetBSD's tsearch routines into libc:
>
>http://www.flame.org/cgi-bin/uncgi/hman?page=tsearch&sect=&arch=i386
>
>tsearch seems to be in most every other libc out there and is quite
>handy.
>
>I have it ready for inclusion, and would like to backport to 4.0
>asap, any objections?

No.

SUSv2 search.h:

int    hcreate(size_t);
void   hdestroy(void);
ENTRY *hsearch(ENTRY, ACTION);
void   insque(void *, void *);
void  *lfind(const void *, const void *, size_t *, size_t, int (*)(const void *, const void *));
void  *lsearch(const void *, void *, size_t *, size_t, int (*)(const void *, const void *));
void   remque(void *);
void  *tdelete(const void *, void **, int(*)(const void *, const void *));
void  *tfind(const void *, void *const *, int(*)(const void *, const void *));
void  *tsearch(const void *, void **, int(*)(const void *, const void *));
void   twalk(const void *, void (*)(const void *, VISIT, int ));

Any chance of implementing the rest as well? =)

Obtw, still waiting for the kblob/filter manpages. *ducks 'n runs*

-- 
Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
Documentation nutter/C-rated Coder BSD: Technical excellence at its best  
The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>;
I believe because it is impossible...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000701111344.S307>