Project

General

Profile

Actions

Bug #1250

closed

on_exit implementation

Added by Gilbert R. about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
libcrystax
Target version:
-
Start date:
02/01/2016
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm
Host OS:
Linux
Toolchain:
gcc-4.9
Android version:
5.0 (android-21)
CrystaX NDK Version:

Description

Hi,

libcrystax.so doesn't export on_exit() but atexit().
test case:
https://github.com/payload/crystax-tests/tree/issue_on_exit

Have a nice day.

Actions #1

Updated by Dmitry M. about 8 years ago

  • Category set to libcrystax
  • Status changed from Open to Waiting for feedback
  • Assignee set to Dmitry M.

This is deprecated function. Even in glibc it's not recommended for use. See "here":http://man7.org/linux/man-pages/man3/on_exit.3.html:

This function comes from SunOS 4, but is also present in glibc. It
no longer occurs in Solaris (SunOS 5). Portable application should
avoid this function, and use the standard atexit(3) instead.

I'm not sure it makes sense to add it to the libcrystax, especially taking into account that @on_exit@ is really ancient.

Actions #2

Updated by Gilbert R. about 8 years ago

Thank you for pointing this out to me. I try to compile gettext and now I realise that something goes wrong at configure time such that gettext chooses to compile a definition of atexit, which relies on on_exit. I look it up why it thinks that atexit isn't provided by the host.

Actions #3

Updated by Dmitry M. about 8 years ago

  • Status changed from Waiting for feedback to Rejected
Actions

Also available in: Atom PDF