projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: getgrnam is not MT-Safe, use getgrnam_r
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-syscall-events
/
gen-syscall-events.c
diff --git
a/tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
b/tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
index 5e4aabe582708f404934f3eaa25a1719689efdf7..7f6e1860d50e05c95ac80e5a6e83b62f7116e23a 100644
(file)
--- a/
tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
+++ b/
tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
@@
-15,8
+15,6
@@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define _LGPL_SOURCE
-
#include <fcntl.h>
#include <stdio.h>
#include <sys/syscall.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/syscall.h>
@@
-33,7
+31,7
@@
*/
int main(int argc, char **argv)
{
*/
int main(int argc, char **argv)
{
- int fd, ret
= 0
;
+ int fd, ret;
char buf[MAX_LEN];
char *start_file;
char buf[MAX_LEN];
char *start_file;
@@
-59,7
+57,7
@@
int main(int argc, char **argv)
* Start generating syscalls. We use syscall(2) to prevent libc to change
* the underlying syscall. e.g. calling openat(2) instead of open(2).
*/
* Start generating syscalls. We use syscall(2) to prevent libc to change
* the underlying syscall. e.g. calling openat(2) instead of open(2).
*/
- fd = syscall(SYS_open, "/proc/cpuinfo", O_RDONLY);
+ fd = syscall(SYS_open
at, AT_FDCWD
, "/proc/cpuinfo", O_RDONLY);
if (fd < 0) {
perror("open");
ret = -1;
if (fd < 0) {
perror("open");
ret = -1;
This page took
0.023744 seconds
and
4
git commands to generate.