Skip to contentSkip to conversation

fcntl/fcntl30.c: add F_SETPIPE_SZ, F_GETPIPE_SZ test for fcntl(2)

PATCH Applied Xiaoguang Wang 2 participants 2 messages Feb 12, 2014 – Feb 18, 2014 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH v3 1/1 fcntl/fcntl30.c: add F_SETPIPE_SZ, F_GETPIPE_SZ test for fcntl(2)

In reply to a message not in the archive

create a new case to test F_SETPIPE_SZ, F_GETPIPE_SZ for fcntl(2)

---
 include/lapi/fcntl.h                      |   8 +++
 runtest/ltplite                           |   1 +
 runtest/stress.part3                      |   1 +
 runtest/syscalls                          |   2 +
 testcases/kernel/syscalls/.gitignore      |   2 +
 testcases/kernel/syscalls/fcntl/fcntl30.c | 116 ++++++++++++++++++++++++++++++
 6 files changed, 130 insertions(+)
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl30.c
include/lapi/fcntl.h +8 -0
index 7e923ab..f77871f 100644
@@ -27,4 +27,12 @@
 # define F_DUPFD_CLOEXEC 1030
 #endif
 
+#ifndef F_SETPIPE_SZ
+#define F_SETPIPE_SZ 1031
+#endif
+
+#ifndef F_GETPIPE_SZ
+#define F_GETPIPE_SZ 1032
+#endif
+
 #endif /* __LAPI_FCNTL_H__ */
runtest/ltplite +1 -0
index f5a58cf..01dcba5 100644
@@ -224,6 +224,7 @@ fcntl26 fcntl26
 # fcntl27 fcntl27
 # fcntl28 fcntl28
 fcntl29 fcntl29
+fcntl30 fcntl30
 
 fdatasync01 fdatasync01
 fdatasync02 fdatasync02
runtest/stress.part3 +1 -0
index 24185f3..acae0cc 100644
@@ -163,6 +163,7 @@ fcntl26 fcntl26
 # fcntl27 fcntl27
 # fcntl28 fcntl28
 fcntl29 fcntl29
+fcntl30 fcntl30
 
 fdatasync01 fdatasync01
 fdatasync02 fdatasync02
runtest/syscalls +2 -0
index f9c2f55..b0e7de3 100644
@@ -254,6 +254,8 @@ fcntl28 fcntl28
 fcntl28_64 fcntl28_64
 fcntl29 fcntl29
 fcntl29_64 fcntl29_64
+fcntl30 fcntl30
+fcntl30_64 fcntl30_64
 
 fdatasync01 fdatasync01
 fdatasync02 fdatasync02
testcases/kernel/syscalls/.gitignore +2 -0
index 21535ae..cf446b0 100644
@@ -216,6 +216,8 @@
 /fcntl/fcntl28_64
 /fcntl/fcntl29
 /fcntl/fcntl29_64
+/fcntl/fcntl30
+/fcntl/fcntl30_64
 /fdatasync/fdatasync01
 /fdatasync/fdatasync02
 /flock/flock01
testcases/kernel/syscalls/fcntl/fcntl30.c new file +116 -0

116 lines not on this page · raw message

Signature · 13 lines
1.8.2.1


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Applied
#2 lore raw
Quoted 12 lines · Xiaoguang Wang

create a new case to test F_SETPIPE_SZ, F_GETPIPE_SZ for fcntl(2)

---
 include/lapi/fcntl.h                      |   8 +++
 runtest/ltplite                           |   1 +
 runtest/stress.part3                      |   1 +
 runtest/syscalls                          |   2 +
 testcases/kernel/syscalls/.gitignore      |   2 +
 testcases/kernel/syscalls/fcntl/fcntl30.c | 116 ++++++++++++++++++++++++++++++
 6 files changed, 130 insertions(+)
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl30.c

Applied, thank you.

Wanlong Gao

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list