GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIBPDEL(3) FreeBSD Library Functions Manual LIBPDEL(3)

libpdel
multi-purpose C library for embedded applications

PDEL Library (libpdel, -lpdel)

The Packet Design Embedded Library (PDEL) is a C library containing an assorted collection of code useful for developing embedded applications:

For more details, see the individual man pages referenced above.

Unlike Java, libraries written in C cannot presume a commonly accepted standard for handling certain issues like threading and heap allocation. Therefore, libpdel makes certain assumptions which user code must follow.

First, all heap memory in libpdel is allocated through the typed_mem(3) typed memory system. Participation by user code in this system is optional, but it must be done, or not done, consistently.

The libpdel library assumes that pthread(3) is used for user-level threading. In general, libpdel objects are not safe to be called simultaneously from separate threads, or re-entrantly from the same thread, except where explicitly documented. For example, the application must guarantee serialized access to a ghash(3) hash table; the hash table itself does not provide this protection.

Some threads that can end up running user code are subject to cancellation at any cancellation point. For example, a thread created by an http_server(3) object to handle an HTTP request will be canceled if the remote client closes the TCP connection. This implies that any user code which could be running under such a thread must register thread cleanup hooks to release any resources such as heap memory, mutexes, etc., should the thread be canceled.

All libpdel functions are cancel-safe if the thread has cancel type PTHREAD_CANCEL_DEFERRED, except where noted.

Because libpdel in turn depends on other libraries, programs linking with libpdel must also link with these libraries:

  • SSL: -lssl
  • Cryptography: -lcrypto
  • Netgraph (FreeBSD only): -lnetgraph
  • RADIUS (FreeBSD only): -lradius
  • Expat: -L/usr/local/lib -lexpat
  • Pthreads: -pthread (-lpthread on Linux)

Expat is available as FreeBSD port "textproc/expat2" (see ports(7)).

alog(3), app_config(3), base64(3), boundary_fopen(3), count_fopen(3), domain_server(3), filter_fopen(3), fs_mount(3), ghash(3), gtree(3), http_client(3), http_server(3), if_util(3), logfile(3), paction(3), pdel_ppp(3), pevent(3), pthread(3), route_msg(3), rsa_util_sign(3), string_enquote(3), string_fp(3), structs(3), tcp_server(3), timeout_fdopen(3), tinfo(3), tmpl(3), typed_mem(3), uroute(3)

Threads, Single UNIX Specification, Version 2, The Open Group, http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html.

James Clark, Expat XML Parser, http://sourceforge.net/projects/expat/.

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

Archie Cobbs ⟨archie@freebsd.org⟩
Mark Gooderum ⟨markpdel@jumpweb.com⟩

Some functionality is only supported under FreeBSD.

Please report bugs to the author.

October 25, 2006 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.