Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ANNOUNCE: DJGPP port of Jansson 2.14 uploaded

8 views
Skip to first unread message

Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp-announce@delorie.com]

unread,
May 16, 2022, 2:30:08 PM5/16/22
to djgpp-a...@delorie.com
This is a port of Jansson 2.14 to MSDOS/DJGPP.


Jansson is a C library for encoding, decoding and manipulating JSON
data. Its main features and design principles are:

Simple and intuitive API and data model
Comprehensive documentation
No dependencies on other libraries
Full Unicode support (UTF-8)
Extensive test suite

Jansson is licensed under the MIT license; see LICENSE in the source
distribution for details.



DJGPP specific changes.
=======================

- The library requires an entropy source to seed the hash function.
This can either be a driver or a random data file. On plain DOS
one such driver, NOISE.SYS, can be obtained from:
http://www.rahul.net/dkaufman/index.html
as:
http://www.rahul.net/dkaufman/noise063a2.zip
Please read the instructions carefully. This driver works on DOS
and may be on some versions of Windows but it does not work for all
versions of Windows. For XP it does not work and I have found no
replacement. Alternatively a random data file can be used.
It will be found by the library at run-time by evaluating the
RANDFILE environment variable.

- There are no user visible changes. Only small changes have been
done to get the library compiled.

- The port has been configured and compiled on WinXP SP3 and Win98SE.
There is no guarantee that this may be possible with any other DOS-
like OS. Due to the use of long file names it will not be possible
to configure and compile without LFN support. The port has been
compiled using gcc346 and bnu2351b.

As usual, all djgpp specific files (diffs, README files, etc.) are
stored in the "djgpp" directory. The sources have been configured to
be build in the "0build" directory. If for some reason it does not
work for you, delete its contents and configure from scratch again.

Please read the docs to become familiar with this product.


Here is an extract of the CHANGES file showing the user visible
changes from the last port (Jansson 2.13.1) to this one:

-------------------------------------------------------------------------------

Version 2.14
============

Released 2021-09-09

* New Features:

- Add `json_object_getn`, `json_object_setn`, `json_object_deln`, and
the corresponding `nocheck` functions. (#520, by Maxim Zhukov)

* Fixes:

- Handle `sprintf` corner cases (#537, by Tobias Stoeckmann)

* Build:

- Symbol versioning for all exported symbols (#540, by Simon McVittie)
- Fix compiler warnings (#555, by Kelvin Lee)

* Documentation:

- Small fixes (#544, #546, by @i-ky)
- Sphinx 3 compatibility (#543, by Pierce Lopez)


-------------------------------------------------------------------------------




The port consists of the usual two packages that have been produced
using djdev205 (CVS repository code) and can be downloaded from
ftp.delorie.com and mirrors as (time stamp 2022-05-01):


Jansson 2.14 headers, library and html format documentation:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/jsn214b.zip

Jansson 2.14 source:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/jsn214s.zip



Send Jansson specific bug reports to
<https://groups.google.com/forum/#!forum/jansson-users>.
Send suggestions and bug reports concerning the DJGPP port
to comp.os.msdos.djgpp or <dj...@delorie.com>.


Enjoy.

Guerrero, Juan Manuel <juan.g...@igd.fhg.de>

Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]

unread,
May 16, 2022, 2:53:56 PM5/16/22
to dj...@delorie.com
On 5/16/2022 2:18 PM, Juan Manuel Guerrero (juan.g...@gmx.de) [via
djgpp-a...@delorie.com] wrote:
> DJGPP specific changes.
> =======================
>
> - The library requires an entropy source to seed the hash function.
> This can either be a driver or a random data file. On plain DOS
> one such driver, NOISE.SYS, can be obtained from:
> http://www.rahul.net/dkaufman/index.html
> as:
> http://www.rahul.net/dkaufman/noise063a2.zip
> Please read the instructions carefully. This driver works on DOS
> and may be on some versions of Windows but it does not work for all
> versions of Windows. For XP it does not work and I have found no
> replacement. Alternatively a random data file can be used.
> It will be found by the library at run-time by evaluating the
> RANDFILE environment variable.

Hi Juan,

Thanks for the port.  I may have some use for this under DOS. However,
is the noise driver absolutely required to use this lib? Is there some
reason it can't just use the regular rand() functions?  The website
shows "under construction" when the link is followed btw.

Thanks,
Frank

Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com]

unread,
May 16, 2022, 4:41:05 PM5/16/22
to Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]
Am Mon, 16 May 2022 14:53:43 -0400
schrieb "Frank Sapone (emoad...@gmail.com) [via dj...@delorie.com]"
<dj...@delorie.com>:
Hello Frank,

the only reason why I have done it this way, was because it was the
easiest way to do it for me. I need the noise source anyway for
other ports like openSSL and lynx so I have opted to do it here the
same way. I have no objections in changing this the next time. Of
course, with the possibility to read "random" data from a file or even
worse by using rand() it will no longer be really random at all but
that is ok with me.

Concerning the noise063a2.zip file, I fear that it has gone for ever.
At least I have not found it any where. May be some one will find it
some where. This was my fault, I have forgotten about this because I
have installed it on my MSDOS box all the time.
For people still interested in it, they can get it by downloading the
binary archive of the latetest lynx port:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/l290d10b.zip
In the djgpp directory is a noise063a2 directory containing the original
zip file as retrived by me from the URL given together with a diffs file
with small changes I have done to the original sources.

Regards,
Juan M. Guerrero

Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]

unread,
May 16, 2022, 8:39:40 PM5/16/22
to dj...@delorie.com

On 5/16/2022 4:40 PM, Juan Manuel Guerrero (juan.g...@gmx.de) [via
Hi Juan,

I'd be OK with it defaulting to rand() if noise or a file is not found. 
I think having users rely on either can be a bit cumbersome depending on
the application.  I don't need true randomness (or much at all, to be
honest) in my use case.

Understood on the noise.sys homepage.  If you'd like, I can mirror the
site and/or files at my location as well.

Thanks for all your hard work,
Frank

Jason Hood

unread,
May 16, 2022, 9:15:57 PM5/16/22
to
On 17/05/2022 6:40, Juan Manuel Guerrero (juan.g...@gmx.de) [via dj...@delorie.com] wrote:
> Concerning the noise063a2.zip file, I fear that it has gone for ever.
> At least I have not found it any where. May be some one will find it
> some where.

Wayback machine, picking a rather arbitrary date:

http://web.archive.org/web/20051124224824/http://www.rahul.net/dkaufman/

A windows driver:

http://ltr-data.se/opencode.html/#ZeroDrv

Although the XP (and earlier) version is not very good.

--
Jason.
0 new messages