summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-09-06 14:16:12 +0000
committerSascha Schumann <sas@php.net>2000-09-06 14:16:12 +0000
commit5bbddee81ea3f6e8e47da7453c54efa49a1dd410 (patch)
tree2ce8d2280b87beb2de620067f44bab4b23cc1f59 /ext/session/mod_files.c
parent4fb5088f89736db12abbcae6d0c9b4ecdbe0c061 (diff)
downloadphp-git-5bbddee81ea3f6e8e47da7453c54efa49a1dd410.tar.gz
Rename symbols whose first character was an underscore.
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 2c7e9c7117..dbb5f69290 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -54,7 +54,7 @@ ps_module ps_mod_files = {
PS_MOD(files)
};
-static int _ps_files_valid_key(const char *key)
+static int ps_files_valid_key(const char *key)
{
size_t len;
const char *p;
@@ -79,7 +79,7 @@ static int _ps_files_valid_key(const char *key)
return ret;
}
-static char *_ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key)
+static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key)
{
int keylen;
const char *p;
@@ -107,7 +107,7 @@ static char *_ps_files_path_create(char *buf, size_t buflen, ps_files *data, con
#define O_BINARY 0
#endif
-static void _ps_files_open(ps_files *data, const char *key)
+static void ps_files_open(ps_files *data, const char *key)
{
char buf[MAXPATHLEN];
@@ -121,8 +121,8 @@ static void _ps_files_open(ps_files *data, const char *key)
data->fd = -1;
}
- if (!_ps_files_valid_key(key) ||
- !_ps_files_path_create(buf, sizeof(buf), data, key))
+ if (!ps_files_valid_key(key) ||
+ !ps_files_path_create(buf, sizeof(buf), data, key))
return;
data->lastkey = estrdup(key);
@@ -147,7 +147,7 @@ static void _ps_files_open(ps_files *data, const char *key)
}
}
-static int _ps_files_cleanup_dir(const char *dirname, int maxlifetime)
+static int ps_files_cleanup_dir(const char *dirname, int maxlifetime)
{
DIR *dir;
char dentry[sizeof(struct dirent) + MAXPATHLEN + 1];
@@ -159,7 +159,7 @@ static int _ps_files_cleanup_dir(const char *dirname, int maxlifetime)
dir = opendir(dirname);
if (!dir) {
- php_error(E_NOTICE, "_ps_files_cleanup_dir: opendir(%s) failed: %m (%d)\n", dirname, errno);
+ php_error(E_NOTICE, "ps_files_cleanup_dir: opendir(%s) failed: %m (%d)\n", dirname, errno);
return (0);
}
@@ -226,7 +226,7 @@ PS_READ_FUNC(files)
struct stat sbuf;
PS_FILES_DATA;
- _ps_files_open(data, key);
+ ps_files_open(data, key);
if (data->fd < 0)
return FAILURE;
@@ -251,7 +251,7 @@ PS_WRITE_FUNC(files)
{
PS_FILES_DATA;
- _ps_files_open(data, key);
+ ps_files_open(data, key);
if (data->fd < 0)
return FAILURE;
@@ -270,7 +270,7 @@ PS_DESTROY_FUNC(files)
char buf[MAXPATHLEN];
PS_FILES_DATA;
- if (!_ps_files_path_create(buf, sizeof(buf), data, key))
+ if (!ps_files_path_create(buf, sizeof(buf), data, key))
return FAILURE;
if (V_UNLINK(buf) == -1) {
@@ -289,7 +289,7 @@ PS_GC_FUNC(files)
an external entity (i.e. find -ctime x | xargs rm) */
if (data->dirdepth == 0)
- *nrdels = _ps_files_cleanup_dir(data->basedir, maxlifetime);
+ *nrdels = ps_files_cleanup_dir(data->basedir, maxlifetime);
return SUCCESS;
}