[Tizen 6.0] Support build with Glibc 2.31 85/222285/1 accepted/tizen/unified/20200114.130621 submit/tizen/20200114.003116
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Wed, 18 Dec 2019 09:23:41 +0000 (12:23 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 13 Jan 2020 08:13:56 +0000 (17:13 +0900)
commit09a790d0ef04f7c7b9ea2ab1c16c65a8e5e3c498
tree25aafd3d0f1a07b2e3d45ac7d21d0ace59afc33b
parent552629223c2a65a0892b2f41211b3f2b4b88e35a
[Tizen 6.0] Support build with Glibc 2.31

_IO_FILE was removed, all uses changed to FILE.

da_io_stdc.c:427:47: error: unknown type name '_IO_FILE'; did you mean '__FILE'?
  427 | HANDLER_WRAPPERS(file_feature, int, _IO_getc, _IO_FILE*, stream)

Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
[Tizen 6.0] Enable build with -Wformat-truncation warning

helper/dahelper.c:94:51: error: 'snprintf' output may be truncated before the
last format character [-Werror=format-truncation=]
   94 |    snprintf(path, (size_t) MAX_PATH_LENGTH, "%s/%s",
      |                                                   ^
helper/dahelper.c:94:4: note: 'snprintf' output 2 or more bytes (assuming 257)
into a destination of size 256
   94 |    snprintf(path, (size_t) MAX_PATH_LENGTH, "%s/%s",
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   95 |      dirname, entry->d_name);
      |      ~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
new glibc

helper/dahelper.c:92:2: error: 'readdir_r' is deprecated [-Werror=deprecated-declarations]
   92 |  while ((readdir_r(dir, dirent_r, &entry) == 0) && entry) {
      |  ^~~~~
In file included from helper/dahelper.c:34:
/usr/include/dirent.h:183:12: note: declared here
  183 | extern int readdir_r (DIR *__restrict __dirp,

Change-Id: I82a75663c9a9175da3656de64e7d0b67381bc460
helper/dahelper.c
probe_file/da_io_stdc.c