This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ftruncate does not work with rw file handles



On 12/12/2017 18:08, Marc Pawlowsky wrote:
> Is it intentional that ftruncate does not work with read/write file
> handles, or am I doing somthing wrong?
> 

[...]

> int main(int,char**)
> {
>   test("rw");

r+ is the mode for read and write.

>   test("w");
>   return 0;
> }
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]