Lines Matching refs:ulogfd
82 ulog_resize(kdb_hlog_t *ulog, uint32_t ulogentries, int ulogfd, uint_t recsize) in ulog_resize() argument
112 if (lseek(ulogfd, new_size, SEEK_SET) == -1) { in ulog_resize()
116 if (write(ulogfd, "+", 1) != 1) { in ulog_resize()
149 int ulogfd; in ulog_add_update() local
153 ulogfd = log_ctx->ulogfd; in ulog_add_update()
167 if (retval = ulog_resize(ulog, ulogentries, ulogfd, recsize)) { in ulog_add_update()
537 int ulogfd = -1; in ulog_map() local
558 if ((ulogfd = open(logname, O_RDWR+O_CREAT, 0600)) == -1) { in ulog_map()
562 if (lseek(ulogfd, 0L, SEEK_CUR) == -1) { in ulog_map()
569 if (lseek(ulogfd, ulog_filesize, SEEK_SET) == -1) { in ulog_map()
573 if (write(ulogfd, "+", 1) != 1) { in ulog_map()
579 if ((ulogfd = open(logname, O_RDWR, 0600)) == -1) { in ulog_map()
588 fstat(ulogfd, &st); in ulog_map()
592 PROT_READ+PROT_WRITE, MAP_PRIVATE, ulogfd, 0); in ulog_map()
598 PROT_READ+PROT_WRITE, MAP_SHARED, ulogfd, 0); in ulog_map()
616 log_ctx->ulogfd = ulogfd; in ulog_map()
687 if (lseek(ulogfd, ulog_filesize, SEEK_SET) == -1) { in ulog_map()
691 if (write(ulogfd, "+", 1) != 1) { in ulog_map()