Searched refs:memfd (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/setuname/
H A Dsetuname.c400 int memfd; /* File descriptor: open kernel memory */
462 if ((memfd = open("/dev/kmem", O_RDWR, 0)) > 0) {
463 if ((lseek(memfd, (long) utsname_addr, SEEK_SET) != -1) &&
464 (read(memfd, &utsname, sizeof(utsname)) == sizeof(utsname))) {
467 (void) lseek(memfd, (long) utsname_addr, SEEK_SET);
468 (void) write(memfd, &utsname, sizeof(utsname));
469 (void) close(memfd);
397 int memfd; /* File descriptor: open kernel memory */ local
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c264 int memfd; local
273 memfd = fileno(memfile);
274 fcntl(memfd, F_SETFD,
275 fcntl(memfd, F_GETFD, 0) | FD_CLOEXEC);

Completed in 60 milliseconds