Re: [RFC PATCH] fs: introduce mkdirat2 syscall for atomic mkdir

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

 



On Sat Feb 27, 2021 at 9:13 PM EST, Al Viro wrote:
> No to the ABI part; "on error it returns -E..., on success - 0 or a
> non-negative number representing a file descriptor (zero also
> possible, but unlikely)" is bloody awful as calling conventions go,
> especially since the case when 0 happens to be a descriptor is not
> going to get a lot of testing on the userland side.

Hm, I was just trying to mimic the behavior of open(2). Do you have a
better suggestion?




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux