Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Adapt. Enjoy. Survive.


devel / comp.unix.bsd.freebsd.misc / jot source via FTP?

SubjectAuthor
* jot source via FTP?Winston
+* Re: jot source via FTP?mikea
|`- Re: jot source via FTP?Winston
`* Re: jot source via FTP?Christian Weisgerber
 `- Re: jot source via FTP?Winston

1
jot source via FTP?

<ydlf08ahbz.fsf@UBEblock.psr.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=109&group=comp.unix.bsd.freebsd.misc#109

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!aioe.org!F27FZjotXSOprNc+aWsnFA.user.46.165.242.75.POSTED!not-for-mail
From: wbe...@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: jot source via FTP?
Date: Sat, 25 Dec 2021 09:29:20 -0500
Organization: Aioe.org NNTP Server
Message-ID: <ydlf08ahbz.fsf@UBEblock.psr.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="12299"; posting-host="F27FZjotXSOprNc+aWsnFA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Mail-Copies-To: never
Cancel-Lock: sha1:Qhf5+ZpEs7kWH21tPZn0SenBX2c=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Winston - Sat, 25 Dec 2021 14:29 UTC

Is the FreeBSD source code for all its pieces (individually) still
available via FTP? It didn't seem so at ftp://ftp.freebsd.org/ .
It looks like the choices are now 1) GIT, perhaps still
2) Subversion, and 3) download and unpack an entire system tarball
of ~180MB.

In any case, the actual question I'm trying to answer is:
Does jot(1) use arc4random(3) [as its man page says] or does it
use arc4random_uniform(3)?

Thanks in advance, and Merry Christmas.
-WBE

Re: jot source via FTP?

<sq7jnd$lgv$1@lustrous.firedrake.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=110&group=comp.unix.bsd.freebsd.misc#110

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.de!nntp.terraraq.uk!news1.firedrake.org!.POSTED.mikea.ath.cx!mikea.ath.cx!mikea
From: mik...@mikea.ath.cx
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: jot source via FTP?
Date: Sat, 25 Dec 2021 17:17:33 -0000 (UTC)
Organization: Firedrake Synthesis
Message-ID: <sq7jnd$lgv$1@lustrous.firedrake.org>
References: <ydlf08ahbz.fsf@UBEblock.psr.com>
Injection-Date: Sat, 25 Dec 2021 17:17:33 -0000 (UTC)
Injection-Info: lustrous.firedrake.org; posting-host="mikea.ath.cx:70.164.65.62";
logging-data="22047"; mail-complaints-to="usenet@lustrous.firedrake.org"
User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/12.2-RELEASE (amd64))
X-User-Agent: tin (SOAP 3; IBM 650)
X-Approved: mikea@mikea.ath.cx
X-CLACKS: GNU Sir Terry Pratchett
X-RICKMAN: By Grabthar's Hammer!
 by: mik...@mikea.ath.cx - Sat, 25 Dec 2021 17:17 UTC

Winston <wbe@ubeblock.psr.com.invalid> wrote in <ydlf08ahbz.fsf@UBEblock.psr.com>:

> Is the FreeBSD source code for all its pieces (individually) still
> available via FTP? It didn't seem so at ftp://ftp.freebsd.org/ .
> It looks like the choices are now 1) GIT, perhaps still
> 2) Subversion, and 3) download and unpack an entire system tarball
> of ~180MB.
>
> In any case, the actual question I'm trying to answer is:
> Does jot(1) use arc4random(3) [as its man page says] or does it
> use arc4random_uniform(3)?
>
> Thanks in advance, and Merry Christmas.
> -WBE

Merry Christmas!

Looks like it uses arc4random.

From /usr/src/usr.bin/jot on my FreeBSD-12 system:

321 for (i = 1; i <= reps || infinity; i++) {
322 if (use_random)
323 y = random() / divisor;
324 else
325 y = arc4random() / divisor;
326 if (putdata(y * x + begin, !(reps - i)))
327 errx(1, "range error in conversion");
328 }
329 } else
330 for (i = 1, x = begin; i <= reps || infinity; i++, x += s)
331 if (putdata(x, !(reps - i)))
332 errx(1, "range error in conversion");
333 if (!nofinalnl)
334 putchar('\n');
335 exit(0);
336 }
337
338 /*
339 * Send x to stdout using the specified format.
340 * Last is true if this is the set's last value.
jot.c lines 307-340/517 byte 8665/12548 69% (press RETURN)

--
"But you've got to hand it to IBM, they know how to design
hardware. The servers all had handles to pick them up and throw
them out of the window...." -- Juergen Nieveler in the Monastery

Re: jot source via FTP?

<ydh7awa5j4.fsf@UBEblock.psr.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=111&group=comp.unix.bsd.freebsd.misc#111

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!aioe.org!F27FZjotXSOprNc+aWsnFA.user.46.165.242.75.POSTED!not-for-mail
From: wbe...@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: jot source via FTP?
Date: Sat, 25 Dec 2021 13:44:15 -0500
Organization: Aioe.org NNTP Server
Message-ID: <ydh7awa5j4.fsf@UBEblock.psr.com>
References: <ydlf08ahbz.fsf@UBEblock.psr.com>
<sq7jnd$lgv$1@lustrous.firedrake.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="17086"; posting-host="F27FZjotXSOprNc+aWsnFA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Mail-Copies-To: never
Cancel-Lock: sha1:sFRhcufOyFnu/mfcjHhpMDL1KNA=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Winston - Sat, 25 Dec 2021 18:44 UTC

I originally asked:
>> Does jot(1) use arc4random(3) [as its man page says] or does it
>> use arc4random_uniform(3)?

>> Thanks in advance, and Merry Christmas.

to which mikea@mikea.ath.cx very kindly replied:
> Merry Christmas!

> Looks like it uses arc4random.

> From /usr/src/usr.bin/jot on my FreeBSD-12 system:
>
> 321 for (i = 1; i <= reps || infinity; i++) {
> 322 if (use_random)
> 323 y = random() / divisor;
> 324 else
> 325 y = arc4random() / divisor;
> 326 if (putdata(y * x + begin, !(reps - i)))
> 327 errx(1, "range error in conversion");
> 328 }
> 329 } else
> 330 for (i = 1, x = begin; i <= reps || infinity; i++, x += s)
> 331 if (putdata(x, !(reps - i)))
> 332 errx(1, "range error in conversion");
> 333 if (!nofinalnl)
> 334 putchar('\n');
> 335 exit(0);
> 336 }
> 337
> 338 /*
> 339 * Send x to stdout using the specified format.
> 340 * Last is true if this is the set's last value.
> jot.c lines 307-340/517 byte 8665/12548 69% (press RETURN)

THANK YOU! By providing that bit of the source, you even answered my
more specific question: What random number function does "jot -r" use?
[I didn't consider jot might use different ones in different cases.]
I see above it uses random().

I've also now discovered sort of an answer to my first question:

>> Is the FreeBSD source code for all its pieces (individually) still
>> available via FTP?

While it's HTTPS, not FTP, I see the source for the individual programs
(such as jot.c) are available at github without having to log in, set up
an account, etc., so it's just as easy to use as the FTP tree was.

Thanks, Mike! Now, back to trying to figure out why I'm getting
skewed results in certain cases ...
-WBE

Re: jot source via FTP?

<slrnssk52a.1g0i.naddy@lorvorc.mips.inka.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=112&group=comp.unix.bsd.freebsd.misc#112

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: nad...@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: jot source via FTP?
Date: Mon, 27 Dec 2021 19:30:18 -0000 (UTC)
Message-ID: <slrnssk52a.1g0i.naddy@lorvorc.mips.inka.de>
References: <ydlf08ahbz.fsf@UBEblock.psr.com>
Injection-Date: Mon, 27 Dec 2021 19:30:18 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="49171"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Christian Weisgerber - Mon, 27 Dec 2021 19:30 UTC

On 2021-12-25, Winston <wbe@UBEBLOCK.psr.com.invalid> wrote:

> Is the FreeBSD source code for all its pieces (individually) still
> available via FTP? It didn't seem so at ftp://ftp.freebsd.org/ .
> It looks like the choices are now 1) GIT, perhaps still
> 2) Subversion, and 3) download and unpack an entire system tarball
> of ~180MB.

You can look at individual files using the "cgit" FreeBSD Git
repository browser. I don't know if it was an infrastructure update
or if it's a technological improvement, but this is much faster
than the old svnweb.

https://cgit.freebsd.org/src/tree/usr.bin/jot/jot.c

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Re: jot source via FTP?

<ydczlh9ls2.fsf@UBEblock.psr.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=113&group=comp.unix.bsd.freebsd.misc#113

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!aioe.org!F27FZjotXSOprNc+aWsnFA.user.46.165.242.75.POSTED!not-for-mail
From: wbe...@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: jot source via FTP?
Date: Tue, 28 Dec 2021 03:27:41 -0500
Organization: Aioe.org NNTP Server
Message-ID: <ydczlh9ls2.fsf@UBEblock.psr.com>
References: <ydlf08ahbz.fsf@UBEblock.psr.com>
<slrnssk52a.1g0i.naddy@lorvorc.mips.inka.de>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="21449"; posting-host="F27FZjotXSOprNc+aWsnFA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Mail-Copies-To: never
Cancel-Lock: sha1:Jt7kAKJxm60bYRsvwon2zU4aaf8=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Winston - Tue, 28 Dec 2021 08:27 UTC

I previously asked:
>> Is the FreeBSD source code for all its pieces (individually) still
>> available via FTP? It didn't seem so at ftp://ftp.freebsd.org/ .
>> It looks like the choices are now 1) GIT, perhaps still
>> 2) Subversion, and 3) download and unpack an entire system tarball
>> of ~180MB.

to which Christian Weisgerber <naddy@mips.inka.de> kindly replied:
> You can look at individual files using the "cgit" FreeBSD Git
> repository browser. I don't know if it was an infrastructure update
> or if it's a technological improvement, but this is much faster
> than the old svnweb.

> https://cgit.freebsd.org/src/tree/usr.bin/jot/jot.c

That's good to know. For the moment, though, I found that the individual
pieces are available from www.freebsd.org with just a web browser, using
a similar path to get just jot.c, so while it's HTTPS instead of FTP, at
least the pieces are available individually.
-WBE


devel / comp.unix.bsd.freebsd.misc / jot source via FTP?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor