Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/basic/logchecks.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <stdio.h>
#include <unistd.h>
#include <sys/sysmacros.h>

#include <glusterfs/glusterfs.h>
#include <glusterfs/globals.h>
Expand Down
1 change: 1 addition & 0 deletions tests/bugs/distribute/bug-1193636.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <sys/xattr.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>

#define MY_XATTR_NAME "user.ftest"
#define MY_XATTR_VAL "ftestval"
Expand Down
1 change: 1 addition & 0 deletions tests/bugs/fuse/bug-1126048.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>

/*
* This function opens a file and to trigger migration failure, unlinks the
Expand Down
10 changes: 4 additions & 6 deletions tests/bugs/protocol/bug-808400-fcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/wait.h>

#ifndef linux
#define fstat64(fd, st) fstat(fd, st)
#endif
#include <stdlib.h>
#include <unistd.h>

int
run_child(char *filename)
Expand Down Expand Up @@ -97,9 +95,9 @@ main(int argc, char *argv[])
system(cmd);

/* wait till graph switch completes */
ret = fstat64(fd, &stbuf);
ret = fstat(fd, &stbuf);
if (ret < 0) {
fprintf(stderr, "fstat64 failure (%s)\n", strerror(errno));
fprintf(stderr, "fstat failure (%s)\n", strerror(errno));
goto out;
}

Expand Down
10 changes: 4 additions & 6 deletions tests/bugs/protocol/bug-808400-flock.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/wait.h>

#ifndef linux
#define fstat64(fd, st) fstat(fd, st)
#endif
#include <stdlib.h>
#include <unistd.h>

int
run_child(char *filename)
Expand Down Expand Up @@ -71,9 +69,9 @@ main(int argc, char *argv[])
system(cmd);

/* wait till graph switch completes */
ret = fstat64(fd, &stbuf);
ret = fstat(fd, &stbuf);
if (ret < 0) {
fprintf(stderr, "fstat64 failure (%s)\n", strerror(errno));
fprintf(stderr, "fstat failure (%s)\n", strerror(errno));
goto out;
}

Expand Down
1 change: 1 addition & 0 deletions tests/bugs/write-behind/bug-1058663.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <signal.h>
#include <unistd.h>

#define FILE_SIZE 1048576

Expand Down
1 change: 1 addition & 0 deletions tests/bugs/write-behind/bug-1279730.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>

int
main(int argc, char *argv[])
Expand Down
1 change: 1 addition & 0 deletions tests/utils/ip-in-cidr.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <netinet/in.h>
#include <errno.h>
#include <netdb.h>
#include <arpa/inet.h>

int
gf_is_ip_in_net(const char *network, const char *ip_str)
Expand Down