🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.apple2.gno
15 messages
15 total messages Started by James L. Brookes Wed, 16 Dec 1992 00:34
Missing library functions
#384
Author: James L. Brookes
Date: Wed, 16 Dec 1992 00:34
16 lines
949 bytes
I'm working on some software that requires the following library 
functions, and was wondering if anyone knew if there were workarounds,
or if someone was already writing these routines:

vfprintf (I've seen a vsprintf addon, but no vfprintf)
fileno
mktemp
execvp

Thanks.

-- 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|          James Brookes            | Inet: bb252@cleveland.freenet.edu |
|``What, me worry?'' - A. E. Neuman |   jamesb@cscihp.ecst.csuchico.edu |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: Missing library functions
#388
Author: Jay Krell
Date: Wed, 16 Dec 1992 03:00
13 lines
1007 bytes
>From: jamesb@ecst.csuchico.edu (James L. Brookes)
>Subject: Missing library functions
 
>I'm working on some software that requires the following library
>functions, and was wondering if anyone knew if there were workarounds,
>or if someone was already writing these routines:
 
>vfprintf (I've seen a vsprintf addon, but no vfprintf)
 
I think Mike said ORCA/C 2.0 would include vfprintf. I know some previously
omitted functions with similar names were added.
 
  --Jay, jay.krell@cornell.edu
Re: Missing library functions
#386
Author: Jawaid Bazyar
Date: Wed, 16 Dec 1992 04:01
32 lines
1481 bytes
jamesb@ecst.csuchico.edu (James L. Brookes) writes:

>I'm working on some software that requires the following library 
>functions, and was wondering if anyone knew if there were workarounds,
>or if someone was already writing these routines:

>vfprintf (I've seen a vsprintf addon, but no vfprintf)

  That will be available in ORCA/C 2.0.

>fileno

  #define fileno(f) (f->_file)

  This belongs in stdio.h.

>mktemp

  I believe Mike Horwath has a version of this.

>execvp

  You'll have to do this one yourself by reading the manpage for
execvp and massaging the parameters into something the current
GNO execve likes.  GNO 1.1 should have the whole suite of exec*'s,
with correct parameters even :)

-- 
 Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
 Procyon, Inc.              |   for the Apple IIgs!   
 bazyar@cs.uiuc.edu         |   P.O Box 620334
 --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
Re: Missing library functions
#390
Author: Soenke Behrens
Date: Wed, 16 Dec 1992 10:55
30 lines
1493 bytes
bazyar@teal.csn.org (Jawaid Bazyar) writes:

>jamesb@ecst.csuchico.edu (James L. Brookes) writes:

>>fileno
>  #define fileno(f) (f->_file)
>  This belongs in stdio.h.

Not really. 'twould be nice if it were there, but it's not mandatory, since
it's not ISO.

>>mktemp
>  I believe Mike Horwath has a version of this.

Yup, and I too. Anyway, that's a pretty easy function to do :)

>>execvp
>  You'll have to do this one yourself by reading the manpage for
>execvp and massaging the parameters into something the current
>GNO execve likes.  GNO 1.1 should have the whole suite of exec*'s,
>with correct parameters even :)

Or use system(). :)

Soenke
-- 
===========================================================================
More than silver, more than gold, I need   !    behrenss@informatik.
electricity. I need it for my dreams.      !    tu-muenchen.de
(RACTER)                                   !  FIDO: 2:246/13 Soenke Behrens
Re: Missing library functions
#392
Author: Jawaid Bazyar
Date: Wed, 16 Dec 1992 16:49
15 lines
1151 bytes
behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens) writes:

>Or use system(). :)

  I think you'll find that system() is overkill.  system() will call the
shell, which ends up forking another new process (and in UNIX if you're
doing an exec* then you just got done forking a new process).  system()
also makes shell job control entries and that's definitely not in the
definition of exec*.

-- 
 Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
 Procyon, Inc.              |   for the Apple IIgs!   
 bazyar@cs.uiuc.edu         |   P.O Box 620334
 --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
