version 1.1.1.1, 2025/01/19 02:04:04
|
version 1.4, 2025/04/09 19:52:02
|
Line 1
|
Line 1
|
/* |
/* |
* * |
* $Id$ |
* * * |
|
* * * |
|
* *************** |
|
* * * * * |
|
* * MUMPS * |
|
* * * * * |
|
* *************** |
|
* * * |
|
* * * |
|
* * |
|
* |
|
* fma_journals.c |
|
* Journal utilities for fmadm |
* Journal utilities for fmadm |
* |
* |
* |
* |
* Author: Serena Willis <jpw@coherent-logic.com> |
* Author: Serena Willis <snw@coherent-logic.com> |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 2020 Coherent Logic Development LLC |
* Copyright (C) 2020, 2025 Coherent Logic Development LLC |
* |
* |
* |
* |
* This file is part of FreeM. |
* This file is part of FreeM. |
Line 35
|
Line 23
|
* You should have received a copy of the GNU Affero Public License |
* You should have received a copy of the GNU Affero Public License |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
|
* $Log$ |
|
* Revision 1.4 2025/04/09 19:52:02 snw |
|
* Eliminate as many warnings as possible while building with -Wall |
|
* |
|
* Revision 1.3 2025/03/09 19:14:25 snw |
|
* First phase of REUSE compliance and header reformat |
|
* |
|
* |
|
* SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC |
|
* SPDX-License-Identifier: AGPL-3.0-or-later |
**/ |
**/ |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
Line 163 int fma_journals_restore (int optc, char
|
Line 161 int fma_journals_restore (int optc, char
|
{ |
{ |
|
|
register int i; |
register int i; |
register int k; |
|
int fd; |
int fd; |
unsigned long siz; |
unsigned long siz; |
unsigned long ct; |
unsigned long ct; |
|
|
char kbuf[1024]; |
|
char *tbuf; |
|
|
|
char dbuf[2049]; |
|
|
|
jnl_hdr_t hdr; |
jnl_hdr_t hdr; |
jnl_ent_t ent; |
jnl_ent_t ent; |
|
|