Found 362 pages:
# | Page | Tags and summary |
---|---|---|
1 | NSPR | 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. | ||
2 | About NSPR | |
NetScape Portable Runtime (NSPR) provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free) and shared library linking. | ||
3 | Creating a Cookie Log | Cookies, Necko, cookies |
Creating a cookie log is often necessary to troubleshoot problems with Firefox's cookie handling. If you are reading this, you have probably been directed here from a bug report. Please follow the instructions below to run Firefox with cookie logging enabled. | ||
4 | Index | |
Found 362 pages: | ||
5 | NSPR API Reference | NSPR, NSPR_API_Reference |
No summary! | ||
6 | Anonymous Shared Memory | IPC, NSPR, NSPR_API_Reference, Shared Memory |
This chapter describes the NSPR API for anonymous shared memory. | ||
7 | Atomic Operations | NSPR, NSPR_API_Reference |
This chapter describes the global functions you use to perform atomic operations. The functions define a portable API that may be reliably used in any environment. Since not all operating environments provide access to such functions, their performance may vary considerably. | ||
8 | Cached Monitors | NSPR, NSPR_API_Reference |
This chapter describes the functions you use when you work with cached monitors. Unlike a plain monitor, a cached monitor is associated with the address of a protected object, and the association is maintained only while the protection is needed. This arrangement allows a cached monitor to be associated with another object without preallocating a monitor for all objects. A hash table is used to quickly map addresses to their respective monitors. The system automatically enlarges the hash table as needed. | ||
9 | Condition Variables | NSPR, NSPR_API_Reference |
This chapter describes the API for creating and destroying condition variables, notifying condition variables of changes in monitored data, and making a thread wait on such notification. | ||
10 | Date and Time | NSPR, NSPR_API_Reference |
This chapter describes the date and time functions in NSPR. | ||
11 | Dynamic Library Linking | NSPR_API, NSPR_API_Reference |
This section describes NSPR's programming interface to load, unload and resolve symbols in dynamic libraries. It also provides a method by which to condition symbols of statically linked code so that to other clients it appears as though they are dynamically loaded. | ||
12 | Floating Point Number to String Conversion | NSPR, NSPR_API_Reference |
NSPR provides functions that convert double-precision floating point numbers to and from their character string representations. | ||
13 | Hash Tables | NSPR, NSPR_API_Reference |
This chapter describes the hash table functions in the plds (portable library — data structures) library of NSPR. The hash table library functions are declared in the header file plhash.h. |
||
14 | I/O Functions | NSPR, NSPR_API_Reference |
This chapter describes the NSPR functions used to perform operations such as system access, normal file I/O, and socket (network) I/O. | ||
15 | I/O Types | NSPR, NSPR_API_Reference |
This chapter describes the most common NSPR types, enumerations, and structures used with the functions described in I/O Functions and Network Addresses. These include the types used for system access, normal file I/O, and socket (network) I/O. | ||
16 | IPC Semaphores | IPC, NSPR, NSPR_API_Reference |
This chapter describes the NSPR API for using interprocess communication semaphores. | ||
17 | Interval Timing | NSPR, NSPR_API_Reference |
NSPR defines a platform-dependent type, PRIntervalTime , for timing intervals of fewer than approximately 6 hours. This chapter describes PRIntervalTime and the functions that allow you to use it for timing purposes: |
||
18 | Introduction to NSPR | NSPR, NSPR_API_Reference |
The Netscape Portable Runtime (NSPR) API allows compliant applications to use system facilities such as threads, thread synchronization, I/O, interval timing, atomic operations, and several other low-level services in a platform-independent manner. This chapter introduces key NSPR programming concepts and illustrates them with sample code. | ||
19 | Linked Lists | NSPR, NSPR_API_Reference |
This chapter describes the NSPR API for managing linked lists. The API is a set of macros for initializing a circular (doubly linked) list, inserting and removing elements from the list. The macros are not thread safe. The caller must provide for mutually-exclusive access to the list, and for the nodes being added and removed from the list. | ||
20 | Locks | NSPR, NSPR_API_Reference |
This chapter describes the NSPR API for creation and manipulation of a mutex of type PRLock . |
||
21 | Logging | NSPR, NSPR_API_Reference |
This chapter describes the global functions you use to perform logging. NSPR provides a set of logging functions that conditionally write printf() style strings to the console or to a log file. NSPR uses this facility itself for its own development debugging purposes. |
||
22 | Long Long (64-bit) Integers | NSPR, NSPR_API_Reference |
No summary! | ||
23 | Memory Management Operations | NSPR, NSPR_API_Reference |
This chapter describes the global functions and macros you use to perform memory management. NSPR provides heap-based memory management functions that map to the familiar malloc() , calloc() , realloc() , and free() . |
||
24 | Monitors | NSPR, NSPR_API_Reference |
In addition to the mutex type PRLock , NSPR provides a special type, PRMonitor , for use in Java programming. This chapter describes the NSPR API for creation and manipulation of a mutex of type PRMonitor . |
||
25 | NSPR Error Handling | NSPR, NSPR_API_Reference |
This chapter describes the functions for retrieving and setting errors and the error codes set by NSPR. | ||
26 | NSPR LOG FILE | NSPR, NSPR_API_Reference |
This environment variable specifies the file to which log messages are directed. | ||
27 | NSPR LOG MODULES | NSPR, NSPR_API_Reference |
This environment variable specifies which log modules have logging enabled. | ||
28 | NSPR Types | NSPR, NSPR_API_Reference |
This chapter describes the most common NSPR types. Other chapters describe more specialized types when describing the functions that use them. | ||
29 | Named Shared Memory | IPC, NSPR, NSPR_API_Reference, Shared Memory |
The chapter describes the NSPR API for named shared memory. Shared memory allows multiple processes to access one or more common shared memory regions, using it as an interprocess communication channel. The NSPR shared memory API provides a cross-platform named shared-memory interface that is modeled on similar constructs in the Unix and Windows operating systems. | ||
30 | Network Addresses | NSPR, NSPR_API_Reference |
This chapter describes the NSPR types and functions used to manipulate network addresses. | ||
31 | PLHashAllocOps | NSPR_API, NSPR_API_Reference |
Users of the hash table functions can provide their own memory allocation functions. A pair of functions is used to allocate and tree the table, and another pair of functions is used to allocate and free the table entries. | ||
32 | PLHashComparator | NSPR_API, NSPR_API_Reference |
PLHashComparator is a function type that compares two values of an unspecified type. It returns a nonzero value if the two values are equal, and 0 if the two values are not equal. PLHashComparator defines the meaning of equality for the unspecified type. |
||
33 | PLHashEntry | NSPR_API, NSPR_API_Reference |
PLHashEntry is a structure that represents an entry in the hash table. An entry has a key and a value, represented by the following fields in the PLHashEntry structure. |
||
34 | PLHashEnumerator | NSPR_API, NSPR_API_Reference |
PLHashEnumerator is a function type used in the enumerating a hash table. When all the table entries are enumerated, each entry is passed to a user-specified function of type PLHashEnumerator with the hash table entry, an integer index, and an arbitrary piece of user data as argument. |
||
35 | PLHashFunction | NSPR_API, NSPR_API_Reference |
PLHashNumber is a function type that maps the key of a hash table entry to a hash number. |
||
36 | PLHashNumber | NSPR_API, NSPR_API_Reference |
PLHashNumber is an unsigned 32-bit integer. PLHashNumber is the data type of the return value of a hash function. A hash function maps a key to a hash number, which is then used to compute the index of the bucket. |
||
37 | PLHashTable | NSPR_API, NSPR_API_Reference |
The opaque PLHashTable structure represents a hash table. Entries in the table have the type PLHashEntry and are organized into buckets. The number of buckets in a hash table may be changed by the library functions during the lifetime of the table to optimize speed and space. |
||
38 | PL_CompareStrings | NSPR_API, NSPR_API_Reference |
Compares two character strings. | ||
39 | PL_CompareValues | NSPR_API, NSPR_API_Reference |
Compares two void * values numerically. |
||
40 | PL_HashString | NSPR_API, NSPR_API_Reference |
A general-purpose hash function for character strings. | ||
41 | PL_HashTableAdd | NSPR_API, NSPR_API_Reference |
Add a new entry with the specified key and value to the hash table. | ||
42 | PL_HashTableDestroy | NSPR_API, NSPR_API_Reference |
Frees the table and all the entries. | ||
43 | PL_HashTableEnumerateEntries | NSPR_API, NSPR_API_Reference |
Enumerates all the entries in the hash table, invoking a specified function on each entry. | ||
44 | PL_HashTableLookup | NSPR_API, NSPR_API_Reference |
Looks up the entry with the specified key and return its value. | ||
45 | PL_HashTableRemove | NSPR_API, NSPR_API_Reference |
Removes the entry with the specified key from the hash table. | ||
46 | PL_NewHashTable | NSPR_API, NSPR_API_Reference |
Create a new hash table. | ||
47 | PL_strcpy | NSPR_API, NSPR_API_Reference |
Copies a string, up to and including the trailing '\0' , into a destination buffer. |
||
48 | PL_strdup | NSPR_API, NSPR_API_Reference |
Returns a pointer to a new memory node in the NSPR heap containing a copy of a specified string. | ||
49 | PL_strfree | NSPR_API, NSPR_API_Reference |
Frees memory allocated by PL_strdup. | ||
50 | PL_strlen | NSPR_API, NSPR_API_Reference |
Returns the length of a specified string (not including the trailing '\0' ) |
||
51 | PR ConvertIPv4AddrToIPv6 | NSPR, NSPR_API, NSPR_API_Reference |
Converts an IPv4 address into an (IPv4-mapped) IPv6 address. | ||
52 | PR EnumerateAddrInfo | |
Enumerates each of the possible network addresses of a PRAddrInfo structure, acquired from PR_GetAddrInfoByName . |
||
53 | PR FreeAddrInfo | |
Destroys the PRAddrInfo structure returned by PR_GetAddrInfoByName . |
||
54 | PR GetAddrInfoByName | NSPR, NSPR_API_Reference |
Looks up a host by name. Equivalent to getaddrinfo(host, NULL, ...) of RFC 3493. |
||
55 | PR GetCanonNameFromAddrInfo | NSPR, NSPR_API_Reference |
Extracts the canonical name of the hostname passed to PR_GetAddrInfoByName . |
||
56 | PR INIT CLIST | NSPR_API, NSPR_API_Reference |
Initializes a circular list. | ||
57 | PR ImportTCPSocket | NSPR, NSPR_API_Reference |
Imports a native TCP socket into NSPR. | ||
58 | PR NewProcessAttr | NSPR_API, NSPR_API_Reference |
Creates a process attributes structure. | ||
59 | PR OpenUDPSocket | |
Creates a new UDP socket of the specified address family. | ||
60 | PRAccessHow | NSPR_API, NSPR_API_Reference |
This is the declaration for the enumeration PRAccessHow , used in the how parameter of PR_Access : |
||
61 | PRBool | NSPR_API, NSPR_API_Reference |
Boolean value. | ||
62 | PRCList | NSPR_API, NSPR_API_Reference |
A circular linked list. | ||
63 | PRCallOnceFN | NSPR_API, NSPR_API_Reference |
Defines the signature of the function a client must implement. | ||
64 | PRCallOnceType | NSPR_API, NSPR_API_Reference |
Structure for tracking initialization. | ||
65 | PRCondVar | NSPR_API, NSPR_API_Reference |
Structure for a condition variable. | ||
66 | PRDescIdentity | NSPR_API, NSPR_API_Reference |
The identity of a file descriptor's layer. | ||
67 | PRDir | NSPR_API, NSPR_API_Reference |
Directory structure used with Directory I/O Functions. | ||
68 | PRErrorCode | NSPR_API, NSPR_API_Reference |
Type for error codes that can be retrieved with PR_GetError . You can also set your own errors using PR_SetError . |
||
69 | PRExplodedTime | NSPR_API, NSPR_API_Reference |
A clock/calendar representation of times. | ||
70 | PRFileDesc | NSPR_API, NSPR_API_Reference |
A file descriptor used to represent any open file, such as a normal file, an end point of a pipe, or a socket (end point of network communication). | ||
71 | PRFileInfo | NSPR_API, NSPR_API_Reference |
File information structure used with PR_GetFileInfo and PR_GetOpenFileInfo . |
||
72 | PRFileInfo64 | NSPR_API, NSPR_API_Reference |
File information structure used with PR_GetFileInfo64 and PR_GetOpenFileInfo64 . |
||
73 | PRFileMap | NSPR_API, NSPR_API_Reference |
Type returned by PR_CreateFileMap and passed to PR_MemMap and PR_CloseFileMap . |
||
74 | PRFilePrivate | NSPR_API, NSPR_API_Reference |
Layer-dependent implementation data. | ||
75 | PRFileType | NSPR_API, NSPR_API_Reference |
Type for enumerators used in the type field of the PRFileInfo and PRFileInfo64 structures. |
||
76 | PRFloat64 | NSPR_API, NSPR_API_Reference |
The NSPR floating-point type is always 64 bits. | ||
77 | PRHostEnt | NSPR_API, NSPR_API_Reference |
A structure that defines a list of network addresses. This structure is output from PR_GetHostByName and PR_GetHostByAddr and passed to PR_EnumerateHostEnt . Clients should avoid directly accessing any of the structure's fields. |
||
78 | PRIOMethods | NSPR_API, NSPR_API_Reference |
The table of I/O methods used in a file descriptor. | ||
79 | PRIPv6Addr | NSPR_API, NSPR_API_Reference |
Type used in the ipv6.ip field of the PRNetAddr structure. |
||
80 | PRInt16 | API, NSPR_API, NSPR_API_Reference, Reference |
Guaranteed to be a signed 16-bit integer on all platforms. | ||
81 | PRInt32 | NSPR_API, NSPR_API_Reference |
Guaranteed to be a signed 32-bit integer on all platforms. | ||
82 | PRInt64 | NSPR_API, NSPR_API_Reference |
Guaranteed to be a signed 64-bit integer on all platforms. | ||
83 | PRInt8 | NSPR_API, NSPR_API_Reference |
Guaranteed to be a signed 8-bit integer on all platforms. | ||
84 | PRIntervalTime | NSPR_API, NSPR_API_Reference |
A platform-dependent type that represents a monotonically increasing integer--the NSPR runtime clock. | ||
85 | PRIntn | NSPR_API, NSPR_API_Reference |
This type is one of the most appropriate for automatic variables. It is guaranteed to be at least 16 bits, though various architectures may define it to be wider (for example, 32 or even 64 bits). This types is never valid for fields of a structure. | ||
86 | PRJob | NSPR_API, NSPR_API_Reference, Reference |
No summary! | ||
87 | PRJobFn | NSPR_API, NSPR_API_Reference |
No summary! | ||
88 | PRJobIoDesc | NSPR_API, NSPR_API_Reference |
No summary! | ||
89 | PRLibrary | NSPR_API, NSPR_API_Reference |
An opaque structure identifying a library. | ||
90 | PRLinger | NSPR_API, NSPR_API_Reference |
Structure used with the PR_SockOpt_Linger socket option to specify the time interval (in PRIntervalTime units) to linger on closing a socket if any data remain in the socket send buffer. |
||
91 | PRLock | NSPR_API, NSPR_API_Reference |
A mutual exclusion lock. | ||
92 | PRLogModuleInfo | NSPR, NSPR_API_Reference |
The PRLogModuleInfo structure controls logging from within your application. To log your program's activity, create a PRLogModuleInfo structure using PR_NewLogModule . |
||
93 | PRLogModuleLevel | NSPR, NSPR_API_Reference |
The enumerated type PRLogModuleLevel defines levels of logging available to application programs. |
||
94 | PRMcastRequest | NSPR_API, NSPR_API_Reference |
Structure used to specify values for the PR_SockOpt_AddMember and PR_SockOpt_DropMember socket options that define a request to join or leave a multicast group. |
||
95 | PRMonitor | NSPR_API, NSPR_API_Reference |
An opaque structure managed entirely by the client. Clients create them when needed and must destroy them when no longer needed. | ||
96 | PRNetAddr | NSPR_API, NSPR_API_Reference |
Type used with Socket Manipulation Functions to specify a network address. | ||
97 | PRPackedBool | NSPR_API, NSPR_API_Reference |
Packed Boolean value. | ||
98 | PRProcess | NSPR_API, NSPR_API_Reference |
Represents a process. | ||
99 | PRProcessAttr | NSPR_API, NSPR_API_Reference |
Represents the attributes of a new process. | ||
100 | PRProtoEnt | NSPR_API, NSPR_API_Reference |
Protocol entry returned by PR_GetProtoByName and PR_GetProtoByNumber . |
||
101 | PRPtrdiff | NSPR_API, NSPR_API_Reference |
Signed pointer difference type. | ||
102 | PRSeekWhence | NSPR_API, NSPR_API_Reference |
Specifies how to interpret the offset parameter in setting the file pointer associated with the fd parameter for the PR_Seek and PR_Seek64 functions. |
||
103 | PRSize | NSPR_API, NSPR_API_Reference |
A type for representing the size of an object (not the size of a pointer). This is the same as the corresponding type in libc . |
||
104 | PRSockOption | NSPR_API, NSPR_API_Reference |
Enumeration type used in the option field of PRSocketOptionData to form the name portion of a name-value pair. |
||
105 | PRSocketOptionData | NSPR_API, NSPR_API_Reference |
Type for structure used with PR_GetSocketOption and PR_SetSocketOption to specify options for file descriptors that represent sockets. |
||
106 | PRStaticLinkTable | NSPR_API, NSPR_API_Reference |
A static link table entry can be created by a client of the runtime so that other clients can access static or dynamic libraries transparently. The basic function on a dynamic library is to acquire a pointer to a function that the library exports. If, during initialization, such entries are manually created, then future attempts to link to the symbols can be treated in a consistent fashion. | ||
107 | PRStatus | NSPR_API, NSPR_API_Reference |
Type for status code returned by some functions. | ||
108 | PRThread | NSPR_API, NSPR_API_Reference |
An NSPR thread. | ||
109 | PRThreadPool | NSPR_API, NSPR_API_Reference |
No summary! | ||
110 | PRThreadPriority | NSPR_API, NSPR_API_Reference |
A thread's priority setting. | ||
111 | PRThreadPrivateDTOR | NSPR_API, NSPR_API_Reference |
The destructor function passed to PR_NewThreadPrivateIndex that is associated with the resulting thread private index. | ||
112 | PRThreadScope | NSPR_API, NSPR_API_Reference |
The scope of an NSPR thread, specified as a parameter to PR_CreateThread or returned by PR_GetThreadScope . |
||
113 | PRThreadState | NSPR_API, NSPR_API_Reference |
A thread's thread state is either joinable or unjoinable. | ||
114 | PRThreadType | NSPR_API, NSPR_API_Reference |
The type of an NSPR thread, specified as a parameter to PR_CreateThread . |
||
115 | PRTime | NSPR_API, NSPR_API_Reference |
A representation of absolute times. | ||
116 | PRTimeParamFn | NSPR_API, NSPR_API_Reference |
This type defines a callback function to calculate and return the time parameter offsets from a calendar time object in GMT. | ||
117 | PRTimeParameters | NSPR_API, NSPR_API_Reference |
A representation of time zone information. | ||
118 | PRUint16 | NSPR_API, NSPR_API_Reference |
Guaranteed to be an unsigned 16-bit integer on all platforms. | ||
119 | PRUint32 | NSPR_API, NSPR_API_Reference |
Guaranteed to be an unsigned 32-bit integer on all platforms. | ||
120 | PRUint64 | NSPR_API, NSPR_API_Reference |
Guaranteed to be an unsigned 64-bit integer on all platforms. | ||
121 | PRUint8 | NSPR_API, NSPR_API_Reference |
Guaranteed to be an unsigned 8-bit integer on all platforms. There is no type equivalent to a plain char . |
||
122 | PRUintn | NSPR_API, NSPR_API_Reference |
This (unsigned) type is one of the most appropriate for automatic variables. It is guaranteed to be at least 16 bits, though various architectures may define it to be wider (for example, 32 or even 64 bits). This types is never valid for fields of a structure. | ||
123 | PRUnichar | NSPR, NSPR_API_Reference |
An unsigned 16-bit type, like char in Java or the "characters" of a JavaScript string defined in /mozilla/xpcom/base/nscore.h. |
||
124 | PRUptrdiff | NSPR_API, NSPR_API_Reference |
Unsigned pointer difference type. | ||
125 | PR_APPEND_LINK | NSPR_API, NSPR_API_Reference |
Appends an element to the end of a list. | ||
126 | PR_ASSERT | NSPR_API, NSPR_API_Reference |
Terminates execution when a given expression is FALSE . |
||
127 | PR_Abort | NSPR_API, NSPR_API_Reference |
Aborts the process in a nongraceful manner. | ||
128 | PR_Accept | NSPR_API, NSPR_API_Reference |
Accepts a connection on a specified socket. | ||
129 | PR_AcceptRead | NSPR_API, NSPR_API_Reference |
Accepts a new connection and receives a block of data. | ||
130 | PR_Access | NSPR_API, NSPR_API_Reference |
Determines the accessibility of a file. | ||
131 | PR_AtomicAdd | NSPR, NSPR_API_Reference |
The function has the following parameters: | ||
132 | PR_AtomicDecrement | NSPR_API, NSPR_API_Reference |
Atomically decrements a 32-bit value. | ||
133 | PR_AtomicIncrement | NSPR_API, NSPR_API_Reference |
Atomically increments a 32-bit value. | ||
134 | PR_AtomicSet | NSPR_API, NSPR_API_Reference |
Atomically sets a 32-bit value and return its previous contents. | ||
135 | PR_AttachSharedMemory | NSPR_API, NSPR_API_Reference |
Attaches a memory segment previously opened with PR_OpenSharedMemory and maps it into the process memory space. |
||
136 | PR_AttachThread | NSPR_API, NSPR_API_Reference |
The opaque PRThreadStack structure is only used in the third argument "PRThreadStack *stack " to the PR_AttachThread function. The 'stack ' argument is now obsolete and ignored by PR_AttachThread . You should pass NULL as the 'stack' argument to PR_AttachThread . |
||
137 | PR_AttachThread | NSPR_API, NSPR_API_Reference |
Associates a PRThread object with an existing native thread. |
||
138 | PR_Available | NSPR_API, NSPR_API_Reference |
Determines the number of bytes (expressed as a 32-bit integer) that are available for reading beyond the current read-write pointer in a specified file or socket. | ||
139 | PR_Available64 | NSPR_API, NSPR_API_Reference |
Determines the number of bytes (expressed as a 32-bit integer) that are available for reading beyond the current read-write pointer in a specified file or socket. | ||
140 | PR_Bind | NSPR_API, NSPR_API_Reference |
Binds an address to a specified socket. | ||
141 | PR_BlockClockInterrupts | NSPR_API, NSPR_API_Reference |
Blocks the timer signal used for preemptive scheduling. | ||
142 | PR_CALLBACK | NSPR_API, NSPR_API_Reference |
Used to define pointers to functions that will be implemented by the client but called from a (different) shared library. | ||
143 | PR_CEnterMonitor | NSPR_API, NSPR_API_Reference |
Enters the lock associated with a cached monitor. | ||
144 | PR_CExitMonitor | NSPR_API, NSPR_API_Reference |
Decrement the entry count associated with a cached monitor. | ||
145 | PR_CLIST_IS_EMPTY | NSPR_API, NSPR_API_Reference |
Checks for an empty circular list. | ||
146 | PR_CNotify | NSPR_API, NSPR_API_Reference |
Notify a thread waiting on a change in the state of monitored data. | ||
147 | PR_CNotifyAll | NSPR_API, NSPR_API_Reference |
Notifies all the threads waiting for a change in the state of monitored data. | ||
148 | PR_CWait | NSPR_API, NSPR_API_Reference |
Wait for a notification that a monitor's state has changed. | ||
149 | PR_CallOnce | NSPR_API, NSPR_API_Reference |
Ensures that subsystem initialization occurs only once. | ||
150 | PR_Calloc | NSPR_API, NSPR_API_Reference |
Allocates zeroed memory from the heap for a number of objects of a given size. | ||
151 | PR_CancelJob | NSPR_API, NSPR_API_Reference |
Causes a previously queued job to be canceled. | ||
152 | PR_Cleanup | NSPR_API, NSPR_API_Reference |
Coordinates a graceful shutdown of NSPR. | ||
153 | PR_ClearInterrupt | NSPR_API, NSPR_API_Reference |
Clears the interrupt request for the calling thread. | ||
154 | PR_Close | NSPR_API, NSPR_API_Reference |
Closes a file descriptor. | ||
155 | PR_CloseDir | NSPR_API, NSPR_API_Reference |
Closes the specified directory. | ||
156 | PR_CloseFileMap | NSPR_API, NSPR_API_Reference |
Closes a file mapping. | ||
157 | PR_CloseSemaphore | NSPR_API, NSPR_API_Reference |
Closes a specified semaphore. | ||
158 | PR_CloseSharedMemory | NSPR_API, NSPR_API_Reference |
Closes a shared memory segment identified by name. | ||
159 | PR_Connect | NSPR_API, NSPR_API_Reference |
Initiates a connection on a specified socket. | ||
160 | PR_ConnectContinue | NSPR, NSPR_API_Reference |
The function has the following parameters: | ||
161 | PR_CreateFileMap | NSPR_API, NSPR_API_Reference |
Creates a file mapping object. | ||
162 | PR_CreateIOLayerStub | NSPR_API, NSPR_API_Reference |
Creates a new layer. | ||
163 | PR_CreatePipe | NSPR_API, NSPR_API_Reference |
Creates an anonymous pipe and retrieves file descriptors for the read and write ends of the pipe. | ||
164 | PR_CreateThread | NSPR_API, NSPR_API_Reference |
Creates a new thread. | ||
165 | PR_CreateThreadPool | NSPR_API, NSPR_API_Reference |
Create a new hash table. | ||
166 | PR_DELETE | NSPR_API, NSPR_API_Reference |
Allocates memory of a specified size from the heap. | ||
167 | PR_Delete | NSPR, NSPR_API_Reference |
The function has the following parameter: | ||
168 | PR_DeleteSemaphore | NSPR_API, NSPR_API_Reference |
Removes a semaphore specified by name from the system. | ||
169 | PR_DeleteSharedMemory | NSPR_API, NSPR_API_Reference |
Deletes a shared memory segment identified by name. | ||
170 | PR_DestroyCondVar | NSPR_API, NSPR_API_Reference |
Destroys a condition variable. | ||
171 | PR_DestroyLock | NSPR_API, NSPR_API_Reference |
Destroys a specified lock object. | ||
172 | PR_DestroyMonitor | NSPR_API, NSPR_API_Reference |
Destroys a monitor object. | ||
173 | PR_DestroyPollableEvent | NSPR_API, NSPR_API_Reference |
Close the file descriptor associated with a pollable event and release related resources. | ||
174 | PR_DetachSharedMemory | NSPR_API, NSPR_API_Reference |
Unmaps a shared memory segment identified by name. | ||
175 | PR_DetachThread | NSPR_API, NSPR_API_Reference |
Disassociates a PRThread object from a native thread. | ||
176 | PR_DisableClockInterrupts | NSPR_API, NSPR_API_Reference |
Disables timer signals used for preemptive scheduling. | ||
177 | PR_EXTERN | NSPR_API, NSPR_API_Reference |
Used to define the prototypes for functions or variables that are to be exported from a shared library. | ||
178 | PR_EnterMonitor | NSPR_API, NSPR_API_Reference |
Enters the lock associated with a specified monitor. | ||
179 | PR_EnumerateHostEnt | NSPR_API, NSPR_API_Reference |
Evaluates each of the possible addresses of a PRHostEnt structure, acquired from PR_GetHostByName or PR_GetHostByAddr . |
||
180 | PR_ExitMonitor | NSPR_API, NSPR_API_Reference |
Decrements the entry count associated with a specified monitor and, if the entry count reaches zero, releases the monitor's lock. | ||
181 | PR_ExplodeTime | NSPR_API, NSPR_API_Reference |
Converts an absolute time to a clock/calendar time. | ||
182 | PR_ExportFileMapAsString | NSPR_API, NSPR_API_Reference |
Creates a string identifying a PRFileMap . |
||
183 | PR_FREEIF | NSPR_API, NSPR_API_Reference |
Conditionally frees allocated memory. | ||
184 | PR_FamilyInet | NSPR_API, NSPR_API_Reference |
Gets the value of the address family for Internet Protocol. | ||
185 | PR_FindSymbol | NSPR_API, NSPR_API_Reference |
PR_FindSymbol() will return an untyped reference to a symbol in a particular library given the identity of the library and a textual representation of the symbol in question. |
||
186 | PR_FindSymbolAndLibrary | NSPR_API, NSPR_API_Reference |
Finds a symbol in one of the currently loaded libraries, and returns both the symbol and the library in which it was found. | ||
187 | PR_Free | NSPR_API, NSPR_API_Reference |
Frees allocated memory in the heap. | ||
188 | PR_FreeLibraryName | NSPR_API, NSPR_API_Reference |
Frees memory allocated by NSPR for library names and path names. | ||
189 | PR_GMTParameters | NSPR_API, NSPR_API_Reference |
Returns the time zone offset information that maps the specified PRExplodedTime to GMT. |
||
190 | PR_GetConnectStatus | NSPR_API, NSPR_API_Reference |
Get the completion status of a nonblocking connection. | ||
191 | PR_GetCurrentThread | NSPR_API, NSPR_API_Reference |
Returns the current thread object for the currently running code. | ||
192 | PR_GetDefaultIOMethods | NSPR_API, NSPR_API_Reference |
Gets the default I/O methods table. | ||
193 | PR_GetDescType | NSPR_API, NSPR_API_Reference |
Describes what type of file is referenced by a specified file descriptor. | ||
194 | PR_GetError | NSPR_API, NSPR_API_Reference |
Returns the current thread's last set platform-independent error code. | ||
195 | PR_GetErrorText | NSPR_API, NSPR_API_Reference |
Copies the current thread's current error text without altering the text as stored in the thread's context. | ||
196 | PR_GetErrorTextLength | NSPR_API, NSPR_API_Reference |
Gets the length of the error text. | ||
197 | PR_GetFileInfo | NSPR_API, NSPR_API_Reference |
Gets information about a file with a specified pathname. File size is expressed as a 32-bit integer. | ||
198 | PR_GetFileInfo64 | NSPR_API, NSPR_API_Reference |
Gets information about a file with a specified pathname. File size is expressed as a 64-bit integer. | ||
199 | PR_GetHostByAddr | NSPR_API, NSPR_API_Reference |
Looks up a host entry by its network address. | ||
200 | PR_GetHostByName | NSPR_API, NSPR_API_Reference |
Looks up a host by name. | ||
201 | PR_GetIdentitiesLayer | NSPR_API, NSPR_API_Reference |
Finds the layer with the specified identity in the specified stack of layers. | ||
202 | PR_GetInheritedFileMap | NSPR_API, NSPR_API_Reference |
Imports a PRFileMap previously exported by my parent process via PR_CreateProcess . |
||
203 | PR_GetLayersIdentity | NSPR_API, NSPR_API_Reference |
Gets the unique identity for the layer of the specified file descriptor. | ||
204 | PR_GetLibraryName | NSPR_API, NSPR_API_Reference |
Constructs a full library path name. | ||
205 | PR_GetLibraryPath | NSPR_API, NSPR_API_Reference |
Retrieves the current default library path. | ||
206 | PR_GetNameForIdentity | NSPR_API, NSPR_API_Reference |
Gets the string associated with a layer's unique identity. | ||
207 | PR_GetOSError | NSPR_API, NSPR_API_Reference |
Returns the current thread's last set OS-specific error code. | ||
208 | PR_GetOpenFileInfo | NSPR_API, NSPR_API_Reference |
Gets an open file's information. File size is expressed as a 32-bit integer. | ||
209 | PR_GetOpenFileInfo64 | NSPR_API, NSPR_API_Reference |
Gets an open file's information. File size is expressed as a 64-bit integer. | ||
210 | PR_GetPeerName | NSPR_API, NSPR_API_Reference |
Gets the network address of the connected peer. | ||
211 | PR_GetProtoByName | NSPR_API, NSPR_API_Reference |
Looks up a protocol entry based on the protocol's name. | ||
212 | PR_GetProtoByNumber | NSPR_API, NSPR_API_Reference |
Looks up a protocol entry based on protocol's number. | ||
213 | PR_GetRandomNoise | NSPR_API, NSPR_API_Reference |
Produces a random value for use as a seed value for another random number generator. | ||
214 | PR_GetSockName | NSPR_API, NSPR_API_Reference |
Gets network address for a specified socket. | ||
215 | PR_GetSocketOption | NSPR_API, NSPR_API_Reference |
Retrieves the socket options set for a specified socket. | ||
216 | PR_GetSpecialFD | NSPR_API, NSPR_API_Reference |
Gets the file descriptor that represents the standard input, output, or error stream. | ||
217 | PR_GetThreadPriority | NSPR_API, NSPR_API_Reference |
Returns the priority of a specified thread. | ||
218 | PR_GetThreadPrivate | NSPR_API, NSPR_API_Reference |
Recovers the per-thread private data for the current thread. | ||
219 | PR_GetThreadScope | NSPR_API, NSPR_API_Reference |
Gets the scoping of the current thread. | ||
220 | PR_GetUniqueIdentity | NSPR_API, NSPR_API_Reference |
Asks the runtime to allocate a unique identity for a layer identified by the layer's name. | ||
221 | PR_IMPLEMENT | NSPR_API, NSPR_API_Reference |
Used to define implementations of symbols that are to be exported from a shared library. | ||
222 | PR_INIT_STATIC_CLIST | NSPR_API, NSPR_API_Reference |
Statically initializes a circular list. | ||
223 | PR_INSERT_AFTER | NSPR_API, NSPR_API_Reference |
Inserts an element after another element in a circular list. | ||
224 | PR_INSERT_BEFORE | NSPR_API, NSPR_API_Reference |
Inserts an element before another element in a circular list. | ||
225 | PR_INSERT_LINK | NSPR_API, NSPR_API_Reference |
Inserts an element at the head of the list. | ||
226 | PR_ImplodeTime | NSPR_API, NSPR_API_Reference |
Converts a clock/calendar time to an absolute time. | ||
227 | PR_ImportFileMapFromString | NSPR_API, NSPR_API_Reference |
Creates a PRFileMap from an identifying string. |
||
228 | PR_Init | NSPR_API, NSPR_API_Reference |
Initializes the runtime. | ||
229 | PR_Initialize | NSPR_API, NSPR_API_Reference |
Provides an alternate form of explicit initialization. In addition to establishing the sequence of operations, PR_Initialize implicitly calls PR_Cleanup on exiting the primordial function. |
||
230 | PR_Initialize | NSPR_API, NSPR_API_Reference |
The type for the root function used by PR_Initialize is specified as follows: |
||
231 | PR_InitializeNetAddr | NSPR_API, NSPR_API_Reference |
Initializes or reinitializes a network address. The storage for the network address structure is allocated by, and remains the responsibility of, the calling client. | ||
232 | PR_Initialized | NSPR_API, NSPR_API_Reference |
Checks whether the runtime has been initialized. | ||
233 | PR_Interrupt | NSPR_API, NSPR_API_Reference |
Sets the interrupt request for a target thread. | ||
234 | PR_IntervalNow | NSPR_API, NSPR_API_Reference |
Returns the value of NSPR's free-running interval timer. | ||
235 | PR_IntervalToMicroseconds | NSPR_API, NSPR_API_Reference |
Converts platform-dependent intervals to standard clock microseconds. | ||
236 | PR_IntervalToMilliseconds | NSPR_API, NSPR_API_Reference |
Converts platform-dependent intervals to standard clock milliseconds. | ||
237 | PR_IntervalToSeconds | NSPR_API, NSPR_API_Reference |
Converts platform-dependent intervals to standard clock seconds. | ||
238 | PR_JoinJob | NSPR_API, NSPR_API_Reference |
Blocks the current thread until a job has completed. | ||
239 | PR_JoinThread | NSPR_API, NSPR_API_Reference |
Blocks the calling thread until a specified thread terminates. | ||
240 | PR_JoinThreadPool | NSPR_API, NSPR_API_Reference |
Waits for all threads in a thread pool to complete, then releases resources allocated to the thread pool. | ||
241 | PR_LIST_HEAD | NSPR_API, NSPR_API_Reference |
Returns the head of a circular list. | ||
242 | PR_LIST_TAIL | NSPR_API, NSPR_API_Reference |
Returns the tail of a circular list. | ||
243 | PR_Listen | NSPR_API, NSPR_API_Reference |
Listens for connections on a specified socket. | ||
244 | PR_LoadLibrary | NSPR_API, NSPR_API_Reference |
Loads a referenced library. | ||
245 | PR_LocalTimeParameters | NSPR_API, NSPR_API_Reference |
Returns the time zone offset information that maps the specified PRExplodedTime to local time. |
||
246 | PR_Lock | NSPR_API, NSPR_API_Reference |
Locks a specified lock object. | ||
247 | PR_MALLOC | NSPR_API, NSPR_API_Reference |
Allocates memory of a specified size from the heap. | ||
248 | PR_MSEC_PER_SEC | NSPR_API, NSPR_API_Reference |
A convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of milliseconds in a second. | ||
249 | PR_MemMap | NSPR_API, NSPR_API_Reference |
Maps a section of a file to memory. | ||
250 | PR_MicrosecondsToInterval | NSPR_API, NSPR_API_Reference |
Converts standard clock microseconds to platform-dependent intervals. | ||
251 | PR_MillisecondsToInterval | NSPR_API, NSPR_API_Reference |
Converts standard clock milliseconds to platform-dependent intervals. | ||
252 | PR_MkDir | NSPR_API, NSPR_API_Reference |
Creates a directory with a specified name and access mode. | ||
253 | PR_NAME | NSPR_API, NSPR_API_Reference |
NSPR Name. | ||
254 | PR_NETDB_BUF_SIZE | NSPR_API, NSPR_API_Reference |
Recommended size to use when specifying a scratch buffer for PR_GetHostByName , PR_GetHostByAddr , PR_GetProtoByName , or PR_GetProtoByNumber . |
||
255 | PR_NEW | NSPR_API, NSPR_API_Reference |
Allocates memory of a specified size from the heap. | ||
256 | PR_NEWZAP | NSPR_API, NSPR_API_Reference |
Allocates and clears memory from the heap for an instance of a given type. | ||
257 | PR_NEXT_LINK | NSPR_API, NSPR_API_Reference |
Returns the next element in a list. | ||
258 | PR_NSEC_PER_MSEC | NSPR_API, NSPR_API_Reference |
A convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of nanoseconds in a millisecond. | ||
259 | PR_NSEC_PER_SEC | NSPR_API, NSPR_API_Reference |
A convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of nanoseconds in a second. | ||
260 | PR_NetAddrToString | NSPR_API, NSPR_API_Reference |
Converts a character string to a network address. | ||
261 | PR_NewCondVar | NSPR_API, NSPR_API_Reference |
Creates a new condition variable. | ||
262 | PR_NewLock | NSPR_API, NSPR_API_Reference |
Creates a new lock. | ||
263 | PR_NewMonitor | NSPR_API, NSPR_API_Reference |
Creates a new monitor object. The caller is responsible for the object and is expected to destroy it when appropriate. | ||
264 | PR_NewPollableEvent | NSPR_API, NSPR_API_Reference |
Create a pollable event file descriptor. | ||
265 | PR_NewTCPSocket | NSPR_API, NSPR_API_Reference |
Creates a new IPv4 TCP socket. | ||
266 | PR_NewThreadPrivateIndex | NSPR_API, NSPR_API_Reference |
Returns a new index for a per-thread private data table and optionally associates a destructor with the data that will be assigned to the index. | ||
267 | PR_NewUDPSocket | NSPR_API, NSPR_API_Reference |
Creates a new UDP socket. | ||
268 | PR_NormalizeTime | NSPR_API, NSPR_API_Reference |
Adjusts the fields of a clock/calendar time to their proper ranges, using a callback function. | ||
269 | PR_Notify | NSPR_API, NSPR_API_Reference |
Notifies a monitor that a change in state of the monitored data has occurred. | ||
270 | PR_NotifyAll | NSPR_API, NSPR_API_Reference |
Promotes all threads waiting on a specified monitor to a ready state. | ||
271 | PR_NotifyAllCondVar | NSPR_API, NSPR_API_Reference |
Notifies all of the threads waiting on a specified condition variable. | ||
272 | PR_NotifyCondVar | NSPR_API, NSPR_API_Reference |
Notifies a condition variable of a change in its associated monitored data. | ||
273 | PR_Now | NSPR_API, NSPR_API_Reference |
Returns the current time. | ||
274 | PR_Open | NSPR_API, NSPR_API_Reference |
Opens a file for reading, writing, or both. Also used to create a file. | ||
275 | PR_OpenAnonFileMap | NSPR_API, NSPR_API_Reference |
Creates or opens a named semaphore with the specified name | ||
276 | PR_OpenDir | NSPR_API, NSPR_API_Reference |
Opens the directory with the specified pathname. | ||
277 | PR_OpenSemaphore | NSPR_API, NSPR_API_Reference |
Creates or opens a named semaphore with the specified name. | ||
278 | PR_OpenSharedMemory | NSPR_API, NSPR_API_Reference |
Opens an existing shared memory segment or, if one with the specified name doesn't exist, creates a new one. | ||
279 | PR_OpenTCPSocket | NSPR, NSPR_API_Reference |
Creates a new TCP socket of the specified address family. | ||
280 | PR_PREV_LINK | NSPR_API, NSPR_API_Reference, Reference |
Returns the preceding element in a list. | ||
281 | PR_Poll | NSPR_API, NSPR_API_Reference |
Detects when I/O is ready for a set of socket file descriptors. | ||
282 | PR_PopIOLayer | NSPR_API, NSPR_API_Reference |
Removes a layer from the stack. | ||
283 | PR_PostSemaphore | NSPR_API, NSPR_API_Reference |
Increments the value of a specified semaphore. | ||
284 | PR_ProcessAttrSetInheritableFileMap | NSPR_API, NSPR_API_Reference |
Prepare filemap for export to my children processes via PR_CreateProcess . |
||
285 | PR_ProcessExit | NSPR_API, NSPR_API_Reference |
Causes an immediate, nongraceful, forced termination of the process. | ||
286 | PR_PushIOLayer | NSPR_API, NSPR_API_Reference |
Adds a layer onto the stack. | ||
287 | PR_QueueJob | NSPR_API, NSPR_API_Reference |
Queues a job to a thread pool for execution. | ||
288 | PR_QueueJob_Accept | NSPR_API, NSPR_API_Reference |
Causes a job to be queued when a socket has a pending connection. | ||
289 | PR_QueueJob_Connect | NSPR_API, NSPR_API_Reference |
Causes a job to be queued when a socket can be connected. | ||
290 | PR_QueueJob_Read | NSPR_API, NSPR_API_Reference |
Causes a job to be queued when a socket becomes readable. | ||
291 | PR_QueueJob_Timer | NSPR_API, NSPR_API_Reference |
Causes a job to be queued when a timer expires. | ||
292 | PR_QueueJob_Write | NSPR_API, NSPR_API_Reference |
Causes a job to be queued when a socket becomes writable. | ||
293 | PR_REMOVE_AND_INIT_LINK | NSPR_API, NSPR_API_Reference |
Removes an element from a circular list and initializes the linkage. | ||
294 | PR_REMOVE_LINK | NSPR_API, NSPR_API_Reference |
Removes an element from a circular list. | ||
295 | PR_Read | NSPR_API, NSPR_API_Reference |
Reads bytes from a file or socket. | ||
296 | PR_ReadDir | NSPR_API, NSPR_API_Reference |
Gets a pointer to the next entry in the directory. | ||
297 | PR_Realloc | NSPR_API, NSPR_API_Reference |
Resizes allocated memory on the heap. | ||
298 | PR_Recv | NSPR_API, NSPR_API_Reference |
Receives bytes from a connected socket. | ||
299 | PR_RecvFrom | NSPR_API, NSPR_API_Reference |
Receives bytes from a socket and stores the sending peer's address. | ||
300 | PR_Rename | NSPR_API, NSPR_API_Reference |
Renames a file. | ||
301 | PR_RmDir | NSPR_API, NSPR_API_Reference |
Removes a directory with a specified name. | ||
302 | PR_STATIC_ASSERT | NSPR_API, NSPR_API_Reference |
Prevents code from compiling when an expression has the value FALSE at compile time. |
||
303 | PR_SecondsToInterval | NSPR_API, NSPR_API_Reference |
Converts standard clock seconds to platform-dependent intervals. | ||
304 | PR_Seek | NSPR_API, NSPR_API_Reference |
Moves the current read-write file pointer by an offset expressed as a 32-bit integer. | ||
305 | PR_Seek64 | NSPR_API, NSPR_API_Reference |
Moves the current read-write file pointer by an offset expressed as a 64-bit integer. | ||
306 | PR_Send | NSPR_API, NSPR_API_Reference |
Sends bytes from a connected socket. | ||
307 | PR_SendTo | NSPR_API, NSPR_API_Reference |
Sends bytes a socket to a specified destination. | ||
308 | PR_SetConcurrency | NSPR_API, NSPR_API_Reference |
Creates extra virtual processor threads. Generally used with MP systems. | ||
309 | PR_SetError | NSPR_API, NSPR_API_Reference |
Sets error information within a thread context. | ||
310 | PR_SetErrorText | NSPR_API, NSPR_API_Reference |
Sets the text associated with an error. | ||
311 | PR_SetIPv6Enable | NSPR_API, NSPR_API_Reference |
This function was removed in NSPR 4.0 and does not exist any more. | ||
312 | PR_SetLibraryPath | NSPR_API, NSPR_API_Reference |
Registers a default library pathname with a runtime. | ||
313 | PR_SetPollableEvent | NSPR_API, NSPR_API_Reference |
Set a pollable event. | ||
314 | PR_SetSocketOption | NSPR_API, NSPR_API_Reference |
Retrieves the socket options set for a specified socket. | ||
315 | PR_SetThreadPriority | NSPR_API, NSPR_API_Reference |
Sets the priority of a specified thread. | ||
316 | PR_SetThreadPrivate | NSPR_API, NSPR_API_Reference |
Sets per-thread private data. | ||
317 | PR_Shutdown | NSPR_API, NSPR_API_Reference |
Shuts down part of a full-duplex connection on a specified socket. | ||
318 | PR_ShutdownThreadPool | NSPR_API, NSPR_API_Reference |
Notifies all threads in a thread pool to terminate. | ||
319 | PR_Sleep | NSPR_API, NSPR_API_Reference |
Causes the current thread to yield for a specified amount of time. | ||
320 | PR_StringToNetAddr | NSPR_API, NSPR_API_Reference |
Converts a character string to a network address. | ||
321 | PR_Sync | NSPR_API, NSPR_API_Reference |
Synchronizes any buffered data for a file descriptor to its backing device (disk). | ||
322 | PR_TicksPerSecond | NSPR_API, NSPR_API_Reference |
Returns the number of ticks per second currently used to determine the value of PRIntervalTime . |
||
323 | PR_TransmitFile | NSPR_API, NSPR_API_Reference |
Sends a complete file across a connected socket. | ||
324 | PR_USEC_PER_MSEC | NSPR_API, NSPR_API_Reference |
A convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of microseconds in a millisecond. | ||
325 | PR_USEC_PER_SEC | NSPR_API, NSPR_API_Reference |
A convenience macro to improve code readability as well as to avoid mistakes in counting the number of zeros; represents the number of microseconds in a second. | ||
326 | PR_UnblockClockInterrupts | NSPR_API, NSPR_API_Reference |
Unblocks the timer signal used for preemptive scheduling. | ||
327 | PR_UnloadLibrary | NSPR_API, NSPR_API_Reference |
Unloads a library loaded with PR_LoadLibrary . |
||
328 | PR_Unlock | NSPR_API, NSPR_API_Reference |
Releases a specified lock object. Releasing an unlocked lock results in an error. | ||
329 | PR_Unmap | NSPR_API, NSPR_API_Reference |
Unmap a memory region that is backed by a memory-mapped file. | ||
330 | PR_VERSION | NSPR_API, NSPR_API_Reference |
The format of the version string isMajorVersion.MinorVersion BuildDate. | ||
331 | PR_VersionCheck | NSPR_API, NSPR_API_Reference |
Compares the version of NSPR assumed by the caller (the imported version) with the version being offered by the runtime (the exported version). | ||
332 | PR_Wait | NSPR_API, NSPR_API_Reference |
Waits for an application-defined state of the monitored data to exist. | ||
333 | PR_WaitCondVar | NSPR_API, NSPR_API_Reference |
Waits on a condition. | ||
334 | PR_WaitForPollableEvent | NSPR_API, NSPR_API_Reference |
Blocks the calling thread until the pollable event is set, and then atomically unsetting the event before returning. | ||
335 | PR_WaitSemaphore | NSPR_API, NSPR_API_Reference |
Returns the value of the environment variable. | ||
336 | PR_Write | NSPR_API, NSPR_API_Reference |
Writes a buffer of data to a file or socket. | ||
337 | PR_Writev | NSPR_API, NSPR_API_Reference |
Writes data to a socket from multiple buffers. | ||
338 | PR_cnvtf | NSPR_API, NSPR_API_Reference |
Converts a floating point number to a string. | ||
339 | PR_dtoa | NSPR_API, NSPR_API_Reference |
Converts a floating point number to a string. | ||
340 | PR_htonl | NSPR_API, NSPR_API_Reference |
Performs 32-bit conversion from host byte order to network byte order. | ||
341 | PR_htons | NSPR_API, NSPR_API_Reference |
Performs 16-bit conversion from host byte order to network byte order. | ||
342 | PR_ntohl | NSPR_API, NSPR_API_Reference |
Performs 32-bit conversion from network byte order to host byte order. | ||
343 | PR_ntohs | NSPR_API, NSPR_API_Reference |
Performs 16-bit conversion from network byte order to host byte order. | ||
344 | PR_strtod | NSPR_API, NSPR_API_Reference |
Converts the prefix of a decimal string to the nearest double-precision floating point number. | ||
345 | Process Initialization | NSPR, NSPR_API_Reference |
This chapter describes the NSPR API for versioning, process initialization, and shutdown of NSPR. | ||
346 | Process Management and Interprocess Communication | NSPR_API, NSPR_API_Reference |
This chapter describes the NSPR routines that deal with processes. A process is an instance of a program. NSPR provides routines to create a new process and to wait for the termination of another process. | ||
347 | Random Number Generator | NSPR, NSPR_API_Reference |
This chapter describes the NSPR random number generator. | ||
348 | String Operations | NSPR, NSPR_API_Reference |
This chapter describes some of the key NSPR functions for manipulating strings. Libraries built on top of NSPR, such as the Netscape security libraries, use these functions to manipulate strings. If you are copying or examining strings for use by such libraries or freeing strings that were allocated by such libraries, you must use these NSPR functions rather than the libc equivalents. | ||
349 | Thread Pools | NSPR, NSPR_API_Reference |
This chapter describes the NSPR API Thread Pools. | ||
350 | Thread Synchronization Sample | |
This page has no content. Enrich Mozilla Developer Center by contributing. | ||
351 | Threads | NSPR, NSPR_API_Reference |
NSPR provides an execution environment that promotes the use of lightweight threads. Each thread is an execution entity that is scheduled independently from other threads in the same process. This chapter describes the basic NSPR threading API. | ||
352 | NSPR Contributor Guide | NSPR |
Abstract: | ||
353 | NSPR Poll Method | NSPR |
This technical note documents the poll method of PRFileDesc. The poll method is not to be confused with the PR_Poll function. The poll method operates on a single NetScape Portable Runtime (NSPR) file descriptor, whereas PR_Poll operates on a collection of NSPR file descriptors. PR_Poll uses the poll method behind the scene, but it is also possible to use the poll method directly. | ||
354 | NSPR build instructions | Developing Mozilla, NSPR |
On Windows, the NSPR build system needs GNU make and a Unix command-line utility suite such as MKS Toolkit, Cygwin, and MSYS. The easiest way to get these tools is to install the MozillaBuild package. | ||
355 | NSPR release procedure | |
Right now I use the mozilla/nsprpub/admin/repackage.sh script to generate the binary distributions published on ftp.mozilla.org. As the name of the shell script implies, repackage.sh merely repackages binary distributions in a different format. |
||
356 | NSPR release process | |
No summary! | ||
357 | NSPR's Position On Abrupt Thread Termination | NSPR |
This memo describes my position on a facility that is currently under discussion for inclusion in the NetScape Portable Runtime (NSPR); the ability of a thread to abruptly exit. I resist including this function in NSPR because it results in bad programming practice and unsupportable programs. | ||
358 | Nonblocking IO In NSPR | NSPR |
Previously, all I/O in the NetScape Portable Runtime (NSPR) was blocking (or synchronous). A thread invoking an io function is blocked until the io operation is finished. The blocking io model encourages the use of multiple threads as a programming model. A thread is typically created to attend to one of the simultaneous I/O operations that may potentially block. | ||
359 | Optimizing Applications For NSPR | NSPR |
NetScape Portable Runtime (NSPR) tries to provide a consistent level of service across the platforms it supports. This has proven to be quite challenging, a challenge that was met to a large degree, but there is always room for improvement. The casual client may not encounter a need to know the details of the shortcomings to the level described here, but if and when clients become more sophisticated, these issues will certainly surface. | ||
360 | Process Forking in NSPR | NSPR |
The threads provided in NetScape Portable Runtime (NSPR) are implemented using different mechanisms on the various platforms. On some platforms, NSPR threads directly map one-to-one to the threads provided by the platform vendor, on other platforms NSPR threads are basically user-level threads within a single process (with no kernel threads) and on still others NSPR threads are user-level threads implemented on top of one or more kernel threads within single address space. | ||
361 | Programs Using NSPR | NSPR, NeedsContent, NeedsHelp, NeedsRelocation |
The following programs are known to use NSPR, or portions of it: | ||
362 | Running NSPR tests | NSPR |
NSPR has a test suite in the mozilla/nsprpub/pr/tests directory. |
||