Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: replacement for struct filedesc.fd_ofileflags
On Sun, Apr 06, 2008 at 01:29:27PM +0200, Alan Barrett wrote:
> I am trying to build lsof on -current as of about a week ago. I am stuck
> trying to convert this to the new world order:
>
> if (!fd.fd_ofileflags || kread((KA_T)fd.fd_ofileflags, pof, nb))
>
> (That's from line 314 of lsof_4.78_src/dialects/n+obsd/dproc.c
> inside the work directory for pkgsrc/sysutils/lsof.)
>
> What is the recommended new way of getting the information that
> was previously available from struct fieldesc.fd_ofileflags?
fd_ofileflags was a char array:
exclose = fdp->fd_ofileflags[fd];
Replacement:
exclose = fdp->fd_ofiles[fd]->ff_exclose;
Do you have patches to handle the rest or do you want me to take a look?
Andrew
Home |
Main Index |
Thread Index |
Old Index