Searched refs:memfd (Results 1 – 3 of 3) sorted by relevance
32 auto memfd = SharedFD::MemfdCreate(""); in CreateMemFDWithData() local33 CHECK(WriteAll(memfd, data) == data.size()) << memfd->StrError(); in CreateMemFDWithData()34 CHECK(memfd->LSeek(0, SEEK_SET) == 0); in CreateMemFDWithData()35 return memfd; in CreateMemFDWithData()
427 auto memfd = MemfdCreate(name, flags); in MemfdCreateWithData() local428 if (WriteAll(memfd, data) != data.size()) { in MemfdCreateWithData()431 if (memfd->LSeek(0, SEEK_SET) != 0) { in MemfdCreateWithData()432 return ErrorFD(memfd->GetErrno()); in MemfdCreateWithData()434 if (!memfd->Chmod(0700)) { in MemfdCreateWithData()435 return ErrorFD(memfd->GetErrno()); in MemfdCreateWithData()437 return memfd; in MemfdCreateWithData()
60 # Used to set of size new memfd.