repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
mips32
/
bad_sioc.c
blob
41f11e70837f3605f57ba3f04dfb18543c8ceb38
1
#include <arpa/inet.h>
2
#include <sys/ioctl.h>
3
#include <sys/socket.h>
4
#include <unistd.h>
5
6
int
main
()
7
{
8
pid_t pid
;
9
int
fd
,
atmark
;
10
11
fd
=
socket
(
PF_INET
,
SOCK_DGRAM
,
0
);
12
13
ioctl
(
fd
,
SIOCSPGRP
, &
pid
);
14
ioctl
(
fd
,
SIOCATMARK
, &
atmark
);
15
16
close
(
fd
);
17
18
return
0
;
19
}