Commit Graph

86 Commits

Author SHA1 Message Date
andvar 82bba4e936 fix various typos in comments. 2024-02-05 21:46:04 +00:00
lukem a9a927dd92 adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
which works for both clang and gcc, and remove compiler-specific
equivalents.
2023-06-03 21:26:27 +00:00
lukem f937c412f3 bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER
Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
2023-06-03 08:52:53 +00:00
rillig 33e56a937d newfs_udf: fix wording in comment 2023-05-10 12:23:42 +00:00
andvar 5a58ccfbec fix various typos in comments, documentation and messages.
mainly s/paramater/parameter/ and s/reduntant/redundant/.
2022-08-07 11:06:18 +00:00
andvar 09fb17927e fix various typos in comments, mainly origional->original,
extened->extended, incomming->incoming.
2022-05-28 21:14:56 +00:00
andvar f42f89fd6f fix various small typos, mainly in comments. 2022-05-22 11:27:33 +00:00
andvar a5c1e39951 s/wich/which in comments. 2022-05-15 20:37:50 +00:00
reinoud a72532c0e6 Data is written out in fixed sized packets; discs are normally a multiple of
the packet size but they don't have to be so never write past the last sector.
2022-05-07 08:51:32 +00:00
reinoud b140a9eb47 Fix endian bug also in commented out code 2022-04-26 15:11:42 +00:00
reinoud daa5db3ac5 Fix endian bug : Logblks recorded in fe/efe VAT is 64 bits 2022-04-26 15:09:52 +00:00
reinoud 823e22a558 Fix endian bug in permission storage 2022-04-26 14:54:40 +00:00
reinoud b9f815db69 Fix endian bug with VAT 1.50 format 2022-04-26 13:40:15 +00:00
reinoud 313c3198fa Fix endian bug in logical volume creation for metadata/VAT partitions. 2022-04-25 20:41:25 +00:00
reinoud 0f8e52c944 Fix endian issues with UDF extended attributes 2022-04-22 21:22:14 +00:00
reinoud 9b07de2aa1 Fix endian issues with fsck_udf/newfs_udf/makefs 2022-04-22 20:56:46 +00:00
riastradh 60df76e82b newfs_udf(8): Nix trailing whitespace.
No functional change intended.
2022-04-09 09:58:11 +00:00
reinoud 8f4e1cd991 Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.
2022-04-06 13:29:15 +00:00
andvar 183889cba7 fix various typos in comments, log messages and documentation.
mainly s/aparently/apparently/ and s/implmented/implemented/.
2022-02-06 20:20:18 +00:00
andvar a136e22ab6 fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
andvar e8cc649d65 fix few typos in comments. 2021-09-01 14:17:46 +00:00
andvar 626fac18a1 s/priviledge/privilege/ in comments/log messages and fix one typo in descriptor. 2021-08-22 20:18:39 +00:00
andvar ca7653601e fix various typos in comments and log messages. 2021-08-20 20:25:26 +00:00
mrg 97b36aa771 more GCC 10 fixes.
mDNSResponder: another wrong return local address

dhcp: ignore a seemingly impossible stringop overflow

hpacel: avoid maybe uninitialised error that is wrong.

rsh: avoid impossible malloc(0)

udf: cast pointers through (uintptr_t) to fool invalid boundary checks
2021-04-13 06:25:48 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
msaitoh 8012ca3f0e Remove extra semicolon. 2020-05-14 08:34:17 +00:00
joerg 6ce4f404a1 Fix depenency on common symbols in sbin. 2020-04-05 15:25:39 +00:00
sevan edae29ee93 Add rcsid 2019-06-30 11:38:16 +00:00
christos f5cba070b3 Address of packed member might not be aligned. 2018-12-09 17:52:48 +00:00
joerg f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
christos 7bb0f9314c PR/50920: David Binderman: fix leak 2016-03-09 19:48:24 +00:00
christos d3037dba83 fix error messages containing \n 2015-06-16 23:18:54 +00:00
reinoud 4897154dae Fix volumesetname to comply to UDF 2.01 [2.2.2.5] 2015-01-02 21:01:12 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos 3e4993b396 fix unused variable warnings. 2013-10-19 01:09:58 +00:00
reinoud a5532a8260 Add the blockingnr determination for the -rom versions 2013-08-25 14:13:47 +00:00
tron 986f886c15 Fix tool build under Mac OS X by using gettimeofday(2) instead of
clock_gettime(2). This needs a proper auto-config check.
2013-08-10 23:25:35 +00:00
reinoud 857cc1af09 Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.
2013-08-09 15:11:08 +00:00
reinoud 254934d244 Switch back program version to the version of the newfs_udf/makefs code.
While here, visit the 80 columns police :)
2013-08-06 13:15:30 +00:00
reinoud fd80b116d5 Oops, forgot to export a_udf_version() that checks if the input string is a
valid UDF version notation.
2013-08-06 12:49:13 +00:00
wiz 5d1c7f9125 Fix article. 2013-08-06 12:15:20 +00:00
wiz b37178189d Sort sections. Remove superfluous Ed. 2013-08-06 12:14:43 +00:00
reinoud 67b0bef892 Clarify volumeset name restrictions when specifying it in newfs_udf(8) 2013-08-06 11:57:25 +00:00
reinoud 933037aa09 Fix misplaced BUGS section and fix layout 2013-08-06 11:38:51 +00:00
reinoud 3551bde30d Fix memory leaks found by Coverity and fix memoryleaks in the new code 2013-08-06 08:18:08 +00:00
reinoud 950c47822d Fix newfs(8) to compile again. 2013-08-05 20:52:08 +00:00
joerg 9656a3f6dc Allow building UDF parts of makefs on !NetBSD. 2013-08-05 17:12:04 +00:00
reinoud 94ec67ed92 Fix memset() arguments to use the right type for sizeof() and streamline its
use of sizeof() to allways use the right type.
2013-08-05 16:44:58 +00:00
wiz 43ccd8ccbb Sort. 2013-08-05 14:28:48 +00:00
reinoud 1b03698582 Adjust newfs_udf to be sharing code with the new `makefs -t udf' to be
comitted.
2013-08-05 14:11:30 +00:00