mariadb/include
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
..
atomic
mysql MDEV-33277 In-place upgrade causes invalid AUTO_INCREMENT values 2024-02-08 10:35:45 +02:00
aria_backup.h
assume_aligned.h
big_endian.h
byte_order_generic.h
byte_order_generic_x86.h
byte_order_generic_x86_64.h typo fixed. HAVE_mi_uint8korr 2023-11-02 19:42:39 +11:00
CMakeLists.txt MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
decimal.h
dur_prop.h
errmsg.h
ft_global.h
handler_ername.h Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
handler_state.h
hash.h MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
heap.h Merge 10.4 into 10.5 2023-01-03 17:08:42 +02:00
ilist.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
json_lib.h MDEV-23187: Assorted assertion failures in json_find_path with certain 2023-05-16 01:52:16 +05:30
keycache.h
lf.h
little_endian.h
m_ctype.h Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
m_string.h Fixed safe_strcpy_truncated() to get rid of compiler warnings. 2024-10-16 17:24:46 +03:00
ma_dyncol.h Merge 10.4 into 10.5 2023-01-03 17:08:42 +02:00
maria.h
mariadb_capi_rename.h MDEV-27295 Backport SQL service, introduced by MDEV-19275. 2023-11-05 23:35:32 +04:00
my_alarm.h Merge 10.4 into 10.5 2022-11-08 17:01:28 +02:00
my_alloc.h Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
my_alloca.h Merge branch '10.4' into 10.5 2023-04-24 12:43:47 +02:00
my_atomic.h
my_atomic_wrapper.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
my_attribute.h MDEV-34770 GCC warning fix 2024-12-04 18:22:31 +03:00
my_base.h Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
my_bit.h MDEV-34392 Inplace algorithm violates the foreign key constraint 2024-10-01 09:41:56 +05:30
my_bitmap.h
my_byteorder.h
my_check_opt.h
my_cmp.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
my_compare.h Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
my_compiler.h
my_context.h
my_counter.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
my_cpu.h MDEV-34825: my_cpu.h - non-glibc ism for POWER 2024-09-05 12:14:06 +10:00
my_crypt.h
my_dbug.h Merge 10.4 into 10.5 2022-09-26 13:34:38 +03:00
my_decimal_limits.h header typos 2022-12-20 08:55:48 +11:00
my_default.h
my_dir.h header typos 2022-12-20 08:55:48 +11:00
my_getopt.h
my_global.h MDEV-34348: Fix casts relating to tree_walk_action 2024-11-23 08:14:23 -07:00
my_handler_errors.h Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
my_libwrap.h
my_list.h
my_md5.h
my_minidump.h
my_net.h
my_nosys.h
my_pthread.h MDEV-33092 Undefined reference to concurrency on Solaris 2024-01-10 10:16:20 +01:00
my_rdtsc.h MDEV-34297 get_rnd_value() of ib_counter_t is unnecessarily complex 2024-06-05 09:54:14 +03:00
my_rnd.h
my_service_manager.h
my_stack_alloc.h MDEV-34533 asan error about stack overflow when writing record in Aria 2024-10-16 17:24:46 +03:00
my_stacktrace.h
my_sys.h Change my_umask{,_dir} to mode_t and remove os_innodb_umask 2024-12-11 17:21:01 +11:00
my_time.h
my_tree.h
my_uctype.h
my_user.h
my_valgrind.h
my_xml.h
myisam.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
myisamchk.h Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
myisammrg.h MDEV-31083 ASAN use-after-poison in myrg_attach_children 2023-05-23 09:16:36 +03:00
myisampack.h MDEV-29473 UBSAN: Signed integer overflow: X * Y cannot be represented in type 'int' in strings/dtoa.c 2022-11-17 17:51:01 +04:00
mysql.h Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
mysql_async.h
mysql_com.h Merge from 10.4 to 10.5 2024-04-15 17:46:49 +02:00
mysql_com_server.h
mysql_embed.h
mysql_time.h
mysql_version.h.in
mysqld_default_groups.h
mysys_err.h
no_valgrind_without_big.inc MDEV-31893 Valgrind reports issues in main.join_cache_notasan 2023-08-10 20:57:42 +02:00
pack.h
password.h
pfs_file_provider.h
pfs_idle_provider.h
pfs_memory_provider.h
pfs_metadata_provider.h
pfs_socket_provider.h
pfs_stage_provider.h
pfs_statement_provider.h
pfs_table_provider.h
pfs_thread_provider.h
pfs_transaction_provider.h
probes_mysql.d.base
probes_mysql.h
probes_mysql_nodtrace.h.in
queues.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
rijndael.h
scope.h
service_versions.h MDEV-33277 In-place upgrade causes invalid AUTO_INCREMENT values 2024-02-08 10:35:45 +02:00
source_revision.h.in
span.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sql_common.h MDEV-27595 Backport SQL service, introduced by MDEV-19275. 2023-11-05 23:35:31 +04:00
ssl_compat.h Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
sslopt-case.h
sslopt-longopts.h cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
sslopt-vars.h
t_ctype.h
thr_alarm.h
thr_lock.h
thr_timer.h
thread_pool_priv.h
typelib.h
violite.h
waiting_threads.h header typos 2022-12-20 08:55:48 +11:00
welcome_copyright_notice.h
wqueue.h
wsrep.h Reduce compilation dependencies on wsrep_mysqld.h 2022-08-31 11:05:23 +03:00