|
|
Choosing A Webhost: |
Re: Long-awaited feature implemented: removing of files and directories not: msg#00026web.wget.general
On Wed, Jan 08, 2003 at 11:12:50AM +0100, Daniel Stenberg wrote: > On Wed, 8 Jan 2003, Alexey Dokuchaev wrote: > > > PS. I'm developing under FreeBSD, and my patch will not compile cleanly > > under Linux unless two small changes are made: change "dp->d_namlen" to > > "dp->d_reclen" on lines 158 and 159 of patch. I wonder why in hell Linux > > does things like that?? (With all due respect.) > > I'd guess that they do that because POSIX doesn't specify those things with > enough details, so I'm afraid both FreeBSD and Linux can claim POSIX > readdir() compliance anyway. > > The d_name[] field of the dirent struct is the only field you can rely on to > exist. > > Your patch will thus unfortunately very likely break on other platforms as > well. OK, I've changed the patch slightly so it does not rely on d_{rec,nam}len but calls strlen() instead. Compiles cleanly on FreeBSD, Linux, and Solaris now. Further reviews welcome. ./danfe
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RFC: make "--html-extension" a default for "wget -r -k"., Dr . Tilmann Bubeck |
|---|---|
| Next by Date: | Re: Long-awaited feature implemented: removing of files and directories not present on remote FTP server, Alexey Dokuchaev |
| Previous by Thread: | Re: Long-awaited feature implemented: removing of files and directories not present on remote FTP server, Alexey Dokuchaev |
| Next by Thread: | Re: Long-awaited feature implemented: removing of files and directories not present on remote FTP server, Alexey Dokuchaev |
| 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 |