N
nass
hello everyone,
i am trying to do some file appending.
there is a loop that is running and whenever the condition is met, a
file needs to me opened and a buffer dumped into it.
now i have managed to make that work with fopen(FILE*, char*).
but aio_write needs a file descriptor to be fed into it through the
structure 'aiocb'.
searching through for how to get a file descriptor i found in the man
pages that open() returns exactly that.
my question is should i oen the file and then run aio_write(aiocb *)
or should i directly run aio_write() and it will do the opening and
closing of the file on its own?
thank you in advance for your help
nass
i am trying to do some file appending.
there is a loop that is running and whenever the condition is met, a
file needs to me opened and a buffer dumped into it.
now i have managed to make that work with fopen(FILE*, char*).
but aio_write needs a file descriptor to be fed into it through the
structure 'aiocb'.
searching through for how to get a file descriptor i found in the man
pages that open() returns exactly that.
my question is should i oen the file and then run aio_write(aiocb *)
or should i directly run aio_write() and it will do the opening and
closing of the file on its own?
thank you in advance for your help
nass