mariadb/storage
Daniel Black 807e4f320f Change my_umask{,_dir} to mode_t and remove os_innodb_umask
os_innodb_umask was of the incorrect type resulting in warnings
in clang-19. The correct type is mode_t.

As os_innodb_umask was set during innnodb_init from my_umask,
corrected the type there along with its companion my_umask_dir.
Because of this, the defaults mask values in innodb never
had an effect.

The resulting change allow found signed differences in
my_create{,_nosymlink}, open_nosymlinks:

mysys/my_create.c:47:20: error: operand of ?: changes signedness from ‘int’ to ‘mode_t’ {aka ‘unsigned int’} due to unsignedness of other operand [-Werror=sign-compare]
   47 |      CreateFlags ? CreateFlags : my_umask);

Ref: clang-19 warnings:

[55/123] Building CXX object storage/innobase/CMakeFiles/innobase.dir/os/os0file.cc.o
storage/innobase/os/os0file.cc:1075:46: warning: implicit conversion loses integer precision: 'ulint' (aka 'unsigned long') to 'mode_t' (aka 'unsigned int') [-Wshorten-64-to-32]
 1075 |                 file = open(name, create_flag | O_CLOEXEC, os_innodb_umask);
      |                        ~~~~                                ^~~~~~~~~~~~~~~
storage/innobase/os/os0file.cc:1249:46: warning: implicit conversion loses integer precision: 'ulint' (aka 'unsigned long') to 'mode_t' (aka 'unsigned int') [-Wshorten-64-to-32]
 1249 |                 file = open(name, create_flag | O_CLOEXEC, os_innodb_umask);
      |                        ~~~~                                ^~~~~~~~~~~~~~~
storage/innobase/os/os0file.cc:1381:45: warning: implicit conversion loses integer precision: 'ulint' (aka 'unsigned long') to 'mode_t' (aka 'unsigned int') [-Wshorten-64-to-32]
 1381 |         file = open(name, create_flag | O_CLOEXEC, os_innodb_umask);
      |                ~~~~                                ^~~~~~~~~~~~~~~
2024-12-11 17:21:01 +11:00
..
archive MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
blackhole MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
cassandra MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
columnstore MDEV-33091 pcre2 headers - handle columnstore 2024-09-05 12:14:06 +10:00
connect MDEV-34700 Connect SQLite3 MTR test fails due to various charset/collation related output changes 2024-12-01 13:52:41 +04:00
csv MDEV-34348: Miscellaneous fixes 2024-11-23 08:14:23 -07:00
example MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
federated MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
federatedx MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
heap MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
innobase Change my_umask{,_dir} to mode_t and remove os_innodb_umask 2024-12-11 17:21:01 +11:00
maria MDEV-34348: Fix casts relating to tree_walk_action 2024-11-23 08:14:23 -07:00
mroonga MDEV-35574 remove obsolete pthread_exit calls 2024-12-10 12:12:20 +11:00
myisam MDEV-34348: Fix casts relating to tree_walk_action 2024-11-23 08:14:23 -07:00
myisammrg MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
oqgraph Extract some of #3360 fixes to 10.5.x 2024-11-21 22:43:56 +11:00
perfschema MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
rocksdb MDEV-34408: Facilitate the addition of warnings into the build system 2024-11-23 08:14:23 -07:00
sequence MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sphinx MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
spider MDEV-35422 Fix spider group by handler trying to use fake group by fields 2024-12-03 10:32:42 +11:00
test_sql_discovery MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
tokudb MDEV-5798: Wrong errorcode for missing partition after TRUNCATE PARTITION 2024-12-05 08:17:35 +01:00