SHARE
TWEET

Untitled

a guest Jun 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fd = open("a.txt", O_CREAT | O_RDWR | O_DIRECT, 0666);
  2. struct iocb cb;
  3. char data[512] = "asdf";
  4. cb.aio_buf = ALIGN(data, 512);
  5. cb.aio_offset = 512;
  6. cb.aio_nbytes = 512;
  7.      
  8. struct iocb cb2;
  9. char data2[512] = "ghij";
  10. cb2.aio_buf = ALIGN(data2, 512);
  11. cb2.aio_offset = 5;
  12. cb2.aio_nbytes = 512;
  13.      
  14. Invalid argument (-22)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top