1

The EXIT_SUCCESS constant and some others are present in StdLibTypes.inc for Android and OSX:

  • $(BDS)\source\rtl\posix\android\StdLibTypes.inc

  • $(BDS)\source\rtl\posix\osx\StdLibTypes.inc

const
  RAND_MAX = $7FFFFFFF;
  {$EXTERNALSYM RAND_MAX}
  EXIT_FAILURE = 1;
  {$EXTERNALSYM EXIT_FAILURE}
  EXIT_SUCCESS = 0;
  {$EXTERNALSYM EXIT_SUCCESS}

But they are not present for Linux.

  • $(BDS)\source\rtl\posix\linux\StdLibTypes.inc

Is this merely an oversight, or is there some valid reasoning behind it?

3
  • Only Embarcadero can answer this. Feel free to open a ticket with them. Commented Jul 2 at 16:45
  • Most stdlib calls return -1 for error, so I guess OS X needs an additional one that returns zero/one. Perhaps one outside the libc in OSX specific libs. Commented Jul 3 at 6:46
  • @RemyLebeau Thanks for making the paths clearer. embt.atlassian.net/servicedesk/customer/portal/1/RSS-3753 Commented Jul 3 at 18:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.