Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [PATCH] unused code in user/netware/userinfo.c: msg#00172

apache.apr.devel

Subject: Re: [PATCH] unused code in user/netware/userinfo.c

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>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation