Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
75593811
Commit
75593811
authored
May 10, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring flopen/fltest into the V* namespace
parent
1c662d99
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
18 deletions
+18
-18
mgt_shmem.c
bin/varnishd/mgt/mgt_shmem.c
+3
-3
Makefile.am
bin/varnishhist/Makefile.am
+1
-1
Makefile.am
bin/varnishlog/Makefile.am
+1
-1
Makefile.am
bin/varnishncsa/Makefile.am
+1
-1
Makefile.am
bin/varnishtop/Makefile.am
+1
-1
Makefile.am
include/Makefile.am
+1
-1
vfl.h
include/vfl.h
+4
-4
Makefile.am
lib/libvarnish/Makefile.am
+1
-1
vfl.c
lib/libvarnish/vfl.c
+3
-3
vpf.c
lib/libvarnish/vpf.c
+2
-2
No files found.
bin/varnishd/mgt/mgt_shmem.c
View file @
75593811
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include "mgt/mgt.h"
#include "mgt/mgt.h"
#include "common/heritage.h"
#include "common/heritage.h"
#include "
flopen
.h"
#include "
vfl
.h"
#include "vsm_priv.h"
#include "vsm_priv.h"
#include "vmb.h"
#include "vmb.h"
#include "vfil.h"
#include "vfil.h"
...
@@ -112,7 +112,7 @@ vsm_n_check(void)
...
@@ -112,7 +112,7 @@ vsm_n_check(void)
fprintf
(
stderr
,
fprintf
(
stderr
,
"VSM (%s) not a regular file.
\n
"
,
VSM_FILENAME
);
"VSM (%s) not a regular file.
\n
"
,
VSM_FILENAME
);
}
else
{
}
else
{
i
=
flt
est
(
fd
,
&
pid
);
i
=
VFL_T
est
(
fd
,
&
pid
);
if
(
i
<
0
)
{
if
(
i
<
0
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"Cannot determine locking status of VSM (%s)
\n
."
,
"Cannot determine locking status of VSM (%s)
\n
."
,
...
@@ -150,7 +150,7 @@ vsm_zerofile(const char *fn, ssize_t size)
...
@@ -150,7 +150,7 @@ vsm_zerofile(const char *fn, ssize_t size)
int
fd
;
int
fd
;
int
flags
;
int
flags
;
fd
=
flo
pen
(
fn
,
O_RDWR
|
O_CREAT
|
O_EXCL
|
O_NONBLOCK
,
0640
);
fd
=
VFL_O
pen
(
fn
,
O_RDWR
|
O_CREAT
|
O_EXCL
|
O_NONBLOCK
,
0640
);
if
(
fd
<
0
)
{
if
(
fd
<
0
)
{
fprintf
(
stderr
,
"Could not create %s: %s
\n
"
,
fprintf
(
stderr
,
"Could not create %s: %s
\n
"
,
fn
,
strerror
(
errno
));
fn
,
strerror
(
errno
));
...
...
bin/varnishhist/Makefile.am
View file @
75593811
...
@@ -13,7 +13,7 @@ varnishhist_SOURCES = varnishhist.c \
...
@@ -13,7 +13,7 @@ varnishhist_SOURCES = varnishhist.c \
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
\
$(top_srcdir)
/lib/libvarnish/
flopen
.c
\
$(top_srcdir)
/lib/libvarnish/
vfl
.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
$(top_srcdir)
/lib/libvarnishtools/vut.c
varnishhist_CFLAGS
=
\
varnishhist_CFLAGS
=
\
...
...
bin/varnishlog/Makefile.am
View file @
75593811
...
@@ -12,8 +12,8 @@ varnishlog_SOURCES = \
...
@@ -12,8 +12,8 @@ varnishlog_SOURCES = \
varnishlog_options.c
\
varnishlog_options.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
\
$(top_srcdir)
/lib/libvarnish/vas.c
\
$(top_srcdir)
/lib/libvarnish/vas.c
\
$(top_srcdir)
/lib/libvarnish/flopen.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/vfl.c
\
$(top_srcdir)
/lib/libvarnish/vsb.c
\
$(top_srcdir)
/lib/libvarnish/vsb.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
$(top_srcdir)
/lib/libvarnish/vtim.c
...
...
bin/varnishncsa/Makefile.am
View file @
75593811
...
@@ -14,8 +14,8 @@ varnishncsa_SOURCES = \
...
@@ -14,8 +14,8 @@ varnishncsa_SOURCES = \
base64.c
\
base64.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
\
$(top_srcdir)
/lib/libvarnish/vas.c
\
$(top_srcdir)
/lib/libvarnish/vas.c
\
$(top_srcdir)
/lib/libvarnish/flopen.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/vfl.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
\
$(top_srcdir)
/lib/libvarnish/vsb.c
$(top_srcdir)
/lib/libvarnish/vsb.c
...
...
bin/varnishtop/Makefile.am
View file @
75593811
...
@@ -11,8 +11,8 @@ varnishtop_SOURCES = varnishtop.c \
...
@@ -11,8 +11,8 @@ varnishtop_SOURCES = varnishtop.c \
varnishtop_options.c
\
varnishtop_options.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
\
$(top_srcdir)
/lib/libvarnishtools/vut.c
\
$(top_srcdir)
/lib/libvarnish/vas.c
\
$(top_srcdir)
/lib/libvarnish/vas.c
\
$(top_srcdir)
/lib/libvarnish/flopen.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/version.c
\
$(top_srcdir)
/lib/libvarnish/vfl.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vpf.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
\
$(top_srcdir)
/lib/libvarnish/vtim.c
\
$(top_srcdir)
/lib/libvarnish/vsb.c
$(top_srcdir)
/lib/libvarnish/vsb.c
...
...
include/Makefile.am
View file @
75593811
...
@@ -66,7 +66,7 @@ nobase_noinst_HEADERS = \
...
@@ -66,7 +66,7 @@ nobase_noinst_HEADERS = \
binary_heap.h
\
binary_heap.h
\
compat/daemon.h
\
compat/daemon.h
\
compat/execinfo.h
\
compat/execinfo.h
\
flopen
.h
\
vfl
.h
\
libvcc.h
\
libvcc.h
\
vcli_common.h
\
vcli_common.h
\
vcli_priv.h
\
vcli_priv.h
\
...
...
include/
flopen
.h
→
include/
vfl
.h
View file @
75593811
...
@@ -28,10 +28,10 @@
...
@@ -28,10 +28,10 @@
* $FreeBSD: src/lib/libutil/libutil.h,v 1.44 2007/05/10 15:01:42 des Exp $
* $FreeBSD: src/lib/libutil/libutil.h,v 1.44 2007/05/10 15:01:42 des Exp $
*/
*/
#ifndef
FLOPEN
_H_INCLUDED
#ifndef
VFL
_H_INCLUDED
#define
FLOPEN
_H_INCLUDED
#define
VFL
_H_INCLUDED
int
flo
pen
(
const
char
*
,
int
,
...);
int
VFL_O
pen
(
const
char
*
,
int
,
...);
int
flt
est
(
int
fd
,
pid_t
*
pid
);
int
VFL_T
est
(
int
fd
,
pid_t
*
pid
);
#endif
#endif
lib/libvarnish/Makefile.am
View file @
75593811
...
@@ -17,7 +17,7 @@ libvarnish_la_SOURCES = \
...
@@ -17,7 +17,7 @@ libvarnish_la_SOURCES = \
cli_auth.c
\
cli_auth.c
\
cli_common.c
\
cli_common.c
\
cli_serve.c
\
cli_serve.c
\
flopen
.c
\
vfl
.c
\
vnum.c
\
vnum.c
\
vtim.c
\
vtim.c
\
vtcp.c
\
vtcp.c
\
...
...
lib/libvarnish/
flopen
.c
→
lib/libvarnish/
vfl
.c
View file @
75593811
...
@@ -37,10 +37,10 @@
...
@@ -37,10 +37,10 @@
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include "
flopen
.h"
#include "
vfl
.h"
int
int
flo
pen
(
const
char
*
path
,
int
flags
,
...)
VFL_O
pen
(
const
char
*
path
,
int
flags
,
...)
{
{
int
fd
,
operation
,
serrno
,
trunc
;
int
fd
,
operation
,
serrno
,
trunc
;
struct
flock
lock
;
struct
flock
lock
;
...
@@ -115,7 +115,7 @@ flopen(const char *path, int flags, ...)
...
@@ -115,7 +115,7 @@ flopen(const char *path, int flags, ...)
* Returns -1 on error (and errno)
* Returns -1 on error (and errno)
*/
*/
int
int
flt
est
(
int
fd
,
pid_t
*
pid
)
VFL_T
est
(
int
fd
,
pid_t
*
pid
)
{
{
struct
flock
lock
;
struct
flock
lock
;
...
...
lib/libvarnish/vpf.c
View file @
75593811
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include "
flopen
.h"
#include "
vfl
.h"
#include "vas.h"
#include "vas.h"
#include "vpf.h"
#include "vpf.h"
...
@@ -128,7 +128,7 @@ VPF_Open(const char *path, mode_t mode, pid_t *pidptr)
...
@@ -128,7 +128,7 @@ VPF_Open(const char *path, mode_t mode, pid_t *pidptr)
* PID file will be truncated again in VPF_Write(), so
* PID file will be truncated again in VPF_Write(), so
* VPF_Write() can be called multiple times.
* VPF_Write() can be called multiple times.
*/
*/
fd
=
flo
pen
(
pfh
->
pf_path
,
fd
=
VFL_O
pen
(
pfh
->
pf_path
,
O_WRONLY
|
O_CREAT
|
O_TRUNC
|
O_NONBLOCK
,
mode
);
O_WRONLY
|
O_CREAT
|
O_TRUNC
|
O_NONBLOCK
,
mode
);
if
(
fd
==
-
1
)
{
if
(
fd
==
-
1
)
{
if
(
errno
==
EWOULDBLOCK
&&
pidptr
!=
NULL
)
{
if
(
errno
==
EWOULDBLOCK
&&
pidptr
!=
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment