Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
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
slash
Commits
03efe55b
Unverified
Commit
03efe55b
authored
Jul 21, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a header file for fundamental constants/defines
parent
900e5511
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
Makefile.am
src/Makefile.am
+2
-0
fellow_const.h
src/fellow_const.h
+28
-0
fellow_io.h
src/fellow_io.h
+1
-6
No files found.
src/Makefile.am
View file @
03efe55b
...
...
@@ -172,6 +172,7 @@ fellow_sources = \
compiler.h
\
debug.h
\
$(fellow_state_tables)
\
fellow_const.h
\
fellow_debug.h
\
fellow_inject.h
\
fellow_io_backend.h
\
...
...
@@ -255,6 +256,7 @@ fellow_log_dbg_SOURCES = fellow_log_dbg.c \
buddy.h
\
buddy_util.h
\
$(fellow_state_tables)
\
fellow_const.h
\
fellow_debug.h
\
fellow_io_backend.h
\
fellow_io.h
\
...
...
src/fellow_const.h
0 → 100644
View file @
03efe55b
/*-
* SPDX-License-Identifier: LGPL-2.1-only
* Copyright 2022 UPLEX Nils Goroll Systemoptimierung. All rights reserved.
* Author: Nils Goroll <nils.goroll@uplex.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA Also add information on how to contact you by
* electronic and paper mail.
*/
// minimum disk block = 4096 bytes
#define MIN_FELLOW_BITS 12
#define MIN_FELLOW_BLOCK ((size_t)1 << MIN_FELLOW_BITS)
#define FELLOW_BLOCK_ALIGN (MIN_FELLOW_BLOCK - 1)
#define FELLOW_BLOCK_RNDUP(off) \
(((off) + FELLOW_BLOCK_ALIGN) & ~FELLOW_BLOCK_ALIGN)
src/fellow_io.h
View file @
03efe55b
...
...
@@ -20,12 +20,7 @@
* electronic and paper mail.
*/
// minimum disk block = 4096 bytes
#define MIN_FELLOW_BITS 12
#define MIN_FELLOW_BLOCK ((size_t)1 << MIN_FELLOW_BITS)
#define FELLOW_BLOCK_ALIGN (MIN_FELLOW_BLOCK - 1)
#define FELLOW_BLOCK_RNDUP(off) \
(((off) + FELLOW_BLOCK_ALIGN) & ~FELLOW_BLOCK_ALIGN)
#include "fellow_const.h"
/*
* fdb encodes offset and size in a single off_t
...
...
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