OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Artur Grabowski (artcvs.openbsd.org)
Date: Fri Feb 08 2002 - 07:53:28 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    CVSROOT: /cvs
    Module name: src
    Changes by: artcvs.openbsd.org 2002/02/08 06:53:28

    Modified files:
            sys/compat/svr4: svr4_net.c
            sys/crypto : cryptodev.c
            sys/kern : kern_descrip.c kern_event.c kern_exec.c
                             sys_generic.c sys_pipe.c uipc_syscalls.c
                             uipc_usrreq.c vfs_syscalls.c
            sys/miscfs/portal: portal_vfsops.c
            sys/nfs : nfs_syscalls.c
            sys/sys : file.h

    Log message:
    - Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't have
    the same semantics as NetBSD anyway, so it's good to avoid name collissions.
    - Always fdremove before freeing the file, not the other way around.
    - falloc FREFs the file.
    - have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to
    falloc FREFing the file).
    - Use closef as much as possible instead of ffree in error paths of
    falloc:ing functions. closef is much more careful with the fd and can
    deal with the fd being forcibly closed by dup2. Also try to avoid
    manually calling *fo_close when closef can do that for us (this makes
    some error paths mroe complicated (sys_socketpair and sys_pipe), but
    others become simpler (sys_open)).