Re: How to implement a driver's read and write operations with synchronization properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 29 Jul 2014 20:59:08 +0700, Anh Le said:

> still, user programs like bash could have a race problem by spliting
> the input, I hope that they can somehow take care of this problem
> themselves.

stdio is *not* always your friend.  fopen/fprintf is prone to splitting on
bugger boundaries without your knowing about it, but most language bindings
(including the Perl you tested with) allow you to use open/write and do the
buffer management yourself

Attachment: pgpM5LVlG3NrE.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux