Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Xatm -- comments?



On Mon, 5 Apr 1999, Chris Sekiya wrote:

> Just being used as a rasterizer, I think, which makes the diagram somewhat
> wrong.

Yep.  Mitte:

   execlp("gs", "gs", "-dSAFER", "-sDEVICE=bit",
                       "-sOutputFile=-",
                       "-q", "-dNOPAUSE",
                       "-c",
                       "/.setpagesize { //systemdict /statusdict get begin
                        .setpagesize end } bind def",-", NULL);

_This_ is sorta scary:

#if 0
        sprintf(dirname, "/proc/%d", gsPid);
        if(stat(dirname, &s) != 0) { /* ghostscript  */
                printf("gs not responding. cleanup & restart gs.\n");
                alarm(0);
                close(gs[1][0]);
                close(gs[0][1]);
                gsPid = 0;
                gsInit();
        }
#endif

*snicker* At least it's #ifdef'd out.

-- Chris

-------------------------------------------------------------------
Next Technical Meeting: April 10 (Sat), 12:30   place: Temple Univ.
*** featuring: LabView and UDB/DB2 for Linux
Next Nomikai: May 21 (Fri), 19:30    Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links