Skip to content
Snippets Groups Projects
  • Colin Walters's avatar
    7100ebbc
    dirfd: New tmpdir API · 7100ebbc
    Colin Walters authored
    Basically all of the ostree/rpm-ostree callers want to both create and open, so
    let's merge `glnx_mkdtempat()` and `glnx_mkdtempat_open()`.
    
    Second, all of them want to do `glnx_shutil_rm_rf_at()` on cleanup, so we do the
    same thing we did with `GLnxTmpfile` and create `GLnxTmpDir` that has a cleanup
    attribute.
    
    The cleanup this results in for rpm-ostree is pretty substantial.
    7100ebbc
    History
    dirfd: New tmpdir API
    Colin Walters authored
    Basically all of the ostree/rpm-ostree callers want to both create and open, so
    let's merge `glnx_mkdtempat()` and `glnx_mkdtempat_open()`.
    
    Second, all of them want to do `glnx_shutil_rm_rf_at()` on cleanup, so we do the
    same thing we did with `GLnxTmpfile` and create `GLnxTmpDir` that has a cleanup
    attribute.
    
    The cleanup this results in for rpm-ostree is pretty substantial.