Lines Matching refs:ret
35 int status, ret;
37 ret = read(sock, &status, sizeof(int));
38 BUG_ON(ret <= 0, "read(sock)");
41 ret = msync(smap, MMAP_SZ, MS_SYNC);
42 BUG_ON(ret, "msync()");
44 ret = write(sock, &status, sizeof(int));
45 BUG_ON(ret <= 0, "write(sock)");
56 int ret, buf = 0;
64 ret = write(sock, &buf, sizeof(int));
65 BUG_ON(ret <= 0, "write(sock)");
67 ret = read(sock, &buf, sizeof(int));
68 BUG_ON(ret <= 0, "read(sock)");
79 int sock[2], child, ret;
89 ret = ftruncate(fileno(ftmp), MMAP_SZ);
90 BUG_ON(ret, "ftruncate()");
98 ret = msync(smap, MMAP_SZ, MS_SYNC);
99 BUG_ON(ret, "msync()");
101 ret = socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sock);
102 BUG_ON(ret, "socketpair()");
108 ret = close(sock[0]);
109 BUG_ON(ret, "close()");
116 ret = close(sock[1]);
117 BUG_ON(ret, "close()");