inodes and terminal sequences

William Breck breck at umvlsi.ECS.UMASS.EDU
Sat Jun 3 06:07:33 AEST 1989


Hello out there...

In search of info...

I'm writing a C routine that prints a list of all executable files
found in the path environment variable.  I open each dir and get the
info stored there on each file.  I would like to use each file's inode
number to look up the permissions for it; I've been unable to find a
system call that does this...  Is there such a thing?  Right now I'm
putting together a complete pathname for each file and calling stat()
with this as the argument... kind of a pain; lot's of strcat()
funcs...

In search of more info...

I'm also writing a program to make printing on a VMS system
user-friendly.  Basically the program throws up a list of fields on
screen and lets you bounce around to set them untill you go to the
action field and tell it to print.  The programs output is a VMS
command line with the system print command and the necessary
qualifiers.  I'm developing the program on an Ultrix system; I'll port
it to VMS later.  Anyway, my question is: Is there a C routine or sys
call that captures terminal escape sequences from arrow and keypad
keys?  It should return an appropriate value so that I can change to a
different input buffer and use curses to move the cursor.  (The
terminal will be in c-break mode.)

Thanks in advance!


----------------------------------------------------------------
   "The ones who give the orders are not the ones who die..."

Bill Breck ...  University of Massachusetts at Amherst
Internet: breck at umvlsi.ecs.umass.edu  Bitnet: breck at umaecs



More information about the Comp.unix.questions mailing list