Questions tagged [nspr]

Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc-like functions.

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.

NSPR's goal is to provide uniform service over a wide range of operating system environments. It strives to not export the lowest common denominator , but to exploit the best features of each operating system on which it runs, and still provide a uniform service across a wide range of host offerings.

Read more

14 questions
2
votes
1 answer

Read an image file C++ and put it on a socket

i'm trying to develop a little web server in C++ but i have a problem when i try to read an image file and write it in a socket buffer. I found a similar function written in C that works perfectly, i cannot understand why my method doesn't work,…
alkz
  • 337
  • 2
  • 7
  • 17
2
votes
3 answers

building mozilla NSPR using MinGw on windows without VC++

I need to use spidermonkey for my perl javascript engine. For that I need to build spidermonkey with thread-safe libraries. So as I understand I need to first build NSPR and then spidermonkey. So, as I understood from following link…
rpg
  • 1,632
  • 2
  • 18
  • 34
2
votes
1 answer

Building NSS (Network security services) for Mac OS X 10.9 not working

I am trying to build NSS source codes (https://developer.mozilla.org/en-US/docs/NSS) version 3.15 on OS X 10.9. I have downloaded the NSS and NSPR package and based on the instructions I have CDed into NSS folder and entered: make…
neutral_sphere
  • 61
  • 1
  • 1
  • 7
2
votes
3 answers

Mac OS - Failed to install python-spidermonkey because nspr not found

Trying to install python-spidermonkey using pip on my Mac OS, failed to do so because it's missing nspr: $ pip install python-spidermonkey Downloading/unpacking python-spidermonkey Running setup.py egg_info for package python-spidermonkey …
Shengjie
  • 12,336
  • 29
  • 98
  • 139
1
vote
0 answers

Working with files NPAPI/PPAPI/NSPR

I need in Chrome extension these actions: Download binary file to temp Unzip it (it's clear .zip package) Move files from unpacked directory, to directory of my extension Delete temp files I've been looking for similar what Firefox Scriptable…
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244
1
vote
2 answers

What is difference b/w PRLock and PRRWLock

What is the difference b/w PRLock and PRRWLock provided by nspr library ?
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
1
vote
1 answer

NSS Build failure due to assembly code Windows 10 64bit machine

I am building 64-bit nss 3.39 on Windows 10 with Microsoft Visual Studio 2017. It failed with the error: error C4235: nonstandard extension used : '__asm' keyword not supported on this architecture Has anyone faced this issue? Need solution on…
Kishor Jadhav
  • 196
  • 2
  • 16
0
votes
1 answer

Spidermonkey pointing to a NSPR/DIST directory

I've been trying to cross-compile Spidermonkey and I am stuck with the problem wherein prtypes.h (NSPR) is unrecognizable. I alread tried modifying Makefile.ref/config.mk/jsconfig.mk to point to a desired NSPR/DIS directory. I must have missed some…
giantKamote
  • 33
  • 1
  • 9
0
votes
1 answer

jsprf.c:644: error: incompatible types in assignment

Can you help me with this error I encountered while building Spidermonkey in PPC? make -f Makefile.ref cat: ../../dist/Linux_All_DBG.OBJ/nspr/Version: No such file or directory cd editline; make -f Makefile.ref all make[1]: Entering directory…
giantKamote
  • 33
  • 1
  • 9
0
votes
0 answers

linux x86 assembler to llvm assembler

I'm trying to translate linux x86 assembler to llvm assembler. Actually, I don't get any assembler, Is it possible to translate or decompile GNU assembler to llvm assembler? If any, what is the tool? or need to decompile and assemble with…
Marco Jo
  • 33
  • 3
0
votes
1 answer

NSPR locks with timeout

I am using NSPR as my cross-platform threading library and using these locks: PRLock and PRRWLock. I want a timeout in the lock functions. So that, it should wait for 45 seconds, and if it is not able to acquire a lock within that time, the call…
Sabya
  • 11,534
  • 17
  • 67
  • 94
0
votes
1 answer

How to use NSPR?

I am writing a sample code and i would be using NSPR libraries! I work on MS VC++ and use visual studio 2010. How do I include these libraries and use it with windows? My main goal is to achieve thread synchronization using NSPR
user517400
0
votes
1 answer

Unable to update nspr package on CentOS 6.7

I have issues with one of my packages on CentOS 6.7. I want to update nspr package, but I'm unable to do that. The error is: installing package nspr-4.10.8-2.el6_7.i686 needs 284KB on the / filesystem When I type sudo yum update nspr I got…
Krystian
  • 996
  • 9
  • 24
-1
votes
1 answer

C++ casablanca vs Mozilla NSPR vs Facebook folly

Has anyone evaluated these libraries for their pros and cons as a cross-platform library? I understand NSPR is very old and stable, but how does it compare to Microsoft Casablanca C++ rest SDK and Facebook folly. Microsoft Casablanca is capable of…
Vink
  • 1,019
  • 2
  • 9
  • 18