NSPR

Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc-like functions. The API is used in the Mozilla clients, many of Red Hat’s and Oracle’s server applications, and other software offerings.

Documentation

About NSPR

This topic describes, in general terms, the goals of NSPR and a bit about how it does it.

NSPR API Reference

The reference describes each API public macro, structure and function in the NSPR API.

NSPR build instructions

How to checkout and build from source.

NSPR listing

All NSPR pages

Getting NSPR

NSPR is available in various source and binary packages, depending on your platform:

  • Windows: Build the source package, using the NSPR build instructions.

  • Mac: Install the MacPorts nspr package, or the Homebrew nspr package.

  • Ubuntu: Install the libnspr4-dev package via apt-get.

  • Debian: Install the libnspr4-dev package via apt-get.

  • openSUSE Linux: Install one or more of the following via yast or zypper :

    • mozilla-nspr : Binary libraries for your platform

    • mozilla-nspr-32bit : Binary libraries needed to run 32-bit programs on a 64-bit OS

    • mozilla-nspr-devel : Files needed (in addition to the above libraries) to compile programs using NSPR

    • mozilla-nspr-debuginfo : Debug information (including build symbols) for package mozilla-nspr

    • mozilla-nspr-debuginfo-32bit : Debug information (including build symbols) for package mozilla-nspr-32bit

    • mozilla-nspr-debugsource : Debug sources for all of the above

Community

View Mozilla forums: