Closed Bug 23642 Opened 25 years ago Closed 25 years ago

Obsolete APIs removed in NSPR 4.0

Categories

(NSPR :: NSPR, defect, P3)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: srinivas, Assigned: srinivas)

References

Details

The following obsolete interfaces will be deleted from NSPR 4.0 PR_GetSockOpt PR_SetSockOpt PR_CreateNetAddr PR_DestroyNetAddr PR_GetHostName PR_GetErrorString
Can we remove PR_SetIPv6Enable()?
Deleted PR_SetIPv6Enable() and PR_FamilyInet(). See Bugzilla #23815.
Depends on: 17101, 24542
Blocks: 23641
Deleted PR_NT_UseNonblock (see bug #24542).
The header file prlink_mac.h and the two Mac-specific functions declared in it, PR_LoadIndexedFragment and PR_LoadNamedFragment, were removed. (See bug #19150.)
Depends on: 19150
PLEvent was removed from libplds3. This includes all the data types, macros, and functions defined or declared in plevent.h. The header plevent.h was also removed. The new home for PLEvent and the header plevent.h is mozilla/xpcom/threads. (See bug #17101.)
Whiteboard: I'm going to remove the obsolete functions from the 4.0 branch -- wtc
I removed the following obsolete functions on the NSPRPUB_RELEASE_4_0_BRANCH: PR_GetSockOpt PR_SetSockOpt PR_CreateNetAddr PR_DestroyNetAddr PR_GetHostName PR_GetErrorString Should we rename the 'getsockopt' and 'setsockopt' fields in the PRIOMethods structure to 'reserved_fn_n'? This is to break the compilation of the code that is still using those two fields. These two fields in all of NSPR's io method tables are now initialized to _PR_InvalidStatus, so they will fail at run time.
Whiteboard: I'm going to remove the obsolete functions from the 4.0 branch -- wtc
Yes, the get/setsockopt functions should be marked reserved.
I renamed the 'getsockopt' and 'setsockopt' fields of the PRIOMethods structure to 'reserved_fn_6' and 'reserved_fn_5'. (NSPRPUB_RELEASE_4_0_BRANCH)
lib/prstreams (header prstrms.h, library libprstrms3.so) has been removed from NSPR 4.0. (See bug #26844.)
Depends on: 26844
Status: NEW → ASSIGNED
The obsolete internal functions PR_SetThreadExit and PR_GetThreadExit were removed. (Bugzilla #17699)
Depends on: 17699
The macro PR_NETADDR_SIZE and function PR_NetAddrSize are no longer exported. They were moved to the internal header file primpl.h, and PR_NetAddrSize is renamed _PR_NetAddrSize. (The leading underscore indicates an internal function.)
Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.