diff options
Diffstat (limited to 'rubbos/app/httpd-2.0.64/srclib/apr/user/unix')
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/groupinfo.o | bin | 10648 -> 0 bytes | |||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/userinfo.o | bin | 15040 -> 0 bytes | |||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile | 13 | ||||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile.in | 13 | ||||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.c | 108 | ||||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.lo | 12 | ||||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.o | bin | 10584 -> 0 bytes | |||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.c | 177 | ||||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.lo | 12 | ||||
-rw-r--r-- | rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.o | bin | 15544 -> 0 bytes |
10 files changed, 0 insertions, 335 deletions
diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/groupinfo.o b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/groupinfo.o Binary files differdeleted file mode 100644 index fcf49822..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/groupinfo.o +++ /dev/null diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/userinfo.o b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/userinfo.o Binary files differdeleted file mode 100644 index d8007d69..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/.libs/userinfo.o +++ /dev/null diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile deleted file mode 100644 index 1a98e0ec..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -srcdir = . - - -TARGETS = userinfo.lo groupinfo.lo - -# bring in rules.mk for standard functionality -include /bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr/build/apr_rules.mk - -INCDIR=../../include -DEFOSDIR=$(INCDIR)/arch/unix -INCLUDES=-I$(INCDIR) -I$(DEFOSDIR) - -# DO NOT REMOVE diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile.in b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile.in deleted file mode 100644 index 100498f5..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/Makefile.in +++ /dev/null @@ -1,13 +0,0 @@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -TARGETS = userinfo.lo groupinfo.lo - -# bring in rules.mk for standard functionality -@INCLUDE_RULES@ - -INCDIR=../../include -DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ -INCLUDES=-I$(INCDIR) -I$(DEFOSDIR) - -# DO NOT REMOVE diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.c b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.c deleted file mode 100644 index 8df3df85..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.c +++ /dev/null @@ -1,108 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "apr_strings.h" -#include "apr_portable.h" -#include "apr_user.h" -#include "apr_private.h" -#ifdef HAVE_GRP_H -#include <grp.h> -#endif -#if APR_HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif -#if APR_HAVE_UNISTD_H -#include <unistd.h> /* for _POSIX_THREAD_SAFE_FUNCTIONS */ -#endif - -APR_DECLARE(apr_status_t) apr_gid_name_get(char **groupname, apr_gid_t groupid, - apr_pool_t *p) -{ - struct group *gr; -#ifndef BEOS - -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETGRGID_R) - struct group grp; - char grbuf[512]; - apr_status_t rv; - - /* See comment in getpwnam_safe on error handling. */ - rv = getgrgid_r(groupid, &grp, grbuf, sizeof(grbuf), &gr); - if (rv) { - return rv; - } - if (gr == NULL) { - return APR_ENOENT; - } -#else - errno = 0; - if ((gr = getgrgid(groupid)) == NULL) { - return errno ? errno : APR_ENOENT; - } -#endif - *groupname = apr_pstrdup(p, gr->gr_name); -#endif - return APR_SUCCESS; -} - -APR_DECLARE(apr_status_t) apr_gid_get(apr_gid_t *groupid, - const char *groupname, apr_pool_t *p) -{ - struct group *gr; -#ifndef BEOS - -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETGRNAM_R) - struct group grp; - char grbuf[512]; - apr_status_t rv; - - /* See comment in getpwnam_safe on error handling. */ - rv = getgrnam_r(groupname, &grp, grbuf, sizeof(grbuf), &gr); - if (rv) { - return rv; - } - if (gr == NULL) { - return APR_ENOENT; - } -#else - errno = 0; - if ((gr = getgrnam(groupname)) == NULL) { - return errno ? errno : APR_ENOENT; - } -#endif - *groupid = gr->gr_gid; -#endif - return APR_SUCCESS; -} - -/* Deprecated */ -APR_DECLARE(apr_status_t) apr_get_groupname(char **groupname, - apr_gid_t groupid, apr_pool_t *p) -{ - return apr_gid_name_get(groupname, groupid, p); -} - -APR_DECLARE(apr_status_t) apr_group_name_get(char **groupname, - apr_gid_t groupid, apr_pool_t *p) -{ - return apr_gid_name_get(groupname, groupid, p); -} - -APR_DECLARE(apr_status_t) apr_get_groupid(apr_gid_t *groupid, - const char *groupname, apr_pool_t *p) -{ - return apr_gid_get(groupid, groupname, p); -} diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.lo b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.lo deleted file mode 100644 index 815b0412..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.lo +++ /dev/null @@ -1,12 +0,0 @@ -# groupinfo.lo - a libtool object file -# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.493 2008/02/01 16:58:18) -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# Name of the PIC object. -pic_object='.libs/groupinfo.o' - -# Name of the non-PIC object. -non_pic_object='groupinfo.o' - diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.o b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.o Binary files differdeleted file mode 100644 index 5ae3c860..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/groupinfo.o +++ /dev/null diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.c b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.c deleted file mode 100644 index f50f8053..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.c +++ /dev/null @@ -1,177 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "apr_strings.h" -#include "apr_portable.h" -#include "apr_user.h" -#include "apr_private.h" -#ifdef HAVE_PWD_H -#include <pwd.h> -#endif -#if APR_HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif -#if APR_HAVE_UNISTD_H -#include <unistd.h> /* for _POSIX_THREAD_SAFE_FUNCTIONS */ -#endif -#define APR_WANT_MEMFUNC -#include "apr_want.h" - -#define PWBUF_SIZE 512 - -static apr_status_t getpwnam_safe(const char *username, - struct passwd *pw, - char pwbuf[PWBUF_SIZE]) -{ - struct passwd *pwptr; -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWNAM_R) - apr_status_t rv; - - /* POSIX defines getpwnam_r() et al to return the error number - * rather than set errno, and requires pwptr to be set to NULL if - * the entry is not found, imply that "not found" is not an error - * condition; some implementations do return 0 with pwptr set to - * NULL. */ - rv = getpwnam_r(username, pw, pwbuf, PWBUF_SIZE, &pwptr); - if (rv) { - return rv; - } - if (pwptr == NULL) { - return APR_ENOENT; - } -#else - /* Some platforms (e.g. FreeBSD 4.x) do not set errno on NULL "not - * found" return values for the non-threadsafe function either. */ - errno = 0; - if ((pwptr = getpwnam(username)) != NULL) { - memcpy(pw, pwptr, sizeof *pw); - } - else { - return errno ? errno : APR_ENOENT; - } -#endif - return APR_SUCCESS; -} - -APR_DECLARE(apr_status_t) apr_uid_homepath_get(char **dirname, - const char *username, - apr_pool_t *p) -{ - struct passwd pw; - char pwbuf[PWBUF_SIZE]; - apr_status_t rv; - - if ((rv = getpwnam_safe(username, &pw, pwbuf)) != APR_SUCCESS) - return rv; - -#ifdef OS2 - /* Need to manually add user name for OS/2 */ - *dirname = apr_pstrcat(p, pw.pw_dir, pw.pw_name, NULL); -#else - *dirname = apr_pstrdup(p, pw.pw_dir); -#endif - return APR_SUCCESS; -} - - - -APR_DECLARE(apr_status_t) apr_uid_current(apr_uid_t *uid, - apr_gid_t *gid, - apr_pool_t *p) -{ - *uid = getuid(); - *gid = getgid(); - - return APR_SUCCESS; -} - - - - -APR_DECLARE(apr_status_t) apr_uid_get(apr_uid_t *uid, apr_gid_t *gid, - const char *username, apr_pool_t *p) -{ - struct passwd pw; - char pwbuf[PWBUF_SIZE]; - apr_status_t rv; - - if ((rv = getpwnam_safe(username, &pw, pwbuf)) != APR_SUCCESS) - return rv; - - *uid = pw.pw_uid; - *gid = pw.pw_gid; - - return APR_SUCCESS; -} - -APR_DECLARE(apr_status_t) apr_uid_name_get(char **username, apr_uid_t userid, - apr_pool_t *p) -{ - struct passwd *pw; -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWUID_R) - struct passwd pwd; - char pwbuf[PWBUF_SIZE]; - apr_status_t rv; - - rv = getpwuid_r(userid, &pwd, pwbuf, sizeof(pwbuf), &pw); - if (rv) { - return rv; - } - - if (pw == NULL) { - return APR_ENOENT; - } - -#else - errno = 0; - if ((pw = getpwuid(userid)) == NULL) { - return errno ? errno : APR_ENOENT; - } -#endif - *username = apr_pstrdup(p, pw->pw_name); - return APR_SUCCESS; -} - -/* deprecated */ -APR_DECLARE(apr_status_t) apr_get_home_directory(char **dirname, - const char *username, - apr_pool_t *p) -{ - return apr_uid_homepath_get(dirname, username, p); -} - -/* deprecated */ -APR_DECLARE(apr_status_t) apr_get_userid(apr_uid_t *uid, apr_gid_t *gid, - const char *username, apr_pool_t *p) -{ - return apr_uid_get(uid, gid, username, p); -} - -/* deprecated */ -APR_DECLARE(apr_status_t) apr_current_userid(apr_uid_t *uid, - apr_gid_t *gid, - apr_pool_t *p) -{ - return apr_uid_current(uid, gid, p); -} - -/* deprecated */ -APR_DECLARE(apr_status_t) apr_get_username(char **username, apr_uid_t userid, - apr_pool_t *p) -{ - return apr_uid_name_get(username, userid, p); -} - diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.lo b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.lo deleted file mode 100644 index 9ac20075..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.lo +++ /dev/null @@ -1,12 +0,0 @@ -# userinfo.lo - a libtool object file -# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.493 2008/02/01 16:58:18) -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# Name of the PIC object. -pic_object='.libs/userinfo.o' - -# Name of the non-PIC object. -non_pic_object='userinfo.o' - diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.o b/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.o Binary files differdeleted file mode 100644 index 47290d17..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/user/unix/userinfo.o +++ /dev/null |