ORCA/C 2.0 is shipping! (Was Re: Missing library functions)
#394
Author: Robert Hill
Date: Wed, 16 Dec 1992 19:05
22 lines
1605 bytes
In article <1glthpINNjad@charnel.ecst.csuchico.edu>, jamesb@ecst.csuchico.edu 
(James L. Brookes) writes:
> vfprintf (I've seen a vsprintf addon, but no vfprintf)

	I just recieved the ORCA/C 2.0 brochure, and it lists vfprintf,
vprintf, and vsprintf.  Apparently, 2.0 is shipping;  if you bought ORCA/C
before Sept. 1, 1992, the upgrade is $25, otherwise it is $50 (until Feb. 28,
1993).

	I'm looking forward to getting the update, so I better go order it 
now! :)

> :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> |          James Brookes            | Inet: bb252@cleveland.freenet.edu |
> |``What, me worry?'' - A. E. Neuman |   jamesb@cscihp.ecst.csuchico.edu |
> :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

--------------------------------------------------------------------------------
Robert Hill                                     |  rhill@oread.cc.ukans.edu
The University of Kansas                        |  rhill@ampere.ece.ukans.edu
Computer Science & Computer Engineering Major   |  AOL: RobertHill
--------------------------------------------------------------------------------
Re: ORCA/C 2.0 is shipping! (Was Re: Missing library functions)
#395
Author: Soenke Behrens
Date: Wed, 16 Dec 1992 20:17
20 lines
1551 bytes
2ftrribbon@kuhub.cc.ukans.edu (Robert Hill) writes:

>In article <1glthpINNjad@charnel.ecst.csuchico.edu>, jamesb@ecst.csuchico.edu 
>(James L. Brookes) writes:
>> vfprintf (I've seen a vsprintf addon, but no vfprintf)
>	I just recieved the ORCA/C 2.0 brochure, and it lists vfprintf,
>vprintf, and vsprintf.  Apparently, 2.0 is shipping;  if you bought ORCA/C
>before Sept. 1, 1992, the upgrade is $25, otherwise it is $50 (until Feb. 28,
>1993).

I thought the other way round? New users pay $25, old users $50?
Anyway, I surely hope it has improved by 347% since D4 ... what use is a
faster compiler that produces code that crashes faster? :)

Soenke
-- 
===========================================================================
More than silver, more than gold, I need   !    behrenss@informatik.
electricity. I need it for my dreams.      !    tu-muenchen.de
(RACTER)                                   !  FIDO: 2:246/13 Soenke Behrens
Re: ORCA/C 2.0 is shipping! (Was Re: Missing library functions)
#397
Author: Jay Krell
Date: Wed, 16 Dec 1992 21:17
4 lines
767 bytes
I think Mike said on Sunday (12/13) that he expected to ship late next
week. This in the GEnie RTC posted to c.s.a2.
 
  --Jay, jay.krell@cornell.edu
Re: ORCA/C 2.0 is shipping!
#396
Author: Andy McFadden
Date: Wed, 16 Dec 1992 21:21
200 lines
8851 bytes
In article <1992Dec16.130513.45685@kuhub.cc.ukans.edu> 2ftrribbon@kuhub.cc.ukans.edu (Robert Hill) writes:
>	I just recieved the ORCA/C 2.0 brochure, and it lists vfprintf,
[...]

On an entirely unrelated note, version 4 of the JPEG sources is now
available (try ftp.uu.net, in graphics/jpeg or thereabouts).  Would be an
interesting test of Orca/C 2.0.

v4 is supposed to be 2-3 times faster (depending on architecture) and more
portable.  It also contains some misc features.

If you're just dying to know more about JPEG, try this:

-----
Article 3851 of comp.compression:
>From: tgl+@cs.cmu.edu (Tom Lane)
Newsgroups: comp.compression,comp.compression.research,comp.graphics,sci.image.processing,alt.graphics.pixutils,misc.books.technical
Subject: Review: "JPEG Still Image Data Compression Standard"
Date: 6 Nov 92 15:50:37 GMT
Sender: news@cs.cmu.edu (Usenet News System)
Lines: 172

I have been sent galley proofs for an upcoming textbook about JPEG.  The book
looks like an invaluable resource for anyone who is implementing JPEG or is
curious about its inner workings.  Herewith a review and ordering information.

Vital Statistics:

	JPEG Still Image Data Compression Standard
	by William B. Pennebaker and Joan L. Mitchell
	published by Van Nostrand Reinhold, 1993.  ISBN 0-442-01272-1.
	600 pages, 300 illustrations (all grayscale except for the cover).
	Includes complete text of ISO JPEG standards (DIS 10918-1 and draft
	DIS 10918-2).  Price US$59.95.

Review:

This is by far the most complete exposition of JPEG in existence.  It's
written by two people who know what they are talking about: both serve on
the ISO JPEG standards committee.  If you want to know how JPEG works or
why it works that way, this is the book to have.

The main text of the book consists of a thorough introduction to the JPEG
algorithms and the principles behind them.  The writing is a bit dry and
academic in tone, but is quite clear.  The more technical or mathematical
material is separated out into its own sections, so that you can read the
book at any of several levels of difficulty depending on your needs.
In particular, the authors have kept implementation details separate from
information needed by JPEG end users or programmers integrating JPEG into
applications.  It's possible to start with very little knowledge of either
image processing or data compression theory, and still follow the book.

Both theoretical and practical aspects of JPEG are covered.  Topics include
the human visual limitations exploited by JPEG's lossy compression, basic
entropy coding concepts, actual compression ratios achievable with JPEG,
possible future enhancements to JPEG, and much more.  There's even a chapter
listing many of the available hardware and software implementations of JPEG;
a list obsolete on the day it's published, of course, but a good starting
point if you are searching for JPEG chips or programs.

The book is particularly strong in describing the design and uses of the
advanced optional features of JPEG, such as the progressive and hierarchical
operating modes.  These advanced features are not widely implemented yet, but
I think the book will help to popularize them.

Two appendices, amounting to almost half of the book, provide the full text
of the international standards documents for JPEG.  (Part 2 of the standard,
covering compliance testing, is given in draft form since it is not yet
approved.)  These appendices alone are worth more than the price of the book:
buying photocopies of the standards from ANSI would set you back about $150.
Furthermore, since the standards are written in the usual bureaucratese,
the main text of the book is an invaluable aid to actually understanding them.

About the only fault I can find with the book is that it fails to warn the
reader that some of the algorithms discussed are patented.  With four whole
chapters devoted to aspects of arithmetic coding (Q-coding), you'd think there
would have been room to mention that you can't use it without a license from
IBM.  This omission may be reasonable in a textbook, but for the implementers
who are the likely audience of this book, it is very important information.
(Strictly speaking, patent information *is* in the book, since there is a
list of relevant patent numbers in Annex L of the ISO standard.  But in my
opinion the patent situation deserves more prominent discussion.  You would
certainly never guess from the book that many implementers are avoiding the
arithmetic coding option due to patent considerations.)

All in all, I recommend this book highly.  I learned some things by reading
it; you will too.


Table of Contents:

These are the chapter titles and my one-line summaries of what's in each
chapter.

1. Introduction
2. Image concepts and vocabulary
	what is a digital image?
3. Aspects of the human visual system
	limitations we can exploit in image coding
4. The discrete cosine transform (DCT)
	motivation, mathematical definition, fast algorithms
5. Image compression systems
	the basic architecture of JPEG
6. JPEG modes of operation
	baseline, progressive, hierarchical, and lossless operating modes
7. JPEG syntax and data organization
	layout of a JPEG data stream
8. Entropy coding concepts
	basic concepts of data compression: modeling versus coding
9. JPEG binary arithmetic coding
	how the Q-coder works (but not why---that comes later)
10. JPEG coding models
	the statistical data models used for entropy coding
11. JPEG Huffman entropy coding
	how the baseline entropy coder works
