Files
mars-nwe/include/nwfname.h
Mario Fetka f8317503df
All checks were successful
Source release / source-package (push) Successful in 40s
docs: normalize source license headers to gpl2 only
2026-06-03 00:46:27 +02:00

52 lines
1.5 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* This file is part of mars_nwe.
*
* Copyright (C) 1993-2000 Martin Stover, Marburg, Germany
* Copyright (C) 2026 Mario Fetka
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 only.
*
* This program 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 General Public License for more details.
*/
/* nwfname.h 17-Jun-97 */
#ifndef _NWFNAME_H_
#define _NWFNAME_H_ 1
extern void init_nwfname(char *convfile);
extern uint8 *up_fn(uint8 *ss);
extern uint8 *down_fn(uint8 *ss);
extern uint8 *dos2unixcharset(uint8 *ss);
extern uint8 *unix2doscharset(uint8 *ss);
extern int dfn_imatch(uint8 a, uint8 b);
extern int ufn_imatch(uint8 a, uint8 b);
#if PERSISTENT_SYMLINKS
typedef struct {
dev_t st_dev;
ino_t st_ino;
int islink; /* if symblic link */
} S_STATB;
extern int s_stat(char *path, struct stat *statbuf, S_STATB *stb);
extern int s_utime(char *fn, struct utimbuf *ut, S_STATB *stb);
extern int s_chmod(char *fn, umode_t mode, S_STATB *stb);
#else
# define s_stat(path, statbuf, stb) \
stat((path), (statbuf))
# define s_utime(fn, ut, stb) \
utime((fn), (ut))
# define s_chmod(fn, mode, stb) \
chmod((fn), (mode))
#endif
#endif