If you have no macros defined, then it works.  The way the macros work out 
below, if you define strict POSIX compatibility, then you need to define 
EXTENSIONS.  We don’t have _XPG7 *yet*, but when we do, then you’ll also be 
able to get this with XPG7.  (Note that getline is *new* in XPG7.  Issue 6 
didn’t define it.)
-- 
Garrett D'Amore
Sent with Airmail

On April 24, 2014 at 10:41:33 AM, Apostolos Syropoulos 
([email protected]) wrote:

Hello,

I am trying to compile a program that uses the getline function as defined in

http://www.unix.com/man-page/posix/3p/getline/

The problem is that in stdio.h I see the following:

#if defined(__EXTENSIONS__) || \
        (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
        /* || defined(_XPG7) */
extern ssize_t getdelim(char **_RESTRICT_KYWD, size_t *_RESTRICT_KYWD,
        int, FILE *_RESTRICT_KYWD);
extern ssize_t getline(char **_RESTRICT_KYWD, size_t *_RESTRICT_KYWD,
        FILE *_RESTRICT_KYWD);
#endif  /* __EXTENSIONS__ ... */

I am using oi_151a8 and I would like to know whether latest version of the 
kernel
supports this function without the extra definitions?

Kind regards,

A.S.
 
----------------------
Apostolos Syropoulos
Xanthi, Greece

illumos-discuss | Archives  | Modify Your Subscription  


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to