Re: [Jprogramming] calling fcntl from libc.so.6

2021-07-17 Thread Raul Miller
Also, the '...' could be handled by constructing that part of the argument type list to match the arguments you are passing. Thanks, -- Raul On Sat, Jul 17, 2021 at 5:31 PM Michal Wallace wrote: > > d'oh. someone else pointed out the same error on IRC. > I don't know how I confused myself on t

Re: [Jprogramming] calling fcntl from libc.so.6

2021-07-17 Thread Michal Wallace
d'oh. someone else pointed out the same error on IRC. I don't know how I confused myself on that. I've been using 'cd' for like 3 days straight. :) thanks! -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] calling fcntl from libc.so.6

2021-07-17 Thread Henry Rich
I have no idea how to do what you want.  But 'libc.so.6  i fcntl i i i' cd 0 4 2048 should be  'libc.so.6  fcntl I  i i i' cd 0 4 2048 function name, then return type, then argument types. I have added some text to the error-message page you referenced to explain the numbering. Henry Rich

[Jprogramming] calling fcntl from libc.so.6

2021-07-17 Thread Michal Wallace
I am working on a console-mode library for J (something like a simple ncurses). I am able to set the terminal up to read individual keypresses one at a time, but on linux, the process blocks until a key is pressed. If I were writing C, I would fix this by calling fcntl, like so: fcntl(STDIN, F_S