FAQ
# New Ticket Created by Tom Browder
# Please include the string: [perl #127823]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127823 >


I'm trying the native call interface and see that a ssize_t is needed for certain libc functions such as 'getline', but it is not listed in the types available in https://doc.perl6.org/language/nativecall.

Search Discussions

  • Tom Browder at Apr 2, 2016 at 11:45 pm

    On Saturday, April 2, 2016, Tobias Leich via RT wrote:

    You can define them yourself:

    native size_t is Int is ctype("size_t") is unsigned is repr("P6int") { };
    native ssize_t is Int is ctype("size_t") is repr("P6int") { };

    Thanks, Tobias!

    Best,

    -Tom

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-compiler @
categoriesperl
postedApr 2, '16 at 7:32p
activeApr 2, '16 at 11:45p
posts2
users2
websiteperl6.org

2 users in discussion

Tom Browder: 1 post Tom Browder: 1 post

People

Translate

site design / logo © 2019 Grokbase