Skip to main content
8 events
when toggle format what by license comment
Aug 18, 2015 at 11:44 comment added Michael Vescovo actually that #define _GNU_SOURCE also seems to have been what I needed as well. I likely would have worked out the other part as I was already looking at it, but this one I wouldn't have guessed. Thanks for the tip! The man page wasn't that readable but I found another stackexchange thread where someone else asked about it. So much info is stored in stackexchange now.
Aug 18, 2015 at 9:58 comment added Michael Vescovo I think I just need a break before. after coming back I can see that yes if I swap out the deprecated __syscall macro with the actual code then it fixes the problem with the macro. And as it turns out, it was the only thing that was broken. Doing something similar to what you posted has worked! Interestingly if all I write is "syscall(323, NULL)" then sure enough it runs the system call. well that was easier than it should have been - as I was suspecting all along! Thanks for your help.
Aug 18, 2015 at 9:46 vote accept Michael Vescovo
Aug 18, 2015 at 8:45 history edited Basile Starynkevitch CC BY-SA 3.0
added 38 characters in body
Aug 18, 2015 at 8:39 history edited Basile Starynkevitch CC BY-SA 3.0
added 268 characters in body
Aug 18, 2015 at 8:39 comment added Michael Vescovo actually I saw that page shortly before I posted the question and it looked rather interesting but I don't know if it means it can't be done. essentially I'm looking for a way to do it whether it's totally different from the book or not. I can't find anything anywhere that can explain the process. thanks for the link though...
Aug 18, 2015 at 8:39 comment added John WH Smith I suppose the "non-deprecated" way would be to define the prototype and library function yourself, and use syscall(2) in it.
Aug 18, 2015 at 8:29 history answered Basile Starynkevitch CC BY-SA 3.0