12. Arithmetic coding statistical models
	three more chapters on the arithmetic entropy coder...
	(can you guess this is near & dear to the authors' hearts?)
13. More on arithmetic coding
14. Probability estimation
15. Compression performance
	how well does JPEG work?
16. JPEG enhancements
	improvements possible within the letter of the standard
17. JPEG applications and vendors
	thirty-four organizations selling/using JPEG implementations or
	JPEG-based products  (yes, the free IJG software is listed)
18. Overview of CCITT, ISO, and IEC
	how do you create an international standard, anyway?
19. History of JPEG
20. Other image compression standards
	brief descriptions of G3/G4 fax, H.261, JBIG, MPEG
21. Possible future JPEG directions
	what's likely to show up in JPEG-II
Appendix A: ISO DIS 10918-1
	text of the actual ISO JPEG standard
Appendix B: ISO draft DIS 10918-2
	text of the draft standard on compliance testing
References
	nearly 200 of 'em...
Index
	my galley proof has no index, but I'm told the index will cover
	the standards as well as the main text; this will be VERY useful.


Ordering information:

The book is being printed now and should be available before the end of
November 1992.  In particular, Van Nostrand Reinhold has promised to have
copies for sale at the COMDEX expo (at a 20% discount yet; ask at the IBM
OEM booth).  If you're not going to COMDEX, you can order from:

      o Van Nostrand Reinhold
        Mail Order Department
        P. O. Box 668
        Florence, KY 41022-0668
        Phone: 800/926-2665       Fax:   600/525-7778

        ISBN 0-442-01272-1
        Payment via check or credit card (Visa, MasterCard,
        American Express).

      o AIIM BookStore
        1100 Wayne Avenue, Suite 1100
        Silver Spring, MD 20910
        Phone: 301/587-8202       Fax:   301/587-2711

        Catalog number B714
        Payment via check, purchase order, or credit card (Visa,
        MasterCard, American Express).

      o JLM's Bookcase
        7 Cherry Hill Circle
        Ossining, NY 10562

        Payment via check (In the US, $59.95 + $2.00 shipping + sales tax
        for NY state residents.)

If you are outside the US, VNR's foreign distributors are:

	Chapman and Hall
	2-6 Boundary Row
	London, SE1 8HN, England

	Thomas Nelson Australia
	102 Dodds Street
	South Melbourne 3205
	Victoria, Australia

Any good bookstore should be able to order the book for you, too.


			Dr. Thomas G. Lane
			organizer, Independent JPEG Group



-- 
fadden@uts.amdahl.com (Andy McFadden)
[ Above opinions are mine, Amdahl has nothing to do with them, etc, etc. ]
Re: ORCA/C 2.0 is shipping! (Was Re: Missing library functions)
#398
Author: Steven T Chiang
Date: Wed, 16 Dec 1992 22:27
19 lines
1516 bytes
In article <1992Dec16.130513.45685@kuhub.cc.ukans.edu> 2ftrribbon@kuhub.cc.ukans.edu (Robert Hill) writes:
>
>	I just recieved the ORCA/C 2.0 brochure, and it lists vfprintf,
>vprintf, and vsprintf.  Apparently, 2.0 is shipping;  if you bought ORCA/C
>before Sept. 1, 1992, the upgrade is $25, otherwise it is $50 (until Feb. 28,
>1993).
>
>	I'm looking forward to getting the update, so I better go order it 
>now! :)

	If you read the transcript on CSA2, it's not shipping yet.
Mike W. said on the chat that it would be about 2-3 weeks.

>Robert Hill                                     |  rhill@oread.cc.ukans.edu

Steven Chiang                  Order - DreamGrafix:  The ONLY 16/256/3200
stc7@cunixb.cc.columbia.edu       color paint program for the Apple IIGS.
America On_Line:  DWS Steve
Genie:  S.Chiang4              Apple IIGS Forever!
Re: ORCA/C 2.0 is shipping! (Was Re: Missing library functions)
#399
Author: Robert Hill
Date: Wed, 16 Dec 1992 23:11
20 lines
1528 bytes
In article <behrenss.724537037@hphalle6>, behrenss@Informatik.TU-Muenchen.DE 
(Soenke Behrens) writes:
> 2ftrribbon@kuhub.cc.ukans.edu (Robert Hill) writes:
> 
>>Apparently, 2.0 is shipping;  if you bought ORCA/C
>>before Sept. 1, 1992, the upgrade is $25, otherwise it is $50 (until Feb. 28,
>>1993).
> 
> I thought the other way round? New users pay $25, old users $50?
> Anyway, I surely hope it has improved by 347% since D4 ... what use is a
> faster compiler that produces code that crashes faster? :)

	You are right about the pricing.  I meant to write if you bought ORCA/C
after Sept. 1, the upgrade was $25.
 
--------------------------------------------------------------------------------
Robert Hill                                     |  rhill@oread.cc.ukans.edu
The University of Kansas                        |  rhill@ampere.ece.ukans.edu
Computer Science & Computer Engineering Major   |  AOL: RobertHill
--------------------------------------------------------------------------------
Re: ORCA/C 2.0 is available for ordering (but not shipping)
#400
Author: Robert Hill
Date: Wed, 16 Dec 1992 23:52
15 lines
1403 bytes
In article <1992Dec16.222733.17010@news.columbia.edu>, stc7@cunixb.cc.columbia.edu (Steven T Chiang) writes:
> 	If you read the transcript on CSA2, it's not shipping yet.
> Mike W. said on the chat that it would be about 2-3 weeks.

	Well, the letter says that it is "here."  I probably shouldn't have
said shipping, but rather, that they are taking orders for it.  BTW, what
transcipt?  It never showed up here.

> stc7@cunixb.cc.columbia.edu       color paint program for the Apple IIGS.

--------------------------------------------------------------------------------
Robert Hill                                     |  rhill@oread.cc.ukans.edu
The University of Kansas                        |  rhill@ampere.ece.ukans.edu
Computer Science & Computer Engineering Major   |  AOL: RobertHill
--------------------------------------------------------------------------------
Re: Missing library functions
#413
Author: David.Empson
Date: Sat, 19 Dec 1992 07:45
21 lines
1438 bytes
In article <1glthpINNjad@charnel.ecst.csuchico.edu> jamesb@ecst.csuchico.edu (James L. Brookes) writes:
> I'm working on some software that requires the following library 
> functions, and was wondering if anyone knew if there were workarounds,
> or if someone was already writing these routines:

[Others have already commented on mktemp, vfprintf and execvp]

> fileno

You'll probably find that fileno isn't usable in quite the normal way.
On UNIX and DOS systems, fileno will return the file handle used by
the low-level open(), read(), write() and close() functions to access
the file.  In ORCA/C, the buffered file I/O routines don't call the
low-level routines, rather they call GS/OS directly.  I suspect a
fileno() macro would return the GS/OS file reference number, which is
probably different to the one used by open(), read(), etc.
-- 
David Empson

Internet: David.Empson@bbs.actrix.gen.nz    EMPSON_D@kosmos.wcc.govt.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand
Re: ORCA/C 2.0 is shipping! (Was Re: Missing library functions)
#414
Author: David.Empson
Date: Sat, 19 Dec 1992 07:48
19 lines
1240 bytes
In article <1992Dec16.130513.45685@kuhub.cc.ukans.edu> 2ftrribbon@kuhub.cc.ukans.edu (Robert Hill) writes:
> 
> 	I just recieved the ORCA/C 2.0 brochure, and it lists vfprintf,
> vprintf, and vsprintf.  Apparently, 2.0 is shipping;  if you bought ORCA/C
> before Sept. 1, 1992, the upgrade is $25, otherwise it is $50 (until Feb. 28,
> 1993).

I haven't seen the brochure yet, but I suspect you got those prices
back to front.  The people who bought it most recently should get the
cheaper upgrade price.

:-)

Good news!!  I hope the bugs I reported have been fixed...
-- 
David Empson

Internet: David.Empson@bbs.actrix.gen.nz    EMPSON_D@kosmos.wcc.govt.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand
Re: Missing library functions
#417
Author: Jawaid Bazyar
Date: Sat, 19 Dec 1992 09:05
20 lines
1477 bytes
David.Empson@bbs.actrix.gen.nz writes:

>You'll probably find that fileno isn't usable in quite the normal way.
>On UNIX and DOS systems, fileno will return the file handle used by
>the low-level open(), read(), write() and close() functions to access
>the file.  In ORCA/C, the buffered file I/O routines don't call the
>low-level routines, rather they call GS/OS directly.  I suspect a
>fileno() macro would return the GS/OS file reference number, which is
>probably different to the one used by open(), read(), etc.

  This is true with the standard ORCA/C libraries, but with the GNO
libraries I also replace open/read/write, etc., so that they deal
with GS/OS RefNums and not arbitrary integers maintained by the
library.

-- 
 Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
 Procyon, Inc.              |   for the Apple IIgs!   
 bazyar@cs.uiuc.edu         |   P.O Box 620334
 --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads