*BSD News Article 31791


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!EU.net!dkuug!eunet.no!nuug!trane.uninett.no!due.uninett.no!amanda.bbb.no!news.sigmasoft.com!not-for-mail
From: tholo@gandalf.bbb.no (Thorsten Lockert)
Newsgroups: comp.unix.bsd
Subject: Re: Making the BSD spooler even more POSIX ...
Date: 18 Jun 1994 03:26:41 +0200
Organization: SigmaSoft, Th. Lockert
Lines: 21
Message-ID: <2ttigh$1ps@gandalf.bbb.no>
References: <rcpt.771860340@rwa.urc.tue.nl> <rcpt.771884870@rwa.urc.tue.nl>

In <rcpt.771884870@rwa.urc.tue.nl> rcpt@rwa.urc.tue.nl (Piet Tutelaers) writes:
>rcpt@rwa.urc.tue.nl (Piet Tutelaers) writes:
>
>>In the lpd/printjob.c program there is a very funny line:
>>   (void) sprintf(buf, "%c%qd %s\n", type, stb.st_size, file);
>>                          ^^^                      hidden BSD feature??
>
>>I wonder how this can work on a BSD system?
>
>I have traced the `%qd' as a typo introduced somewhere between bsd-net-2
>and NetBSD-current (of today).

It is not a typo, it is to print out the value of a quad_t, or a long long
if you want.  Ie. a 64-bit entity.

Thorsten
-- 
Thorsten Lockert  | postmaster@bbb.no   |
Postbox 435       | hostmaster@bbb.no   |  Universe, n.:
N-5001 Bergen     | tholo@bbb.no        |          The problem.
Norway            | tholo@sigmasoft.com |