Lines Matching refs:ulogfd
84 ulog_resize(kdb_hlog_t *ulog, uint32_t ulogentries, int ulogfd, uint_t recsize)
114 if (lseek(ulogfd, new_size, SEEK_SET) == -1) {
118 if (write(ulogfd, "+", 1) != 1) {
151 int ulogfd;
155 ulogfd = log_ctx->ulogfd;
169 if (retval = ulog_resize(ulog, ulogentries, ulogfd, recsize)) {
539 int ulogfd = -1;
560 if ((ulogfd = open(logname, O_RDWR+O_CREAT, 0600)) == -1) {
564 if (lseek(ulogfd, 0L, SEEK_CUR) == -1) {
571 if (lseek(ulogfd, ulog_filesize, SEEK_SET) == -1) {
575 if (write(ulogfd, "+", 1) != 1) {
581 if ((ulogfd = open(logname, O_RDWR, 0600)) == -1) {
590 fstat(ulogfd, &st);
594 PROT_READ+PROT_WRITE, MAP_PRIVATE, ulogfd, 0);
600 PROT_READ+PROT_WRITE, MAP_SHARED, ulogfd, 0);
618 log_ctx->ulogfd = ulogfd;
689 if (lseek(ulogfd, ulog_filesize, SEEK_SET) == -1) {
693 if (write(ulogfd, "+", 1) != 1) {