Home
last modified time | relevance | path

Searched refs:fd_s (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D16-1.c63 int fd_s, fd_ns; in main() local
69 fd_s = shm_open("/fork_16_1s", O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in main()
71 if (fd_s == -1) { in main()
82 ret = ftruncate(fd_s, sysconf(_SC_PAGESIZE)); in main()
97 MAP_SHARED, fd_s, 0); in main()
/external/usrsctp/programs/
Dekr_loop_offload.c286 SOCKET fd_c, fd_s; local
288 int fd_c, fd_s, rc; local
325 if ((fd_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET) {
334 if ((fd_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
358 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
367 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
377 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
386 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
396 if ((tid_s = CreateThread(NULL, 0, &handle_packets, (void *)&fd_s, 0, NULL)) == NULL) {
406 if ((rc = pthread_create(&tid_s, NULL, &handle_packets, (void *)&fd_s)) != 0) {
[all …]
Dekr_loop_upcall.c301 SOCKET fd_c, fd_s; local
303 int fd_c, fd_s, rc; local
339 if ((fd_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET) {
348 if ((fd_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
372 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
381 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
391 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
400 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
410 if ((tid_s = CreateThread(NULL, 0, &handle_packets, (void *)&fd_s, 0, NULL)) == NULL) {
420 if ((rc = pthread_create(&tid_s, NULL, &handle_packets, (void *)&fd_s)) != 0) {
[all …]
Dekr_loop.c268 SOCKET fd_c, fd_s; local
270 int fd_c, fd_s, rc; local
308 if ((fd_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET) {
317 if ((fd_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
341 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
350 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
360 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
369 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
379 if ((tid_s = CreateThread(NULL, 0, &handle_packets, (void *)&fd_s, 0, NULL)) == NULL) {
389 if ((rc = pthread_create(&tid_s, NULL, &handle_packets, (void *)&fd_s)) != 0) {
[all …]
/external/bcc/tools/old/
Dopensnoop.py101 fd_s = ret variable
104 fd_s = "-1" variable
112 print("%-6d %-16s %4s %3s %s" % (pid, task, fd_s, err, filename))
Dstatsnoop.py107 fd_s = ret variable
110 fd_s = "-1" variable
118 print("%-6d %-16s %4s %3s %s" % (pid, task, fd_s, err, filename))
/external/bcc/tools/
Dstatsnoop.py163 fd_s = event.ret
166 fd_s = -1
176 event.comm.decode('utf-8', 'replace'), fd_s, err,
Dopensnoop.py219 fd_s = event.ret
222 fd_s = -1
243 event.comm.decode('utf-8', 'replace'), fd_s, err), end="")
/external/selinux/sandbox/
Dseunshare.c438 int fd_t = -1, fd_s = -1; in create_tmpdir() local
447 if ((fd_s = open(src, O_RDONLY)) < 0) { in create_tmpdir()
451 if (fstat(fd_s, &tmp_st) == -1) { in create_tmpdir()
459 if (fgetfilecon(fd_s, &con) == -1) { in create_tmpdir()
545 if (fd_s >= 0) close(fd_s); in create_tmpdir()