Skip to content

Commit

Permalink
Update Source Code to V4.0.39
Browse files Browse the repository at this point in the history
  • Loading branch information
LensPlaysGames committed Apr 11, 2022
1 parent c7ff9cf commit ad59674
Show file tree
Hide file tree
Showing 43 changed files with 66 additions and 59 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v4_0_39
- Rename strtoi to strosi (string to signed int). The strtoi
function on BSD does something else (returns an intmax, not
an int)
v4_0_38
- Make sure case byte is cleared when making the special
directory entries "." and ".."
Expand Down
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static void get_env_conf(void)
errno = 0;
switch(global_switches[i].type) {
case T_INT:
* ((int *)global_switches[i].address) = strtoi(s,0,0);
* ((int *)global_switches[i].address) = strtosi(s,0,0);
break;
case T_UINT:
* ((unsigned int *)global_switches[i].address) = strtoui(s,0,0);
Expand Down
3 changes: 0 additions & 3 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@
/* Define to 1 if you have the `strspn' function. */
#undef HAVE_STRSPN

/* Define to 1 if you have the `strtoi' function. */
#undef HAVE_STRTOI

/* Define to 1 if you have the `strtol' function. */
#undef HAVE_STRTOL

Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4970,7 +4970,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
fi
for ac_header in getopt.h stdarg.h stdlib.h unistd.h linux/unistd.h \
for ac_header in getopt.h stdarg.h stdlib.h inttypes.h unistd.h linux/unistd.h \
libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
sys/param.h memory.h malloc.h io.h signal.h sys/signal.h utime.h sgtty.h \
sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h netinet/tcp.h assert.h \
Expand Down Expand Up @@ -6004,7 +6004,7 @@ _ACEOF
for ac_func in strerror random srandom strchr strrchr lockf flock \
strcasecmp strncasecmp strnlen atexit on_exit getpass memmove \
strdup strndup strcspn strspn strtoul strtol strtoll strtoi strtoui \
strdup strndup strcspn strspn strtoul strtol strtoll strtoui \
memcpy strpbrk memset setenv seteuid setresuid setpgrp \
tcsetattr tcflush basename fchdir media_oldaliases \
snprintf setlocale toupper_l strncasecmp_l \
Expand Down
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_STDBOOL
AC_CHECK_HEADERS(getopt.h stdarg.h stdlib.h unistd.h linux/unistd.h \
AC_CHECK_HEADERS(getopt.h stdarg.h stdlib.h inttypes.h unistd.h linux/unistd.h \
libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
sys/param.h memory.h malloc.h io.h signal.h sys/signal.h utime.h sgtty.h \
sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h netinet/tcp.h assert.h \
Expand Down Expand Up @@ -218,7 +218,7 @@ dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(strerror random srandom strchr strrchr lockf flock \
strcasecmp strncasecmp strnlen atexit on_exit getpass memmove \
strdup strndup strcspn strspn strtoul strtol strtoll strtoi strtoui \
strdup strndup strcspn strspn strtoul strtol strtoll strtoui \
memcpy strpbrk memset setenv seteuid setresuid setpgrp \
tcsetattr tcflush basename fchdir media_oldaliases \
snprintf setlocale toupper_l strncasecmp_l \
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
mtools (4.0.39) stable; urgency=low

* Rename strtoi to strosi (string to signed int). The strtoi
function on BSD does something else (returns an intmax, not an
int)

-- Alain Knaff <alain@knaff.lu> Sun, 10 Apr 2022 19:19:40 +0200
mtools (4.0.38) stable; urgency=low

* Make sure case byte is cleared when making the special
Expand Down
2 changes: 1 addition & 1 deletion floppyd.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH floppyd 1 "03Mar22" mtools-4.0.38
.TH floppyd 1 "10Apr22" mtools-4.0.39
.SH Name
floppyd - floppy daemon for remote access to floppy drive
'\" t
Expand Down
2 changes: 1 addition & 1 deletion floppyd_installtest.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH floppyd_installtest 1 "03Mar22" mtools-4.0.38
.TH floppyd_installtest 1 "10Apr22" mtools-4.0.39
.SH Name
floppyd_installtest - tests whether floppyd is installed and running
'\" t
Expand Down
2 changes: 1 addition & 1 deletion floppyd_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static int get_host_and_port_and_drive(const char* name, char** hostname,
p++;
*drive = 0;
if(*p >= '0' && *p <= '9')
*drive = strtoi(p, &p, 0);
*drive = strtosi(p, &p, 0);

*display = strdup(newname);

Expand Down
2 changes: 1 addition & 1 deletion mattrib.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mattrib 1 "03Mar22" mtools-4.0.38
.TH mattrib 1 "10Apr22" mtools-4.0.39
.SH Name
mattrib - change MSDOS file attribute flags
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mbadblocks.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mbadblocks 1 "03Mar22" mtools-4.0.38
.TH mbadblocks 1 "10Apr22" mtools-4.0.39
.SH Name
mbadblocks - tests a floppy disk, and marks the bad blocks in the FAT
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mcat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mcat 1 "03Mar22" mtools-4.0.38
.TH mcat 1 "10Apr22" mtools-4.0.39
.SH Name
mcat - dump raw disk image
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mcd.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mcd 1 "03Mar22" mtools-4.0.38
.TH mcd 1 "10Apr22" mtools-4.0.39
.SH Name
mcd - change MSDOS directory
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mcopy.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mcopy 1 "03Mar22" mtools-4.0.38
.TH mcopy 1 "10Apr22" mtools-4.0.39
.SH Name
mcopy - copy MSDOS files to/from Unix
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mdel.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mdel 1 "03Mar22" mtools-4.0.38
.TH mdel 1 "10Apr22" mtools-4.0.39
.SH Name
mdel - delete an MSDOS file
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mdeltree.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mdeltree 1 "03Mar22" mtools-4.0.38
.TH mdeltree 1 "10Apr22" mtools-4.0.39
.SH Name
mdeltree - recursively delete an MSDOS directory and its contents
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mdir.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mdir 1 "03Mar22" mtools-4.0.38
.TH mdir 1 "10Apr22" mtools-4.0.39
.SH Name
mdir - display an MSDOS directory
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mdu.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mdu 1 "03Mar22" mtools-4.0.38
.TH mdu 1 "10Apr22" mtools-4.0.39
.SH Name
mdu - display the amount of space occupied by an MSDOS directory
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mformat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mformat 1 "03Mar22" mtools-4.0.38
.TH mformat 1 "10Apr22" mtools-4.0.39
.SH Name
mformat - add an MSDOS filesystem to a low-level formatted floppy disk
'\" t
Expand Down
2 changes: 1 addition & 1 deletion minfo.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH minfo 1 "03Mar22" mtools-4.0.38
.TH minfo 1 "10Apr22" mtools-4.0.39
.SH Name
minfo - print the parameters of a MSDOS filesystem
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mkmanifest.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mkmanifest 1 "03Mar22" mtools-4.0.38
.TH mkmanifest 1 "10Apr22" mtools-4.0.39
.SH Name
mkmanifest - makes list of file names and their DOS 8+3 equivalent
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mlabel.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mlabel 1 "03Mar22" mtools-4.0.38
.TH mlabel 1 "10Apr22" mtools-4.0.39
.SH Name
mlabel - make an MSDOS volume label
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mmd.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mmd 1 "03Mar22" mtools-4.0.38
.TH mmd 1 "10Apr22" mtools-4.0.39
.SH Name
mmd - make an MSDOS subdirectory
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mmount.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mmount 1 "03Mar22" mtools-4.0.38
.TH mmount 1 "10Apr22" mtools-4.0.39
.SH Name
mmount - mount an MSDOS disk
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mmove.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mmove 1 "03Mar22" mtools-4.0.38
.TH mmove 1 "10Apr22" mtools-4.0.39
.SH Name
mmove - move or rename an MSDOS file or subdirectory
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mpartition.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mpartition 1 "03Mar22" mtools-4.0.38
.TH mpartition 1 "10Apr22" mtools-4.0.39
.SH Name
mpartition - partition an MSDOS hard disk
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mrd.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mrd 1 "03Mar22" mtools-4.0.38
.TH mrd 1 "10Apr22" mtools-4.0.39
.SH Name
mrd - remove an MSDOS subdirectory
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mren.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mren 1 "03Mar22" mtools-4.0.38
.TH mren 1 "10Apr22" mtools-4.0.39
.SH Name
mren - rename an existing MSDOS file
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mshortname.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mshortname 1 "03Mar22" mtools-4.0.38
.TH mshortname 1 "10Apr22" mtools-4.0.39
.SH Name
mshortname - shows short name of a file
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mshowfat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mshowfat 1 "03Mar22" mtools-4.0.38
.TH mshowfat 1 "10Apr22" mtools-4.0.39
.SH Name
mshowfat - shows FAT clusters allocated to file
'\" t
Expand Down
4 changes: 2 additions & 2 deletions mtools.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mtools 1 "08Jan22" mtools-4.0.37
.TH mtools 1 "03Mar22" mtools-4.0.38
.SH Name
mtools - utilities to access DOS disks in Unix.
'\" t
Expand Down Expand Up @@ -36,7 +36,7 @@ Mtools can be found at the following places (and their mirrors):
.nf
.ft 3
.in +0.3i
http://ftp.gnu.org/gnu/mtools/mtools-4.0.37.tar.gz
http://ftp.gnu.org/gnu/mtools/mtools-4.0.38.tar.gz
.fi
.in -0.3i
.ft R
Expand Down
4 changes: 2 additions & 2 deletions mtools.5
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mtools 5 "08Jan22" MTOOLS MTOOLS
.TH mtools 5 "03Mar22" MTOOLS MTOOLS
.SH Name
mtools.conf - mtools configuration files
'\" t
Expand All @@ -13,7 +13,7 @@ mtools.conf - mtools configuration files
.tr \(if`
.tr \(pd"

.ds St Mtools\ 4.0.37
.ds St Mtools\ 4.0.38
.PP
.SH Description
.PP
Expand Down
4 changes: 1 addition & 3 deletions mtools.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ off_t str_to_offset(char *str);
uint32_t parseSize(char *sizeStr);
unsigned int strtoui(const char *nptr, char **endptr, int base);
unsigned int atoui(const char *nptr);
#ifndef HAVE_STRTOI
int strtoi(const char *nptr, char **endptr, int base);
#endif
int strtosi(const char *nptr, char **endptr, int base);
unsigned long atoul(const char *nptr);
uint8_t strtou8(const char *nptr, char **endptr, int base);
uint8_t atou8(const char *str);
Expand Down
6 changes: 3 additions & 3 deletions mtools.info
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This is mtools.info, produced by makeinfo version 6.7 from mtools.texi.

This manual is for Mtools (version 4.0.38, March 2022), which is a
This manual is for Mtools (version 4.0.39, April 2022), which is a
collection of tools to allow Unix systems to manipulate MS-DOS files.

Copyright (C) 2007, 2009 Free Software Foundation, Inc. Copyright
Expand Down Expand Up @@ -53,7 +53,7 @@ preliminary mounting or initialization (assuming the default
'/etc/mtools.conf' works on your machine). With mtools, one can change
floppies too without unmounting and mounting.

This manual is for Mtools (version 4.0.38, March 2022), which is a
This manual is for Mtools (version 4.0.39, April 2022), which is a
collection of tools to allow Unix systems to manipulate MS-DOS files.

Copyright (C) 2007, 2009 Free Software Foundation, Inc. Copyright
Expand Down Expand Up @@ -87,7 +87,7 @@ File: mtools.info, Node: Location, Next: Common features, Prev: Top, Up: Top
*********************

Mtools can be found at the following places (and their mirrors):
http://ftp.gnu.org/gnu/mtools/mtools-4.0.38.tar.gz
http://ftp.gnu.org/gnu/mtools/mtools-4.0.39.tar.gz

These patches are named 'mtools-'VERSION'-'DDMM'.taz', where version
stands for the base version, DD for the day and MM for the month. Due
Expand Down
5 changes: 4 additions & 1 deletion mtools.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define _binary_payload w9.gzdio
Name: mtools
Summary: mtools, read/write/list/format DOS disks under Unix
Version: 4.0.38
Version: 4.0.39
Release: 1
License: GPLv3+
Group: Utilities/System
Expand Down Expand Up @@ -133,6 +133,9 @@ if [ -f %{_bindir}/install-info ] ; then
fi

%changelog
* Sun Apr 10 2022 Alain Knaff <alain@knaff.lu>
- Rename strtoi to strosi (string to signed int). The strtoi function
on BSD does something else (returns an intmax, not an int)
* Thu Mar 03 2022 Alain Knaff <alain@knaff.lu>
- Make sure case byte is cleared when making the special
directory entries "." and ".."
Expand Down
4 changes: 2 additions & 2 deletions mtools.tmpl.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mtools 1 "03Mar22" mtools-4.0.38
.TH mtools 1 "10Apr22" mtools-4.0.39
.SH Name
mtools - utilities to access DOS disks in Unix.
'\" t
Expand Down Expand Up @@ -36,7 +36,7 @@ Mtools can be found at the following places (and their mirrors):
.nf
.ft 3
.in +0.3i
http://ftp.gnu.org/gnu/mtools/mtools-4.0.38.tar.gz
http://ftp.gnu.org/gnu/mtools/mtools-4.0.39.tar.gz
.fi
.in -0.3i
.ft R
Expand Down
4 changes: 2 additions & 2 deletions mtools.tmpl.5
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mtools 5 "03Mar22" MTOOLS MTOOLS
.TH mtools 5 "10Apr22" MTOOLS MTOOLS
.SH Name
mtools.conf - mtools configuration files
'\" t
Expand All @@ -13,7 +13,7 @@ mtools.conf - mtools configuration files
.tr \(if`
.tr \(pd"

.ds St Mtools\ 4.0.38
.ds St Mtools\ 4.0.39
.PP
.SH Description
.PP
Expand Down
2 changes: 1 addition & 1 deletion mtoolstest.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mtoolstest 1 "03Mar22" mtools-4.0.38
.TH mtoolstest 1 "10Apr22" mtools-4.0.39
.SH Name
mtoolstest - tests and displays the configuration
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mtype.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mtype 1 "03Mar22" mtools-4.0.38
.TH mtype 1 "10Apr22" mtools-4.0.39
.SH Name
mtype - display contents of an MSDOS file
'\" t
Expand Down
2 changes: 1 addition & 1 deletion mzip.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.TH mzip 1 "03Mar22" mtools-4.0.38
.TH mzip 1 "10Apr22" mtools-4.0.39
.SH Name
mzip - change protection mode and eject disk on Zip/Jaz drive
'\" t
Expand Down
6 changes: 3 additions & 3 deletions patchlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#include "sysincludes.h"
#include "msdos.h"

const char *mversion="4.0.38";
const char *mversion="4.0.39";

/* Multiple releases on same day should be marked with (b), (cd), (d) after
* date string below */
const char *mdate = "March 3rd, 2022";
const char *mdate = "April 10th, 2022";

const char *mformat_banner = "MTOO4038";
const char *mformat_banner = "MTOO4039";
Loading

0 comments on commit ad59674

Please sign in to comment.