Searched refs:dbdirfd (Results 1 – 4 of 4) sorted by relevance
/dports/ports-mgmt/pkg/pkg-1.17.5/libpkg/repo/binary/ |
H A D | init.c | 305 int flags, dbdirfd, fd; in pkg_repo_binary_open() local 314 dbdirfd = pkg_get_dbdirfd(); in pkg_repo_binary_open() 318 if ((fd = openat(dbdirfd, filepath, O_RDONLY)) != -1) { in pkg_repo_binary_open() 333 if (faccessat(dbdirfd, filepath, R_OK | mode, 0) != 0) { in pkg_repo_binary_open() 415 int retcode, dbdirfd; in pkg_repo_binary_create() local 419 dbdirfd = pkg_get_dbdirfd(); in pkg_repo_binary_create() 423 if (faccessat(dbdirfd, filepath, R_OK, 0) == 0) in pkg_repo_binary_create()
|
/dports/ports-mgmt/pkg/pkg-1.17.5/libpkg/ |
H A D | pkgdb.c | 773 if (dbdirfd == -1) in pkgdb_is_insecure_mode() 854 if (dbdirfd == -1) in pkgdb_check_access() 859 if (dbdirfd == -1) in pkgdb_check_access() 864 if (dbdirfd == -1) { in pkgdb_check_access() 866 dbdirfd = pkg_get_dbdirfd(); in pkgdb_check_access() 867 if (dbdirfd == -1) in pkgdb_check_access() 873 if (dbdirfd == -1) { in pkgdb_check_access() 876 if (dbdirfd == -1) in pkgdb_check_access() 1137 int dbdirfd; in pkgdb_open_all() local 1150 dbdirfd = pkg_get_dbdirfd(); in pkgdb_open_all() [all …]
|
H A D | pkg_repo.c | 782 int fd, dbdirfd, metafd; in pkg_repo_fetch_meta() local 788 dbdirfd = pkg_get_dbdirfd(); in pkg_repo_fetch_meta() 794 fd = openat(dbdirfd, filepath, O_RDWR|O_CREAT|O_TRUNC, 0644); in pkg_repo_fetch_meta() 809 metafd = openat(dbdirfd, filepath, O_RDWR|O_CREAT|O_TRUNC, 0644); in pkg_repo_fetch_meta() 832 unlinkat(dbdirfd, filepath, 0); in pkg_repo_fetch_meta() 845 if ((metafd = openat(dbdirfd, filepath, O_RDONLY)) == -1) { in pkg_repo_fetch_meta() 926 unlinkat(dbdirfd, filepath, 0); in pkg_repo_fetch_meta()
|
/dports/ports-mgmt/pkg/pkg-1.17.5/libpkg/private/ |
H A D | pkg.h | 260 int dbdirfd; member
|