|
|
Choosing A Webhost: |
Re: [PATCH] unused code in user/netware/userinfo.c: msg#00172apache.apr.devel
APR is a cross platform library. The code is there because whether the functions are actually implemented or not, the API must exist in order for APR on NetWare to remain API compatible with APR on other platforms for porting purposes. Since this functionality can not be implemented today on NetWare is the reason why they return the value APR_ENOTIMPL. There already is an Open Source port of BASH for NetWare which, if Apache were running within a BASH shell, would allow for UID/GID functionality. So yes it could be implemented in the foreseeable future. As for the getpwnam_safe() static function, whether it stays or goes doesn't really matter. It was left there after the API's were stubbed out for NetWare and if or when these APR functions are ever actually implemented on NetWare, it may become necessary again. Brad >>> julianfoad@xxxxxxxxxxxxxxx Tuesday, November 23, 2004 3:22:17 PM >>> Brad Nicholes wrote: > You are right, it is dead code for now. The reason why it is there > is because this file is just a stub rip-off of the Unix implementation. > It is just waiting for the day when the NetWare OS supports UID/GID for > running applications and services. On the NetWare OS applications and > services don't run as a user, they just run. Therefore the underlying > APIs like getuid(), getgid() and getpwnam() don't exist on NetWare. > Even if they did, they wouldn't return anything useful. So for now, > this is just a stub implementation. You seem to be implying that there is a reason for this code to exist: that Netware is likely to gain UID/GID support in the forseeable future and that this code will be useful when it does, and that having the code already there will be considerably more useful than a programmer having to write it again or copy it from the Unix implementation. Is all of that correct? - Julian
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [PATCH] unused code in user/netware/userinfo.c, Julian Foad |
|---|---|
| Next by Date: | Re: [PATCH] unused code in user/netware/userinfo.c, Garrett Rooney |
| Previous by Thread: | Re: [PATCH] unused code in user/netware/userinfo.c, Julian Foad |
| Next by Thread: | Re: [PATCH] unused code in user/netware/userinfo.c, Garrett Rooney |
| 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 |