From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "peter a. cejchan" Message-ID: <71652467.0204240138.6ebf39ec@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit References: <20020424081211.A211@next.gli.cas.cz> Subject: Re: [9fans] What is this? Date: Wed, 24 Apr 2002 09:45:37 +0000 Topicbox-Message-UUID: 7a1f6ea2-eaca-11e9-9e20-41e7f4b1d025 pac@cejchan.gli.cas.cz (Peter A. Cejchan) wrote in message news:<20020424081211.A211@next.gli.cas.cz>... > ######################### > > term% file ./pstotext > ./pstotext: 386 plan 9 executable > > term% grep denied *.[ch] > > term% grep 'Permission denied' * > > [the following is piggy, but worked :-) ... ] > pstotext: [snip] ... blah blah blah ...Directory not emptyNottyNxioPermission deniedBroken pipeRead-only file system ... blah blah blah ...[snip] > > [...thus pointing me at sys libs] > term% rgrep 'Permission denied' '*.c' /sys/src/ape > /sys/src/ape/cmd/pdksh/missing.c: return "Permission denied"; > /sys/src/ape/lib/ap/stdio/strerror.c: "Permission denied", > > term% rgrep 'Permission denied' '*.h' /sys/src/ape > > term% > [rgrep is "recursive grep" script] > R > term% rgrep 'EPERM' '*.h' /sys/include > /sys/include/ape/errno.h:#define EPERM 30 > > term% > [thus, it is probably #define EPERM 30 from /sys/include/ape/errno.h ... however, errno.h is included so many times from allmost everywhere, that I am (hopefully temporarily) lost :-((( ... I'm digging. ] > > ######################### > C gurus: Any hints, please? A more comprehensive description of errno 30 than "Permission denied" is welcome... > ######################### > . > TIA, > cheers, > ++pac. > > --WOW! WOW! WOW!_WOW!_WOW!_WOW!_WOW!_WOW!_WOW!_WOW!_ YUP !!! Problem solved: it was traced down to an illegal char in pathname (,). Uffff. (++pac grows ;-)). Now pstotext (a more powerful alternative to ps2ascii) runs on Plan 9 R3. Just wanted to tell it somebody. How do YOU grep ps/pdf documents? Thanks to all, friends! ++pac.