Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
252bb89b
Unverified
Commit
252bb89b
authored
Jan 03, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flexelinting
parent
2945831a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
+13
-5
flint.lnt
src/flint.lnt
+3
-0
tbl_hash_enum.h
src/tbl_hash_enum.h
+2
-0
tbl_method.h
src/tbl_method.h
+2
-0
tus_blob.c
src/tus_blob.c
+1
-1
tus_file.c
src/tus_file.c
+5
-4
No files found.
src/flint.lnt
View file @
252bb89b
...
...
@@ -17,6 +17,9 @@
-esym(765, tus_files_VSPLAY_*)
-esym(768, Vmod_vmod_*_Func::*)
-efile(766, *_if.c)
-esym(528, vmod_priv_blob*, VGC_*)
-esym(843, vmod_priv_blob*, VGC_*)
-esym(844, vmod_priv_blob*, VGC_*)
// not fully understood
-efunc(413, *_VSPLAY_NEXT)
...
...
src/tbl_hash_enum.h
View file @
252bb89b
/*lint -save -e525 -e539 */
// HENUM(tusname, blobdigestenum)
HENUM
(
crc32
,
CRC32
)
HENUM
(
icrc32
,
ICRC32
)
...
...
@@ -13,3 +14,4 @@ HENUM(sha3_384, SHA3_384)
HENUM
(
sha3_512
,
SHA3_512
)
HENUM
(
sha512
,
SHA512
)
#undef HENUM
/*lint -restore */
src/tbl_method.h
View file @
252bb89b
/*lint -save -e525 -e539 */
MET
(
OPTIONS
)
MET
(
POST
)
MET
(
HEAD
)
...
...
@@ -6,3 +7,4 @@ MET(DELETE)
MET
(
GET
)
#undef MET
/*lint -restore */
src/tus_blob.c
View file @
252bb89b
...
...
@@ -141,7 +141,7 @@ tus_chksum_fini(VRT_CTX) {
#define HENUM(t, b) if (digest_ ## t != NULL) \
vmod_blobdigest->f_digest__fini(&digest_ ## t);
#include "tbl_hash_enum.h"
REPLACE
(
hashes
,
NULL
);
REPLACE
(
hashes
,
NULL
);
//lint !e539
if
(
dl_vmod_blob
!=
NULL
)
(
void
)
dlclose
(
dl_vmod_blob
);
if
(
dl_vmod_blobdigest
!=
NULL
)
...
...
src/tus_file.c
View file @
252bb89b
...
...
@@ -418,7 +418,7 @@ tus_mmap_header(int fd)
MAP_SHARED
|
MAP_NORESERVE
,
fd
,
0
));
}
static
char
*
empty
=
""
;
static
char
*
const
empty
=
""
;
void
tus_file_complete
(
struct
tus_file_core
*
fcore
)
...
...
@@ -1116,7 +1116,7 @@ struct tus_suck {
};
static
int
tus_suck_finish
(
struct
tus_suck_common
*
sc
,
tus_suck_finish
(
const
struct
tus_suck_common
*
sc
,
ssize_t
written
,
const
void
*
ptr
,
ssize_t
len
)
{
if
(
written
>
0
)
{
...
...
@@ -1191,7 +1191,7 @@ static int v_matchproto_(objiterate_f)
tus_suck_mmap_f
(
void
*
priv
,
unsigned
flush
,
const
void
*
ptr
,
ssize_t
len
)
{
struct
tus_suck_mmap
*
sm
;
struct
tus_suck_common
*
sc
;
const
struct
tus_suck_common
*
sc
;
void
*
wptr
;
CAST_OBJ_NOTNULL
(
sm
,
priv
,
TUS_SUCK_MMAP_MAGIC
);
...
...
@@ -1224,7 +1224,7 @@ static int
tus_suck_mmap_truncate_f
(
void
*
priv
,
off_t
length
)
{
struct
tus_suck_mmap
*
sm
;
struct
tus_suck_common
*
sc
;
const
struct
tus_suck_common
*
sc
;
void
*
wptr
;
CAST_OBJ_NOTNULL
(
sm
,
priv
,
TUS_SUCK_MMAP_MAGIC
);
...
...
@@ -1236,6 +1236,7 @@ tus_suck_mmap_truncate_f(void *priv, off_t length)
wptr
=
(
char
*
)
sm
->
ptr
+
length
;
memset
(
wptr
,
0
,
*
sc
->
upload_offset
-
length
);
return
(
0
);
}
static
inline
struct
tus_suck_common
*
...
...
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