/[Apache-SVN]/httpd/httpd/trunk/os/unix/unixd.h
ViewVC logotype

Log of /httpd/httpd/trunk/os/unix/unixd.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 739487 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 31 01:46:56 2009 UTC (15 years, 5 months ago) by fielding
File length: 3662 byte(s)
Diff to previous 739150 (colored) , to selected 7394 (colored)
use a local module header file to store the function prototype
for ap_unixd_setup_child() that is used outside this module.



Revision 739150 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 30 02:48:08 2009 UTC (15 years, 5 months ago) by fielding
File length: 3734 byte(s)
Diff to previous 722399 (colored) , to selected 7394 (colored)
revert r711228: the ap_unixd_setup_child prototype needs to go somewhere.


Revision 722399 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 2 08:13:36 2008 UTC (15 years, 7 months ago) by pquerna
File length: 3662 byte(s)
Diff to previous 711228 (colored) , to selected 7394 (colored)
API Cleanup in preperation for 2.4.x, make sure all exported functions or variables contain an ap_ prefix.


Revision 711228 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 4 11:36:31 2008 UTC (15 years, 8 months ago) by rpluem
File length: 3593 byte(s)
Diff to previous 711146 (colored) , to selected 7394 (colored)
* unixd_setup_child is no longer implemented by unixd.c.


Revision 711146 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 4 00:44:56 2008 UTC (15 years, 8 months ago) by niq
File length: 3662 byte(s)
Diff to previous 611483 (colored) , to selected 7394 (colored)
Further unixd hacks to remove duplication between old-unixd and mod_unixd,
and get it working with old MPMS[1] + mod_unixd.  It's still an uneasy
split, as some modules (mod_cgid, suexec)[2] also use unixd.
More thinking+hacking due.

[1] Should be prefork/worker/event, but only worker is tested.
[2] cgid is OK, suexec is untested.


Revision 611483 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 12 21:16:27 2008 UTC (16 years, 6 months ago) by niq
File length: 4093 byte(s)
Diff to previous 486436 (colored) , to selected 7394 (colored)
Support chroot on unix-family platforms
PR 43596 (Dimitar Pashev)


Revision 486436 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 13 00:34:58 2006 UTC (17 years, 7 months ago) by wrowe
File length: 3808 byte(s)
Diff to previous 420983 (colored) , to selected 7394 (colored)
APR_HAVE/AP_HAVE are ALWAYS defined, not always 1.


Revision 420983 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (18 years ago) by fielding
File length: 3811 byte(s)
Diff to previous 395228 (colored) , to selected 7394 (colored)
update license header text

Revision 395228 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 19 12:11:27 2006 UTC (18 years, 3 months ago) by colm
File length: 3664 byte(s)
Diff to previous 354389 (colored) , to selected 7394 (colored)
Update the copyright year in all .c, .h and .xml files


Revision 354389 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 6 09:48:19 2005 UTC (18 years, 7 months ago) by jorton
File length: 3664 byte(s)
Diff to previous 263931 (colored) , to selected 7394 (colored)
* os/unix/unixd.h: Use extern "C" linkage.

PR: 37357


Revision 263931 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 28 23:03:59 2005 UTC (18 years, 11 months ago) by ianh
File length: 3595 byte(s)
Diff to previous 151408 (colored) , to selected 7394 (colored)
Doxygen fixup / cleanup

submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman



Revision 151408 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (19 years, 5 months ago) by jerenkrantz
File length: 3514 byte(s)
Diff to previous 106103 (colored) , to selected 7394 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.


Revision 106103 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (19 years, 8 months ago) by nd
File length: 3478 byte(s)
Diff to previous 102619 (colored) , to selected 7394 (colored)
general property cleanup


Revision 102619 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (20 years, 5 months ago) by nd
File length: 3478 byte(s)
Diff to previous 102579 (colored) , to selected 7394 (colored)
fix name of The Apache Software Foundation


Revision 102579 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 8 13:13:10 2004 UTC (20 years, 5 months ago) by nd
File length: 3474 byte(s)
Diff to previous 102525 (colored) , to selected 7394 (colored)
fix copyright dates according to the first check in


Revision 102525 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (20 years, 5 months ago) by nd
File length: 3474 byte(s)
Diff to previous 102135 (colored) , to selected 7394 (colored)
apply Apache License, Version 2.0


Revision 102135 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (20 years, 7 months ago) by nd
File length: 5693 byte(s)
Diff to previous 100189 (colored) , to selected 7394 (colored)
update license to 2004.


Revision 100189 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 7 19:50:01 2003 UTC (21 years, 1 month ago) by trawick
File length: 5693 byte(s)
Diff to previous 98573 (colored) , to selected 7394 (colored)
Unix: Handle permissions settings for flock-based mutexes in
unixd_set_global|proc_mutex_perms().  Allow the functions to be
called for any type of mutex.

This resolves a fatal problem with mod_rewrite on systems where
APR uses flock-based mutex.

It simplifies mod_ssl as well, which had special logic to perform
the chown().  It fixed an init error with mod_ssl on systems where
flock is used when the user had no SSLMutex directive.

The Unix MPMs continue to call unixd_set_global|proc_mutex_perms()
only for SysV sems.  There is no permission problem with flock-based
accept mutexes since the child init logic for the MPMs is done
prior to switching identity.

PR:              20312


Revision 98573 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (21 years, 5 months ago) by nd
File length: 5304 byte(s)
Diff to previous 94968 (colored) , to selected 7394 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))


Revision 94968 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 6 18:19:53 2002 UTC (22 years, 2 months ago) by aaron
File length: 5304 byte(s)
Diff to previous 94791 (colored) , to selected 7394 (colored)
Add unixd_set_global_mutex_perms so we can set permissions on things like
SysV Semaphores in the core and modules.


Revision 94791 - (view) (download) (annotate) - [select for diffs]
Modified Thu Apr 25 07:18:40 2002 UTC (22 years, 3 months ago) by jerenkrantz
File length: 5191 byte(s)
Diff to previous 93918 (colored) , to selected 7394 (colored)
Fix suexec invocations from userdir - the ~ was not being prepended to the
uid per our convention.  Therefore, bad things would happen (like we
wouldn't cd to the right directory).

Add a flag to the ap_unix_identity_t structure to indicate if we are in
a userdir - if so, prefix the ~.

(Modified by Justin, but Colm's patch pointed me in the right direction.)

PR: 7810
Submitted by:	Colm <colmmacc@redbrick.dcu.ie>
Reviewed by:	Justin Erenkrantz


Revision 93918 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (22 years, 4 months ago) by fielding
File length: 5174 byte(s)
Diff to previous 93558 (colored) , to selected 7394 (colored)
Update our copyright for this year.


Revision 93558 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 24 08:33:56 2002 UTC (22 years, 5 months ago) by brianp
File length: 5174 byte(s)
Diff to previous 92598 (colored) , to selected 7394 (colored)
Removed unixd_set_lock_perms(apr_lock_t *), which is no longer
used by any of the MPMs.  (This is another step toward eliminating
the httpd's dependencies on the old lock API.)


Revision 92598 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 25 12:24:14 2001 UTC (22 years, 7 months ago) by dreid
File length: 5261 byte(s)
Diff to previous 91916 (colored) , to selected 7394 (colored)
Add ap_os_killpg as well as unixd_killpg and beosd_killpg.

Move the worker MPM to use ap_os_killpg in place of unixd_killpg as
this makes it more portable.

Ryan notes that really we should be using the POD mechanism to
control death of the child processes, so this is temporary until
we have that change in place.  Note added to STATUS to that effect.


Revision 91916 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 13 22:42:38 2001 UTC (22 years, 8 months ago) by rbb
File length: 5158 byte(s)
Diff to previous 91896 (colored) , to selected 7394 (colored)
Allow modules that add sockets to the ap_listeners list to
define the function that should be used to accept on that
socket.  Each MPM can define their own function to use for
the accept function with the MPM_ACCEPT_FUNC macro.  This
also abstracts out all of the Unix accept error handling
logic, which has become out of synch across Unix MPMs.

The code flow is much easier now for different transports:

1)  During pre-config, post-config or while parsing the config
    file, add a socket to the ap_listeners list, making sure to
    define an accept function at the same time.

2)  MPMs find the correct listener, and call the accept function
    that was defined in step 1.

3)  That accept function returns a void pointer, which is passed
    to the create_connection hook.

4)  create_connection adds the correct low-level filters.


Revision 91896 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 13 06:04:25 2001 UTC (22 years, 8 months ago) by rbb
File length: 5040 byte(s)
Diff to previous 91579 (colored) , to selected 7394 (colored)
Remove commas from the end of the macros that define
directives that are used by MPMs.  Previous to this patch,
you would use these macros without commans, which was unlike
any other directives. Now, after the macro, you must have
a comma.  This makes the macros look more like the rest of the
directives.

I know this is cosmetic, and I was going to leave it alone, but when
I found out that it bothered Cliff too, I decided to fix it after all.

Submitted by:	Ryan Bloom and Cliff Woolley


Revision 91579 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 19 23:32:43 2001 UTC (22 years, 9 months ago) by aaron
File length: 5041 byte(s)
Diff to previous 91022 (colored) , to selected 7394 (colored)
Use the APR's new OS-specific proc mutex accessors -- they are used
here to set permissions on SysV Semaphores. MPMs will be modified to
call this new function as they are ported to the new APR lock API.


Revision 91022 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 13 20:41:15 2001 UTC (22 years, 10 months ago) by orlikowski
File length: 4934 byte(s)
Diff to previous 90808 (colored) , to selected 7394 (colored)
Added AP_DECLARE_DATA to unixd_config, so that it makes it into the exp file.
Submitted by: Mark Nesbitt <mnesbitt@us.ibm.com>


Revision 90808 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 30 06:36:41 2001 UTC (22 years, 11 months ago) by rbb
File length: 4918 byte(s)
Diff to previous 90800 (colored) , to selected 7394 (colored)
Use the correct macros in unix.h


Revision 90800 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 30 05:11:42 2001 UTC (22 years, 11 months ago) by wrowe
File length: 4914 byte(s)
Diff to previous 90215 (colored) , to selected 7394 (colored)
  No <sys/ipc.h> under cygwin.


Revision 90215 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 16 14:12:39 2001 UTC (22 years, 11 months ago) by rbb
File length: 4854 byte(s)
Diff to previous 90213 (colored) , to selected 7394 (colored)
Fix a new error on Linux.


Revision 90213 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 16 13:59:14 2001 UTC (22 years, 11 months ago) by trawick
File length: 4833 byte(s)
Diff to previous 89790 (colored) , to selected 7394 (colored)
The Unix MPMs other than perchild now allow child server
processes to use the accept mutex when starting as root and
using SysV sems for the accept mutex.  Previously, this
combination would lead to fatal errors in the child server
processes.  perchild can't use SysV sems because of security
issues.

translation: steal apache 1.3 code to call semop(IPC_SET) on
the semaphore to set permissions and uid/gid


Revision 89790 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 30 17:55:38 2001 UTC (23 years ago) by orlikowski
File length: 4747 byte(s)
Diff to previous 89232 (colored) , to selected 7394 (colored)
httpd.exp and lots of other export files are generated based on the
AP[RU]_DECLARE macros. This commit gets mod_cgid working again as a DSO on
AIX.
However, this brings up the need to look for any functions that are
available as part of the API, and AP[RU]_DECLAREing them, so things don't
blow up in DSOs.


Revision 89232 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 27 15:31:08 2001 UTC (23 years, 2 months ago) by ben
File length: 4614 byte(s)
Diff to previous 88753 (colored) , to selected 7394 (colored)
Utility to list available hooks.


Revision 88753 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 7 19:37:54 2001 UTC (23 years, 3 months ago) by trawick
File length: 4615 byte(s)
Diff to previous 88184 (colored) , to selected 7394 (colored)
tweak unixd.h so that exports.c is built properly


Revision 88184 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (23 years, 5 months ago) by fielding
File length: 4621 byte(s)
Diff to previous 88079 (colored) , to selected 7394 (colored)
Update copyright to 2001


Revision 88079 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 11 00:44:40 2001 UTC (23 years, 5 months ago) by gstein
File length: 4616 byte(s)
Diff to previous 87731 (colored) , to selected 7394 (colored)
toss the signal description stuff from unixd.[ch], beosd.h, and spmt_os2.
use the new functionality in APR.


Revision 87731 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 19 07:04:36 2001 UTC (23 years, 6 months ago) by wrowe
File length: 5328 byte(s)
Diff to previous 87092 (colored) , to selected 7394 (colored)
  The big change.  This is part 3 of the apr-util symbols rename, please
  see the first commit of srclib/apr-util/include (cvs apr-util/include)
  for the quick glance at symbols changed.


Revision 87092 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 27 19:11:40 2000 UTC (23 years, 8 months ago) by trawick
File length: 5327 byte(s)
Diff to previous 86772 (colored) , to selected 7394 (colored)
<sys/resource.h> requires <sys/time.h> first on some systems
(e.g., FreeBSD 3.4)


Revision 86772 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 31 00:47:24 2000 UTC (23 years, 9 months ago) by rbb
File length: 5275 byte(s)
Diff to previous 86712 (colored) , to selected 7394 (colored)
Make mod_cgi and mod_include work when compiled as DSO's again.  This is
accomplished by moving suexec out of it's own file and into unixd.[ch].
The problem was that suexec.c wasn't being linked into the server unless
a module was actually using ap_os_create_process.  This is still not clean,
but it works now.


Revision 86712 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 23 15:30:57 2000 UTC (23 years, 9 months ago) by manoj
File length: 5012 byte(s)
Diff to previous 86710 (colored) , to selected 7394 (colored)
Add back suexec support.


Revision 86710 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 23 10:54:18 2000 UTC (23 years, 9 months ago) by manoj
File length: 4963 byte(s)
Diff to previous 86609 (colored) , to selected 7394 (colored)
Add a temporary pool argument to unixd_pre_config, so that it can call
APR functions (grumble). This is needed for apr_stat, which will be in
the suexec path coming up.


Revision 86609 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 16 06:05:15 2000 UTC (23 years, 9 months ago) by wrowe
File length: 4950 byte(s)
Diff to previous 85635 (colored) , to selected 7394 (colored)
  Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
  for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
  and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
  All _VAR_ flavors changes to _DATA to be absolutely clear.
  Thank you Greg, for the most obvious suggestion.


Revision 85635 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 20 19:16:18 2000 UTC (24 years, 1 month ago) by rbb
File length: 4950 byte(s)
Diff to previous 85606 (colored) , to selected 7394 (colored)
Remove unixd_detach function, because it is provided by APR as ap_detach.
This also modifies the ap_detach function to look like unixd_detach.
Finally all calls to unixd_detach are changed to ap_detach.


Revision 85606 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 18 03:05:41 2000 UTC (24 years, 1 month ago) by trawick
File length: 4975 byte(s)
Diff to previous 85599 (colored) , to selected 7394 (colored)
Make unixd_config.user_name const char * instead of char * to avoid
a warning when the set-user-name command handler saves the address of
the arg from the config file.


Revision 85599 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 17 16:29:53 2000 UTC (24 years, 1 month ago) by ben
File length: 4969 byte(s)
Diff to previous 85558 (colored) , to selected 7394 (colored)
More consification, correct command initialisation.


Revision 85558 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 12 23:03:05 2000 UTC (24 years, 1 month ago) by rbb
File length: 4949 byte(s)
Diff to previous 85449 (colored) , to selected 7394 (colored)
Protect system header files with the appropriate macros.


Revision 85449 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 6 21:45:16 2000 UTC (24 years, 1 month ago) by rbb
File length: 4915 byte(s)
Diff to previous 85047 (colored) , to selected 7394 (colored)
Add the resource limiting code back to Apache 2.0.  This only works on
Unix because I can't find any other platforms with rlimit.  If there are
other platforms that need this code, then some of the code needs to move.
This has just barely been tested, so it could probably use some good
testing.


Revision 85047 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 26 14:54:57 2000 UTC (24 years, 3 months ago) by trawick
File length: 4609 byte(s)
Diff to previous 84880 (colored) , to selected 7394 (colored)
Increase the default NumSIG value from 32 to 33 on behalf of
OS/390.  unix_siglist_init() will now blow up via ap_assert()
if NumSIG is too low.  (This is no fun to debug!)


Revision 84880 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 31 09:17:18 2000 UTC (24 years, 4 months ago) by fielding
File length: 4612 byte(s)
Diff to previous 84725 (colored) , to selected 7394 (colored)
Update to Apache Software License version 1.1


Revision 84725 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (24 years, 4 months ago) by rbb
File length: 4757 byte(s)
Diff to previous 84493 (colored) , to selected 7394 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license


Revision 84493 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 19 01:16:31 2000 UTC (24 years, 6 months ago) by rbb
File length: 4631 byte(s)
Diff to previous 84186 (colored) , to selected 7394 (colored)
Finish the commits for the change in the header files.  Basically, this hides
all of the Apache macros that modules don't need access to.  This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by:	Manoj Kasichainula and Ryan Bloom


Revision 84186 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 29 23:33:24 1999 UTC (24 years, 8 months ago) by manoj
File length: 4409 byte(s)
Diff to previous 83669 (colored) , to selected 7394 (colored)
The first part of the big autoconf patch. This replaces a bunch of
NEED_* macros with HAVE_* macros to be more consistent with autoconf.


Revision 83669 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 13 21:54:06 1999 UTC (24 years, 11 months ago) by manoj
File length: 4173 byte(s)
Diff to previous 83354 (colored) , to selected 7394 (colored)
Move the ap_sys_siglist code from the Unix MPMs to unixd.[ch]


Revision 83354 - (view) (download) (annotate) - [select for diffs]
Added Sun Jun 20 22:59:52 1999 UTC (25 years, 1 month ago) by dgaudet
File length: 3511 byte(s)
Diff to selected 7394 (colored)
detach, set_group_privs, and such... these will be common amongst the
unix MPMs, so split them off into os/unix/unixd.[ch].


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26