Re: getsock() api modification

2015-04-30 Thread Vitaliy Makkoveev
Mail.app removes spaces from line start :(

Re: getsock() api modification

2015-04-30 Thread Vitaliy Makkoveev
On 30 Apr 2015, at 12:49, Martin Pieuchot wrote: > Your diff makes sense but sadly it is broken, could you send a diff that > can be applied? Index: share/man/man9/file.9 === RCS file: /cvs/src/share/man/man9/file.9,v retrieving re

Re: getsock() api modification

2015-04-30 Thread Martin Pieuchot
On 21/04/15(Tue) 17:15, Vitaliy Makkoveev wrote: > Now fd_getfile() function returns unacquired "struct file" instance > [...] > It is unacceptable on multiprocessor machine because the instance referenced > by fp can be destroyed between fd_getfile() and FREF() calls. So I want > fd_getfile() retu

getsock() api modification

2015-04-21 Thread Vitaliy Makkoveev
Now fd_getfile() function returns unacquired "struct file" instance and the typical usage is: struct file *fp; if ((fp = fd_getfile(fpd, fd)) == NULL) return ENOENT; if (/* obtained fp is unacceptable */) return EERROR; FREF(fp);