Biggest reason I can think against it (just devil's advocate) is performance if you had a search path that fopen/fdopen used then for every call of fopen/fdopen they would search the path (or could potentially search they path) this could cause excessive overhead on the lpar. think of the extra IO that would be occurring performing searches
William 'Doug' Carroll -----Original Message----- From: Linux on 390 Port [mailto:[email protected]] On Behalf Of McKown, John Sent: Wednesday, March 17, 2010 3:46 PM To: [email protected] Subject: Question from a UNIX newbie. I actually saw this on another support forum and thought it was an interesting question. So I thought that I'd ask it here to see if anyone has any insight. There are a number of applications which use environment variables to specify a set of subdirectories to search in order to find a file. Why isn't there a generalized way to do this? Example: When looking for a command, if the command's subdirectory is not specified, the shell will look for the command in the directories listed in the $PATH environment variable. It might be helpful to have this extended to a general case for fopen() and fdopen(). Can anybody think of a reason why this would be unwise? If the variable were unset, then it would only search the current working directory. If set, it would only search the specified directory, excluding the cwd unless a period were included somewhere within the set of directories in the variable. Just a weird question that sounded interestion. And, yes, I know how to implement it myself in my own code. John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell [email protected] * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
