|
|
Choosing A Webhost: |
Bug in unix apr_stat involving the name field.: msg#00136apache.apr.devel
The following works on win32 but not on linux. Looks like the name field of apr_file_t is never set on unix so the value is garbage. apr_file_t finfo; apr_status_t s = apr_stat(&finfo, filename, APR_FINFO_NAME | APR_FINFO_SIZE, pool); if (s == APR_SUCCESS) { std::cout << "Path+Name: " << finfo.fname << std::endl; std::cout << "Name: " << finfo.name << std::endl; std::cout << "Size: " << finfo.size << std::endl; } I'm using apr-1.0.0 Thanks, Scott Greig Altair Engineering, Inc.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: renaming apr_filetype enum entries, Greg Stein |
|---|---|
| Next by Date: | Re: Bug in unix apr_stat involving the name field., William A. Rowe, Jr. |
| Previous by Thread: | Bug report for APR [2004/09/19], bugzilla |
| Next by Thread: | Re: Bug in unix apr_stat involving the name field., William A. Rowe, Jr. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |