Recent

Author Topic: Really basic linux question  (Read 4970 times)

new2linux

  • Jr. Member
  • **
  • Posts: 60
Really basic linux question
« on: May 22, 2014, 03:34:06 pm »
I have to use the Very Very Basic Linux error result: ErrNo.

See:

http://www.freepascal.org/docs-html/rtl/oldlinux/errno.html

It is part of the package "rtl":

http://www.freepascal.org/docs-html/rtl/index-8.html

and resides in the "oldlinux" unit.

But I don't have a clue as to resolve "Identifier not found" error in Lazarus (latest stable). Adding unit "oldlinux" doesn't change a thing, neither adding "linux".

Any suggestions?





marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Really basic linux question
« Reply #1 on: May 22, 2014, 03:51:41 pm »
For what? FPC maintains an Errno for its own kernel queries, and so does libc.  IOW to check the error result of FPC functions you need errno, and for the errors of libc functions you need cerrno.

Oldlinux has been long removed. It was a part of the 1.0.x rtl.   The cleaned up functionality (including FPC's internal errno) is in unit baseunix. The libc errno is in unit initc.

new2linux

  • Jr. Member
  • **
  • Posts: 60
Re: Really basic linux question
« Reply #2 on: May 22, 2014, 06:36:19 pm »

For posteriority: adding "baseunix" did the trick. Somehow it didn't make it to my unit list. Thanks Marcov.


 

TinyPortal © 2005-2018