Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Netscape Portable Runtime

From Wikipedia, the free encyclopedia
C programming language library
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
icon
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "Netscape Portable Runtime" – news ·newspapers ·books ·scholar ·JSTOR
(January 2024) (Learn how and when to remove this message)
The topic of this articlemay not meet Wikipedia'sgeneral notability guideline. Please help to demonstrate the notability of the topic by citingreliable secondary sources that areindependent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to bemerged,redirected, ordeleted.
Find sources: "Netscape Portable Runtime" – news ·newspapers ·books ·scholar ·JSTOR
(January 2024) (Learn how and when to remove this message)
(Learn how and when to remove this message)
Netscape Portable Runtime
DeveloperMozilla Foundation /Mozilla Corporation
Stable release
4.38.2[1] Edit this on Wikidata / 11 November 2025; 3 months ago (11 November 2025)
Written inC
Operating systemCross-platform
TypeSoftware library
LicenseMPL
Websitefirefox-source-docs.mozilla.org/nspr/index.html
Repository

TheNetscape Portable Runtime, orNSPR, is a cross-platformabstraction layer library for theC programming language. It provides a uniformAPI for various operating system functions.[2]

History

[edit]

NSPR was originally designed to provide a base for theJava virtual machine inNetscape 5. Over time, it was extended to allow support for additional functionality used for Netscape's server and client software.[3] NSPR continues to be used today by Firefox as well as many of Oracle and Red Hat's server products.[2]

Features

[edit]

Threads

[edit]

NSPR provides athread API. It uses the OS's threading capabilities where possible. It also provides support for sharing memory between threads, as well as creating and using thread pools.Locks,atomics,semaphores, and both cached and uncachedmonitors are provided.[4]

I/O

[edit]

NSPR provides functions for working with files, directories,anonymous pipes andnetwork sockets.[4]

Network addresses

[edit]

NSPR defines anIP-centric network address object. Functions are provided to translateASCII strings (DNS names) into NSPR's network address structures, regardless of whether the addressing technology uses IPv4 or IPv6.[3][4]

Time

[edit]

NSPR makes timing facilities available in two forms: interval timing and calendar functions.

Interval timers are based on a free-running 32-bit resolution timer. Theirepoch and interval can be set as needed.

Calendar times are represented using 64-bit signedUnix time. NSPR provides functions for manipulating and converting timestamps.[3][4]

Memory management

[edit]

NSPR provides API to perform the basicmalloc,calloc,realloc andfree functions. Depending on the platform, the functions may be implemented almost entirely in the NSPR runtime or simplyshims that call immediately into the host operating system's offerings.[3][4]

Linking

[edit]

Support for linking (shared library loading and unloading) forms part of NSPR's feature set. In most cases, this is simply a smoothing over of the facilities offered by the various platform providers.[3][4]

Data structures

[edit]

NSPR provides implementations of acircular linked list and ahash table.[4]

See also

[edit]

References

[edit]
  1. ^"[ANNOUNCE] NSPR 4.38.2 Release". Retrieved11 November 2025.
  2. ^ab"NSPR".Firefox Source Docs. Mozilla. Retrieved2024-01-27.
  3. ^abcdeLarry H."About NSPR".Firefox Source Docs. Mozilla. Retrieved2024-01-27.
  4. ^abcdefg"NSPR API Reference".Firefox Source Docs. Mozilla. Retrieved2024-01-27.

External links

[edit]
Applications and Projects
Mozilla
Labs
Mozilla
Research
Mozilla
Foundation
Firefox
Origins
Frameworks
Components
Typefaces
Discontinued
Forks
Discontinued projects are initalics. Some projects abandoned by Mozilla that are still maintained by third parties are inunderline.
Organization
Foundation
Official affiliates
People
Other topics
Other
Community
Retrieved from "https://en.wikipedia.org/w/index.php?title=Netscape_Portable_Runtime&oldid=1311588378"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp