Al's no-double-empty-lines crusade
This commit is contained in:
10
test/test7.c
10
test/test7.c
@@ -4,7 +4,6 @@
|
||||
* pipe(), mkfifo(), fcntl()
|
||||
*/
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
@@ -50,7 +49,6 @@ _PROTOTYPE(void e, (int n));
|
||||
_PROTOTYPE(void sigfunc, (int s));
|
||||
_PROTOTYPE(void quit, (void));
|
||||
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
@@ -114,7 +112,6 @@ void test7a()
|
||||
for (i = 3; i < OPEN_MAX; i++) close(i);
|
||||
}
|
||||
|
||||
|
||||
void test7b()
|
||||
{
|
||||
/* Test mkfifo(). */
|
||||
@@ -183,7 +180,6 @@ void test7b()
|
||||
if (unlink("T7.b") != 0) e(28);
|
||||
}
|
||||
|
||||
|
||||
void test7c()
|
||||
{
|
||||
/* Test fcntl(). */
|
||||
@@ -269,7 +265,6 @@ void test7c()
|
||||
if (close(newfd2) != 0) e(48);
|
||||
}
|
||||
|
||||
|
||||
void test7d()
|
||||
{
|
||||
/* Test file locking. */
|
||||
@@ -415,7 +410,6 @@ void test7f()
|
||||
close(xfd);
|
||||
}
|
||||
|
||||
|
||||
void test7g()
|
||||
{
|
||||
/* Test to see if SETLKW unlocks when the needed lock becomes available. */
|
||||
@@ -449,7 +443,6 @@ void test7g()
|
||||
close(xfd);
|
||||
}
|
||||
|
||||
|
||||
void test7h()
|
||||
{
|
||||
/* Test to see what happens if two processed block on the same lock. */
|
||||
@@ -560,7 +553,6 @@ void test7i()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Check EMFILE. */
|
||||
for (i = xfd + 1; i < OPEN_MAX; i++) open("T7.i", 0); /* use up all fds */
|
||||
errno = 0;
|
||||
@@ -570,7 +562,6 @@ void test7i()
|
||||
for (i = xfd; i < OPEN_MAX; i++) if (close(i) != 0) e(29);
|
||||
}
|
||||
|
||||
|
||||
void test7j()
|
||||
{
|
||||
/* Test file locking with two processes. */
|
||||
@@ -620,7 +611,6 @@ void cloexec_test()
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
int set(how, first, last)
|
||||
int how, first, last;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user