João Pedro Malhado, le dim. 03 juil. 2022 21:41:05 +0200, a ecrit: > On Sun, Jul 03, 2022 at 06:37:46PM +0200, Samuel Thibault wrote: > > João, le sam. 02 juil. 2022 20:53:55 +0200, a ecrit: > > > I don't know why open64() is returning -1. > > > > That's usually given in errno. > > Trying to print the errno on gdb just after open_write()/open64() have run > gives > 1073741902 > This looks strange and I cannot interpret what is going on.
This is not strange, see the values of E* macros ENOSYS = 0x4000004e, /* Function not implemented */ So that's it. Getting ENOSYS is odd, though, since open64 is defined in glibc/sysdeps/mach/hurd/open.c It's probably useful to debug step by step to see what function is actually getting called. Samuel