Err, how often are service lookups done? How performance critical is this, really? Seems to me an application doing a large number of lookups is best off just slurping in /etc/services itself (Or just keep its own service list) and building its own hash table in RAM or whatnot. (Which IIRC is what stuff like nmap and ethereal do...) Benchmark a real application first, then optimize. ;P
Attachment:
signature.asc
Description: This is a digitally signed message part
-- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list