Home
last modified time | relevance | path

Searched refs:getbuf (Results 1 – 4 of 4) sorted by relevance

/external/ipsec-tools/src/libipsec/
Dtest-policy.c158 char getbuf[1024]; local
185 memset(getbuf, 0, sizeof(getbuf));
186 memcpy(getbuf, policy, sizeof(struct sadb_x_policy));
187 if (getsockopt(so, proto, optname, getbuf, &len) < 0) {
200 if ((buf = ipsec_dump_policy(getbuf, NULL)) == NULL) {
/external/python/cpython3/Lib/test/
Dtest_buffer.py990 self.assertRaises(BufferError, ndarray, ex, getbuf=req)
996 nd = ndarray(ex, getbuf=PyBUF_FULL_RO)
1015 nd = ndarray(ex, getbuf=req)
1105 ex = ndarray(base, getbuf=PyBUF_SIMPLE)
1106 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_WRITABLE)
1107 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_ND)
1108 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_STRIDES)
1109 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_C_CONTIGUOUS)
1110 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_F_CONTIGUOUS)
1111 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_ANY_CONTIGUOUS)
[all …]
/external/python/cpython3/Modules/
D_testbuffer.c1293 int getbuf = PyBUF_UNUSED; /* re-exporter: getbuffer request flags */ in ndarray_init() local
1297 &v, &shape, &strides, &offset, &format, &flags, &getbuf)) in ndarray_init()
1310 getbuf = (getbuf == PyBUF_UNUSED) ? PyBUF_FULL_RO : getbuf; in ndarray_init()
1312 if (ndarray_init_staticbuf(v, nd, getbuf) < 0) in ndarray_init()
1322 if (getbuf != PyBUF_UNUSED) { in ndarray_init()
/external/mesa3d/src/freedreno/ir3/
Ddisasm-a3xx.c1426 OPC(5, OPC_GETBUF, getbuf),