Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!jarthur!polyslo!vlsi3b15!vax1.cc.lehigh.edu!lusgr From: lusgr@vax1.cc.lehigh.edu (Steve Roseman) Newsgroups: comp.unix.aix Subject: Need subroutine to return full file path name Message-ID: <10071.25e01a55@vax1.cc.lehigh.edu> Date: 19 Feb 90 21:09:57 GMT Organization: Lehigh University Lines: 24 I need to find out the full path name of a file from a full or partial name entered by the user, so other users can access the file (assuming proper permissions, etc.) For example, a user currently in /u/mydir/sub: input: test.c output: /u/mydir/sub/test.c input: /u/frog output: /u/frog input: ../filename output: /u/mydir/filename SUN OS has a routine realpath(3), but that doesn't do very much good with AIX 2.2.1. I have looked through the AIX OS Tech Ref manual, but can't find anything. If anyone has a lead, or a routine, I would appreciate not having to write it myself. Thanks, Steve ------------------------------------------------------------------------- Steve Roseman Lehigh University Computing Center LUSGR@VAX1.CC.Lehigh.EDU