68d3abfd9ccb1bd160fe144c9193c60dd69dc850 |
|
27-Nov-2016 |
gyher <yahu.gao@intel.com> |
lib/libipc.c: Remove unnecessary head file The header file 'sys/timeb.h' had used to get seed for generating a random number at the very beginning. And it was removed in commit "efe7aee8". Signed-off-by: gyher <yahu.gao@intel.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
3cd4714645a4985fa049d74c4daabf7fb55f4868 |
|
12-May-2015 |
Wei,Jiangang <weijg.fnst@cn.fujitsu.com> |
kernel/syscalls/ipc/lib: Don't allocate memory for getpwnam() The getpwnam() function returns a pointer for a passwd structure. So, It's enough to declare a pointer to this structure, not to allocate memory for it. Signed-off-by: Wei,Jiangang <weijg.fnst@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
d218f348c12b42a78fa0306d9a033bfa4f67238b |
|
23-Sep-2014 |
Cyril Hrubis <chrubis@suse.cz> |
Remove useless malloc() casts. Created with coccinelle patch: @@ expression E1, E2; type T; @@ - E1 = (T)malloc(E2) + E1 = malloc(E2) Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
c57fba5535abf457e33dd7a986b6c512d95cdef6 |
|
10-Apr-2014 |
Mike Frysinger <vapier@gentoo.org> |
testcases/kernel/syscalls: clean up old style prototypes Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
762111b427581672b2c8e6c8e73af74b38203a8a |
|
05-Feb-2014 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/ipc: Make use of tst_require_root() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
354ebb48db8e66a853a58379a4808d5dcd1ceac3 |
|
07-Dec-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
cleanup code indent Cleanup the code indent using: find . -name *.c -exec Lindent {} \; It's really a big change, but can fix almost all of the indent problem in C code, although we can't ensure all of the changes are right, but the error changes are really few. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 |
|
19-Oct-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
Update FSF address find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
d7044e71ee25a1a35d8847dd4965ec16e7fa6156 |
|
20-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Some style changes. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
2c28215423293e443469a07ae7011135d058b671 |
|
16-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Style and conformance changes. 1. Strip all leading space. 2. Move tst_exit() to main(). 3. Remove tst_exit() from cleanup(). 4. Remove cluebat comments. 5. Reduce some unnecessary whitespace. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
7aa9dbd60fa99f7115a5642767d6b9115a70dfaa |
|
07-Sep-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Return key_t, not int shm keys are key_t type. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
56207cec7732e09c216c751c0b5f88a242bacae6 |
|
23-Mar-2009 |
subrata_modak <subrata_modak> |
Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
b15aafd4f07a07e790ac504343cf8d9bd77963af |
|
20-Oct-2008 |
subrata_modak <subrata_modak> |
Hi, This patch fixes most of warnings and badness including the following, libnetns.c: In function ‘create_net_namespace’: libnetns.c:65: warning: implicit declaration of function ‘tst_kvercmp’ shmnstest.c: In function ‘main’: shmnstest.c:71: warning: unused variable ‘pid’ pidns03.c: In function ‘main’: pidns03.c:83: warning: passing argument 4 of ‘do_clone_unshare_test’ makes pointer from integer without a cast cpuctl_test01.c: In function ‘main’: cpuctl_test01.c:133: warning: implicit declaration of function ‘open’ cpuctl_test01.c:195: warning: unknown conversion type character ‘)’ in format cpuctl_test01.c:195: warning: unknown conversion type character ‘)’ in format cpuctl_test02.c: In function ‘main’: cpuctl_test02.c:146: warning: implicit declaration of function ‘open’ cpuctl_test02.c:207: warning: unknown conversion type character ‘)’ in format cpuctl_test02.c:207: warning: unknown conversion type character ‘)’ in format cpuctl_test02.c:207: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 8 has type ‘unsigned int’ cpuctl_test03.c: In function ‘main’: cpuctl_test03.c:144: warning: implicit declaration of function ‘open’ cpuctl_test03.c:205: warning: unknown conversion type character ‘)’ in format cpuctl_test03.c:205: warning: unknown conversion type character ‘)’ in format cpuctl_test04.c: In function ‘main’: cpuctl_test04.c:147: warning: implicit declaration of function ‘open’ cpuctl_test04.c:208: warning: unknown conversion type character ‘)’ in format cpuctl_test04.c:208: warning: unknown conversion type character ‘)’ in format cpuctl_test04.c:208: warning: format ‘%3lu’ expects type ‘long unsigned int’, but argument 8 has type ‘unsigned int’ memctl_test01.c: In function ‘allocate_memory’: memctl_test01.c:171: warning: assignment from incompatible pointer type doio.c: In function ‘main’: doio.c:477: warning: ‘sigblock’ is deprecated (declared at /usr/include/signal.h:181) growfiles.c: In function ‘growfile’: growfiles.c:2064: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2066: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2068: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2070: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2072: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2074: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness childmain.c: In function ‘ChildMain’: childmain.c:551: warning: cast to pointer from integer of different size childmain.c:559: warning: cast to pointer from integer of different size childmain.c:569: warning: cast to pointer from integer of different size childmain.c:838: warning: cast to pointer from integer of different size dump.c: In function ‘format_str’: dump.c:54: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:55: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:55: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:55: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c:57: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:57: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:58: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:58: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:59: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:60: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:60: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:60: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c:63: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:63: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:64: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:64: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:65: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:65: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:67: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:67: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:69: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:70: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:70: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:70: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c: In function ‘format_raw’: dump.c:91: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:92: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:92: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:92: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c:94: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:95: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:95: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:95: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness main.c: In function ‘threadedMain’: main.c:258: warning: cast to pointer from integer of different size main.c:259: warning: cast to pointer from integer of different size main.c:266: warning: cast to pointer from integer of different size main.c:365: warning: cast to pointer from integer of different size timer.c: In function ‘ChildTimer’: timer.c:196: warning: cast to pointer from integer of different size signal_test_01.c: In function ‘main’: signal_test_01.c:195: warning: ‘sigsetmask’ is deprecated (declared at /usr/include/signal.h:184) signal_test_01.c:232: warning: ‘sigblock’ is deprecated (declared at /usr/include/signal.h:181) signal_test_03.c: In function ‘main’: signal_test_03.c:119: warning: ‘sigblock’ is deprecated (declared at /usr/include/signal.h:181) signal_test_03.c:144: warning: ‘sigsetmask’ is deprecated (declared at /usr/include/signal.h:184) libipc.c: In function ‘init_buf’: libipc.c:120: warning: cast from pointer to integer of different size mallocstress.c: In function ‘alloc_mem’: mallocstress.c:272: warning: cast from pointer to integer of different size mallocstress.c:275: warning: cast from pointer to integer of different size mallocstress.c:276: warning: cast to pointer from integer of different size mallocstress.c: In function ‘main’: mallocstress.c:316: warning: cast from pointer to integer of different size mallocstress.c:327: warning: cast from pointer to integer of different size mallocstress.c:368: warning: cast to pointer from integer of different size shm_test.c: In function ‘shmat_rd_wr’: shm_test.c:207: warning: cast to pointer from integer of different size shm_test.c:221: warning: cast to pointer from integer of different size shm_test.c:266: warning: cast to pointer from integer of different size shm_test.c:270: warning: cast to pointer from integer of different size shm_test.c: In function ‘main’: shm_test.c:315: warning: cast from pointer to integer of different size shm_test.c:326: warning: cast from pointer to integer of different size pthserv.c: In function ‘main’: pthserv.c:146: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness pthserv.c:156: warning: cast to pointer from integer of different size trace_sched.c: In function ‘get_proc_num’: trace_sched.c:154: warning: cast from pointer to integer of different size trace_sched.c: In function ‘main’: trace_sched.c:348: warning: cast from pointer to integer of different size trace_sched.c:381: warning: cast from pointer to integer of different size check_simple_capset.c:23:28: error: sys/capability.h: No such file or directory check_simple_capset.c: In function ‘main’: check_simple_capset.c:27: error: ‘cap_t’ undeclared (first use in this function) check_simple_capset.c:27: error: (Each undeclared identifier is reported only once check_simple_capset.c:27: error: for each function it appears in.) check_simple_capset.c:27: error: expected ‘;’ before ‘caps’ check_simple_capset.c:30: error: ‘caps’ undeclared (first use in this function) check_simple_capset.c:31: error: ‘caps2’ undeclared (first use in this function) clone03.c: In function ‘main’: clone03.c:138: warning: cast from pointer to integer of different size clone04.c: In function ‘main’: clone04.c:147: warning: cast from pointer to integer of different size clone06.c: In function ‘main’: clone06.c:143: warning: cast from pointer to integer of different size fmtmsg01.c: In function ‘clearbuf’: fmtmsg01.c:82: warning: cast from pointer to integer of different size libipc.c: In function ‘init_buf’: libipc.c:116: warning: cast from pointer to integer of different size msgget01.c: In function ‘check_functionality’: msgget01.c:144: warning: cast from pointer to integer of different size lib.c: In function ‘test_ENAMETOOLONG_path’: lib.c:224: warning: cast from pointer to integer of different size lib64.c: In function ‘test_ENAMETOOLONG_path’: lib64.c:224: warning: cast from pointer to integer of different size endian_switch01.c:64: warning: ‘setup’ defined but not used crash01.c: In function ‘badboy_loop’: crash01.c:344: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness crash01.c: In function ‘compute_badboy’: crash01.c:529: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness crash01.c:537: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness crash01.c:543: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness netsync.c: In function ‘setupConnectionServeur’: netsync.c:80: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness test_1_to_1_threads.c: In function ‘main’: test_1_to_1_threads.c:177: warning: cast to pointer from integer of different size test_sctp_sendrecvmsg.c: In function ‘main’: test_sctp_sendrecvmsg.c:150: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_sctp_sendrecvmsg.c:224: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c: In function ‘main’: test_timetolive.c:152: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c:260: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_sctp_sendrecvmsg.c: In function ‘main’: test_sctp_sendrecvmsg.c:150: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_sctp_sendrecvmsg.c:224: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c: In function ‘main’: test_timetolive.c:152: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c:260: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness ltpClient.c: In function ‘network_listener’: ltpClient.c:377: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpClient.c: In function ‘ping_network’: ltpClient.c:507: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpClient.c: In function ‘ltp_traceroute’: ltpClient.c:596: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpServer.c: In function ‘ltp_udp_server_queue’: ltpServer.c:235: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpServer.c: In function ‘ltp_tcp_server_queue’: ltpServer.c:268: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness ltpServer.c: In function ‘tcp_receive_buffer’: ltpServer.c:318: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpServer.c: In function ‘ltp_multi_server_queue’: ltpServer.c:383: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness Compiled successfully on Fedora 10 Beta x86_64. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
f2f0acb450ce79fb12f6a4565d6495776bcc1d50 |
|
15-Oct-2008 |
subrata_modak <subrata_modak> |
This patch cleans code a little bit by removing leftovers. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
efe7aee8f945d0cfdc7b8e21d345aa3f1d9a3db1 |
|
06-Apr-2008 |
subrata_modak <subrata_modak> |
This patch remove the useless random function used in getipckey. This random value has been replaced by a static int incremented at each call. This allow to remove the ugly whiles around the getipckey calls when we need several keys, by, Renaud Lottiaux <Renaud.Lottiaux@kerlabs.com>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
5b6937448e2190222b769a6def65f2723b8de973 |
|
22-Feb-2008 |
subrata_modak <subrata_modak> |
Since msgmni now scales to the memory size, it may reach big values. To avoid forking 2*msgmni processes and create msgmni msg queues, take the min between the procfs value and MSGMNI (as found in linux/msg.h). Also integrated the following in libipc.a: . get_max_msgqueues() . get_used_msgqueues() Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
cff4af016805c764c391c473d4c95b999dcdf148 |
|
11-Feb-2006 |
vapier <vapier> |
remove extraneous whitespace usage in tst_* functions
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
6eaecb2f051cee4b1a36e6092b408e8f378e3406 |
|
22-Dec-2005 |
robbiew <robbiew> |
Applied Coldfire patch from Jody McIntyre: - Make the fdopen workaround blackfin-specific (not needed on Coldfire.) - getdents01: gcc 2.95 does not like declarations in the middle of functions, so move getdents to the top. - Add LDFLAGS to the following Makefiles: - Add -D_USC_LIB_ for Coldfire builds to the following Makefiles: creat, execve, fchdir, kill, mkdir, open, rename, rmdir, sched_setscheduler, vhangup, ipc/lib. This avoids symbol conflicts reported by gcc 2.95. - Skip the following syscall tests on Coldfire: madvise, mlock, munlock. These system calls are not implemented. - IPC: Modify the headers and Makefiles to avoid duplicate definitions of msgkey on Coldfire. - msgctl08, msgctl09: Lower MAXNPROCS to a value that will fit in the Coldfire's memory. - mallopt01: Define __MALLOC_STANDARD__ on Coldfire. - Skip mmap01 on Coldfire since it requires sbrk(), which is not available. - rename02: Remove private do_file_setup and use the library version to avoid symbol conflicts. - kill07: Declare semkey as extern on Coldfire to avoid symbol conflicts. - kill11: Move *msg declaration since gcc 2.95 does not understand C99. - sigaction01: Move -lc in the Makefile after -lpthread.
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
23499f09a7c071dfe524cd7c130c67192a162d04 |
|
18-Nov-2002 |
robbiew <robbiew> |
Applied cleanup patch from Saji Kumar <saji.kumar@wipro.com>. I removed additional warnings created when -Wall option used. I also fixed Makefiles to correctly locate the libraries and header files necessary for compilation.
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
a88b54977ced95e5298ffff1e6d65c58366b0e88 |
|
18-Jan-2002 |
iyermanoj <iyermanoj> |
semctl() call was modified in rm_sema() to comply with the man pages on intel and PPC. (Refer man page for semctl() on SuSE 7.3).
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|
865695bbc89088b9526ea9045410e5afb70a985c |
|
28-Aug-2001 |
plars <plars> |
restructuring work done, and adding about 400 testcases
/external/ltp/testcases/kernel/syscalls/ipc/lib/libipc.c
|