fake
fake = fake_password(*resp);
if ((r = sshbuf_put_cstring(buffer, fake)) != 0)
free(fake);
char *fake = NULL;
sshpam_password = fake = fake_password(password);
free(fake);
char *fake;
static struct passwd fake;
return (&fake);
memset(&fake, 0, sizeof(fake));
fake.pw_name = "NOUSER";
fake.pw_passwd = xstrdup("$2a$10$"
for (cp = fake.pw_passwd + 7; *cp != '\0'; cp++)
fake.pw_gecos = "NOUSER";
fake.pw_uid = privsep_pw == NULL ? (uid_t)-1 : privsep_pw->pw_uid;
fake.pw_gid = privsep_pw == NULL ? (gid_t)-1 : privsep_pw->pw_gid;
fake.pw_class = "";
fake.pw_dir = "/nonexist";
fake.pw_shell = "/nonexist";
return (&fake);
FILE fake = FAKE_FILE;
fake.pub._flags = fp->pub._flags & ~__SNBF;
fake.pub._fileno = fp->pub._fileno;
fake._cookie = fp->_cookie;
fake._write = fp->_write;
fake._bf._base = fake.pub._p = buf;
fake._bf._size = fake.pub._w = sizeof(buf);
fake.pub._lbfsize = 0; /* not actually used, but Just In Case */
ret = __vfprintf(&fake, locale, fmt, ap);
if (ret >= 0 && __fflush(&fake))
if (fake.pub._flags & __SERR)
FILE fake;
fake.pub._flags = fp->pub._flags & ~__SNBF;
fake.pub._fileno = fp->pub._fileno;
fake._cookie = fp->_cookie;
fake._write = fp->_write;
fake._bf._base = fake.pub._p = buf;
fake._bf._size = fake.pub._w = sizeof(buf);
fake.pub._lbfsize = 0; /* not actually used, but Just In Case */
ret = __vfwprintf(&fake, locale, fmt, ap);
if (ret >= 0 && __fflush(&fake))
if (fake.pub._flags & __SERR)
FILE fake;
fake.pub._flags = fp->pub._flags & ~__SNBF;
fake.pub._fileno = fp->pub._fileno;
fake._cookie = fp->_cookie;
fake._write = fp->_write;
memcpy(WCIO_GET(&fake), WCIO_GET(fp), sizeof(struct wchar_io_data));
fake._bf._base = fake.pub._p = buf;
fake._bf._size = fake.pub._w = sizeof(buf);
fake.pub._lbfsize = 0; /* not actually used, but Just In Case */
ret = __v2printf(&fake, fmt, pct, ap);
if (ret >= 0 && __fflush(&fake))
if (fake.pub._flags & __SERR)
signal(SIGTERM, fake);
static void fake(int);
struct i915_vma fake = {
return i915_error_object_create(dev_priv, &fake);
memuksmap(vm_map_backing_t ba, int op, cdev_t dev, vm_page_t fake)
fake->phys_addr = ptoa(fake->pindex);
fake->phys_addr = vtophys(ptoa(fake->pindex));
ptoa(fake->pindex),
fake->phys_addr = result;
static int memuksmap(vm_map_backing_t ba, int op, cdev_t dev, vm_page_t fake);
netmap_bwrap_attach(struct ifnet *fake, struct ifnet *real)
na->ifp = fake;
D("%s<->%s txr %d txd %d rxr %d rxd %d", fake->if_xname, real->if_xname,
struct cdev *dev, struct vm_page *fake);
vm_page_t fake);
int (*uksmap)(vm_map_backing_t ba, int op, cdev_t dev, vm_page_t fake);