cosmetics, obey compiler warnings

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, turn __fwr_trunc() and ute_trunc() to int returners, -1 indicating error

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, turn ute_extend() into int returner, -1 indicating error

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
cosmetics, include stdbool.h in utefile-private.h as we're using `bool' in signatures

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, adapt ute-mux to changed ute_extend() signature

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, rewrite creat_hdr() to return an error status (-1 if error, 0 if not)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, don't munmap() the map to the file's header in cache_hdr() just because none of the checking works

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Revert "minor, don't munmap() the map to the file's header in cache_hdr() just because none of the checking works"

This reverts commit 6963e4c7f1483761f4aca569528fc203cffce246.

Complete non-sense.
minor, have creat_hdr() set the UO_TRUNC flag, ...

This should fix problems with ute-mux's --into option when the into'd file either
isn't ute or doesn't exist in the first place.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, use the result object's oflags in make_utectx() when ...

deciding whether to make or load the slut.
This should finally fix the bug in ute mux when --into is specified with a 0 byte or non-existant file.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'cmd/mux' into next

* cmd/mux:
  minor, use the result object's oflags in make_utectx() when ...
  minor, have creat_hdr() set the UO_TRUNC flag, ...
  Revert "minor, don't munmap() the map to the file's header in cache_hdr() just because none of the checking works"
  minor, don't munmap() the map to the file's header in cache_hdr() just because none of the checking works
  minor, rewrite creat_hdr() to return an error status (-1 if error, 0 if not)
  minor, adapt ute-mux to changed ute_extend() signature
  cosmetics, include stdbool.h in utefile-private.h as we're using `bool' in signatures
  minor, turn ute_extend() into int returner, -1 indicating error
  minor, turn __fwr_trunc() and ute_trunc() to int returners, -1 indicating error
  cosmetics, obey compiler warnings
fix, PEBKAC, make dukas' --guess option work on file names that look *almost* like the real thing

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'dso/dukas' into next

* dso/dukas:
  fix, PEBKAC, make dukas' --guess option work on file names that look *almost* like the real thing