Searched refs:memfd (Results 1 – 2 of 2) sorted by relevance
/titanic_50/usr/src/cmd/setuname/ |
H A D | setuname.c | 397 int memfd; /* File descriptor: open kernel memory */ local 459 if ((memfd = open("/dev/kmem", O_RDWR, 0)) > 0) { 460 if ((lseek(memfd, (long) utsname_addr, SEEK_SET) != -1) && 461 (read(memfd, &utsname, sizeof(utsname)) == sizeof(utsname))) { 464 (void) lseek(memfd, (long) utsname_addr, SEEK_SET); 465 (void) write(memfd, &utsname, sizeof(utsname)); 466 (void) close(memfd);
|
/titanic_50/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 264 int memfd; in main() local 273 memfd = fileno(memfile); in main() 274 fcntl(memfd, F_SETFD, in main() 275 fcntl(memfd, F_GETFD, 0) | FD_CLOEXEC); in main()
|