plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | 15-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/15-1.c | 2,081 | utf_8 | 82e93d8d797729d8cafaac4d4f20f1dd | /*
* source tree.
*/
/*
* mq_timedreceive test plan:
* mq_timedreceive will return EMSGSIZE when msg_len is less than the
* message size attribute of the message queue.
*/
#include <stdio.h>
#include <errno.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
... |
google | android | 18-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-1.c | 2,609 | utf_8 | 2b06ab54ba10ddc8ac9fe76eeef71c99 | /*
* source tree.
*/
/*
* mq_timedreceive() test plan:
* mq_timedreceive() will fail with ETIMEDOUT when O_NONBLOCK is not
* set and no message arrived before the timout expired.
*
*/
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <mqueue.h>
#inc... |
google | android | 8-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/8-1.c | 2,840 | utf_8 | 16bf20dfaf24523eb787953bfc55d2e0 | /*
*/
/*
* If Timers option is supported, then abs_timeout is based on
* CLOCK_REALTIME.
* Otherwise, the timeout is based on the system clock (time() function).
*/
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <mqueue.h>
#include <signal.h>
#include <stdio.h>
#incl... |
google | android | 10-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/speculative/10-2.c | 2,025 | utf_8 | f80efe8009df5dbc0bda6d09fe9feb89 | /*
* source tree.
*/
/*
* mq_timedreceive test plan:
* If message can be removed from message queue immediately, the validity
* of timout need not be checked.
*
* This is a speculative test because if abs_timeout _is_ checked for
* validity, it is not a failure.
*/
#include <stdio.h>
#include <mqueue.h>
#inclu... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/2-1.c | 2,031 | utf_8 | 27193dbdfa73aa07bcb7ec7d955ec14d | /*
* source tree.
*/
/*
* mq_getattr() test plan:
* mq_getattr gets mq_flags which is set when message queue
* was opened.
*
* 3/27/2003 Fixed a bug pointed out by Krzysztof Benedyczak.
* mq_getattr returns ALL flags not only those set by
* mq_setattr. So there should not be setting using
* "... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/3-1.c | 1,886 | utf_8 | 275e2452a3e42c862269a730e68f65c4 | /*
* source tree.
*/
/*
* mq_getattr() test plan:
* mq_getattr gets mq_maxmsg, mq_msgsize, which are set when message queue
* was opened.
*
* 2/17/2004 call mq_close and mq_unlink before exit to release mq
* resources
*
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
... |
google | android | 2-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/2-2.c | 1,953 | utf_8 | 89245cb07aa58507c202216a9de86266 | /*
* source tree.
*/
/*
* mq_getattr() test plan:
* mq_getattr gets mq_flags value, which is set by mq_setattr.
*
* 2/17/2004 call mq_close and mq_unlink before exit to release mq
* resources
*
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#incl... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/4-1.c | 1,944 | utf_8 | c0f5df687b5364840b657b4b0ee5fb99 | /*
* source tree.
*/
/*
* mq_getattr test plan:
* mq_getattr gets mq_curmsgs value, which will be returned as
* the number of the message currently on the queue.
*
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#in... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/speculative/7-1.c | 1,809 | utf_8 | 0cca8b1cfb5e84751dc86b6a428272b2 | /*
* source tree.
*/
/*
* mq_getattr() test plan:
* Test if mqdes argument is not a valid message queue descriptor,
* mq_getattr() function may fail with EBADF, and the function will
* return a value of -1.
*/
#include <stdio.h>
#include <errno.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#inc... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/7-1.c | 2,239 | utf_8 | f5aeb2474d2812444c1ff3754262805a | /*
* source tree.
This program tests the assertion that the lowest pending signal will be
selected for delivery if there are any multiple pending signals in the
range SIGRTMIN to SIGRTMAX.
Steps:
- Register for myhandler to be called when any signal between SIGRTMIN
and SIGRTMAX is generated, and make
sure ... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/2-1.c | 945 | utf_8 | d8b33e91826450a2e3ff89536b58365f | /*
* source tree.
* Test that if the signal is the null signal (0), no signal is sent.
* 1) Call sigqueue on the current process with the null signal.
* 2) If process is still functional after siqueue() is called, consider
* the test a pass (most likely no signal was sent).
*/
#define _XOPEN_REALTIME 1
#in... |
google | android | 9-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/9-1.c | 2,421 | utf_8 | b4c7a2e462ceb9ae0ebfd41a8771e558 | /*
*
* Steps:
* - Register for myhandler to be called when SIGTOTEST is called, and make
* sure SA_SIGINFO is set.
* - Block signal SIGTOTEST from the process.
* - Using sysconf(), check to see if there is a limit on number of queued
* signals that are pending. If there isn't a limit (i.e. sysconf returned
... |
google | android | 11-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/11-1.c | 1,051 | utf_8 | 7058e08ce7c75852edcb4ffeed5f0f1d | /*
* source tree.
* Test that when pid does not exist, then sigqueue() returns -1
* and errno is set to [ESRCH]
*/
#define _XOPEN_REALTIME 1
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include "posixtest.h"
int main(void)
{
int failure... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/3-1.c | 2,322 | utf_8 | 8c3627758b8cdc47d0ab93a826e522b9 | /*
* source tree.
This program tests the assertion that if the user id of the sending process
doesn't match the user id of the receiving process (pid), then the sigqueue
function will fail with errno set to EPERM, unless the sending process
has appropriate privileges.
Since process pid 1 (init) is not killable by... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/5-1.c | 1,922 | utf_8 | b7d0b3b8e64f529e1db89cd0fd69c456 | /*
* source tree.
This program tests the assertion that if SA_SIGINFO is not set, then the
signal shall be received at least once
Steps:
- Register for myhandler to be called when SIGTOTEST is called, and make
sure SA_SIGINFO is NOT SET.
- Block signal SIGTOTEST from the process.
- Using sigqueue(), send NUMC... |
google | android | 10-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/10-1.c | 1,064 | utf_8 | c94f7a023136d20c86249c49f9dcc21c | /*
* source tree.
* Test that when signo in sigqueue() is invalid, then -1 is returned
* and errno is set to [EINVAL]
*/
#define _XOPEN_REALTIME 1
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include "posixtest.h"
int main(void)
{
int f... |
google | android | 12-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/12-1.c | 2,264 | utf_8 | 2e14c486aa2b4b060bdc98c08bc5f5ee | /*
* source tree.
* Test that when the process does not have the appropriate privilege
to send the signal to the receiving process, then sigqueue()
returns -1 and errno is set to [EPERM]
The real or effective user ID of the sending process shall match
the real or saved set-user-ID of the receiving pr... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/1-1.c | 2,294 | utf_8 | e8ea88bc0375f19f992ed67016e9be3f | /*
* source tree.
* Test that the sigqueue() function shall send signal signo and value
to the child process specified by pid.
* 1) Fork a child process.
* 2) In the parent process, call sigqueue with signal SIGTOTEST and
* value VALTOTEST for the pid of the child
* In the child,
* 3) Wait for signa... |
google | android | 2-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/2-2.c | 1,409 | utf_8 | f0e9d71640ecdea3ae6f1561a3315edb | /*
* source tree.
* Test that when signo in sigqueue() is 0, error checking is
* still performed.
* Steps:
* Call sigqueue() with signo equal to zero but pid is 999999
* and verify that ESRCH error received and sigqueue() returned -1.
* Call sigqueue() with signo equal to zero but pid is 1 (init)
* and v... |
google | android | 8-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/8-1.c | 2,086 | utf_8 | dd5b789bafa11de419d61505d69bd087 | /*
* source tree.
This program tests the assertion that if SA_SIGINFO is set, then the
signal shall be queued to the receiving process and that sigqueue returns 0.
Steps:
- Register for myhandler to be called when SIGTOTEST is called, and make
sure SA_SIGINFO is set.
- Block signal SIGTOTEST from the process.
... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/4-1.c | 2,024 | utf_8 | 714baf112018d63b6690869e229d7ee1 | /*
* source tree.
This program tests the assertion that if SA_SIGINFO is set, then the
signal shall be queued to the receiving process.
Steps:
- Register for myhandler to be called when SIGTOTEST is called, and make
sure SA_SIGINFO is set.
- Block signal SIGTOTEST from the process.
- Using sigqueue(), send NU... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/6-1.c | 2,251 | utf_8 | 82055d1af5620e3312910c697ba1918e | /*
* source tree.
This program verifies that if the value of pid causes signo to be
generated for the sending process, and if signo is not blocked for
the calling thread and if no other thread has signo unblocked or is
waiting in a sigwait() function for signo, then signal SIGTOTEST
is delivered to the calling th... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/7-1.c | 768 | utf_8 | bbe47283c32099d5f7ed90184f8f5f31 | /*
* source tree.
* Test that when the null signal is sent to pthread_kill(), error
checking is still performed.
*/
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include "posixtest.h"
int main(void)
{
pthread_t mai... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/2-1.c | 916 | utf_8 | 686d943916c0bce7a552f09f58cbe7d7 | /*
* source tree.
* Test that if the signal is the null signal (0), no signal is sent.
* 1) Call pthread_kill on the current thread with the null signal.
* 2) If process is still functional after kill() is called, consider
* the test a pass (most likely no signal was sent).
*/
#include <pthread.h>
#include... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/1-2.c | 4,461 | utf_8 | 7f857ed3038852920f3de6a8c9b68b46 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertions:
*
* pthread_kill() sends the specified signal to the specified thread.
* The steps are:
* -> set a signal handler
* -> Create a new thread
* -> pthread_kill this thread from the main thread
* -> W... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/3-1.c | 724 | utf_8 | 445e2b2f9480f430a27e5d8bb35cc46b | /*
* source tree.
* Test that the pthread_kill() function shall return 0 upon success.
*/
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "posixtest.h"
int main(void)
{
pthread_t main_thread;
main_thread = pthread_self();
if (pthread_kill(main_thread, ... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/1-1.c | 3,079 | utf_8 | fc856c8ea665ff846e8323c0d280df57 | /*
* source tree.
This program verifies that the pthread_kill() function requests from the
kernel to deliver a specified signal to a specified thread.
Using two global values of sem1 (INTHREAD and INMAIN), we are going to
control when we want execution to be in main() and when we want
execution to be a_thread_fu... |
google | android | 8-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c | 7,543 | utf_8 | 488eeeacad5d64b93310cd008d9693eb | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* The function does not return EINTR
* The steps are:
* -> kill a thread which calls pthread_kill
* -> check that EINTR is never returned
*/
/*****************************************************... |
google | android | 14-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/14-1.c | 4,212 | utf_8 | 38ca51f701977a25b662ce39328c95a7 | /*
* source tree.
*/
/*
* assertion:
*
* Failure of an individual request does not prevend completion of any
* other individual request.
*
* method:
*
* - open a file for writing
* - submit a list with an invalid aiocb to lio_listio in LIO_NOWAIT mode
* - check that the good requests do not fail
*
*/
#inc... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/7-1.c | 4,217 | utf_8 | ea877bceabca74b1f7b848bea29dd718 | /*
* source tree.
*/
/*
* assertion:
*
* LIO_NOP causes the entry to be ignored.
*
* method:
*
* - open a file for writing
* - create an lio list with LIO_NOP elements
* - submit list to lio_listio
* - check that LIO_NOP elements are ignored
*
*/
#include <sys/stat.h>
#include <sys/types.h>
#include <aio.... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/2-1.c | 3,363 | utf_8 | b70a6a217f896fbb96bce65a274d5f7b | /*
* source tree.
*/
/*
* assertion:
*
* If mode is LIO_NOWAIT, lio_listio() shall return immediately.
*
* method:
*
* - open a file for writing
* - submit a list of writes to lio_listio in LIO_NOWAIT mode
* - check that upon return some I/Os are still running
*
*/
#include <sys/stat.h>
#include <aio.h>
#i... |
google | android | 9-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/9-1.c | 2,345 | utf_8 | 448a5f8bd8a071ff55f926d57eed9ceb | /*
* source tree.
*/
/*
* assertion:
*
* LIO_WRITE causes the entry to be submited as if by a call to
* aio_write().
*
* method:
*
* - open a file
* - write data using lio_listio
* - read data
* - check data is read correctly
*
*/
#include <sys/stat.h>
#include <sys/types.h>
#include <aio.h>
#include <er... |
google | android | 13-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/13-1.c | 2,820 | utf_8 | da548796818e1e6c17961f3f46806a78 | /*
* source tree.
*/
/*
* assertion:
*
* if mode is LIO_WAIT, lio_listio() shall return the value -1 and set
* errno to indicate error if the operation is not succesfully queued.
*
* method:
*
* - open a file for writing
* - submit a list with invalid opcodes to lio_listio in LIO_WAIT mode
* - check that li... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/3-1.c | 3,846 | utf_8 | 97ed1a9a7549ab4aeb7f657473a91b62 | /*
* source tree.
*/
/*
* assertion:
*
* If mode is LIO_NOWAIT, and sig is not NULL, asynchronous notification
* shall occurs when all I/O operations complete.
*
* method:
*
* - Open a file for writing
* - submit a list of writes to lio_listio in LIO_NOWAIT mode
* - Check that asynchronous notification occu... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/5-1.c | 3,079 | utf_8 | fe038a5b0b74bc67615c50994dd61271 | /*
* source tree.
*/
/*
* assertion:
*
* supported operation for aio_lio_opcode shall be one of LIO_READ,
* LIO_WRITE or LIO_NOP.
*
* method:
*
* - Open a file for writing
* - submit a list using valid opcodes to lio_listio
* - Check that no error occurs
* - Submit a list with invalid opcodes to lio_listio... |
google | android | 10-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/10-1.c | 3,835 | utf_8 | cda82bea8d6a02048821c007ce91574e | /*
* source tree.
*/
/*
* assertion:
*
* if mode is LIO_NOWAIT, lio_listio() shall return the value zero if
* operation is successfuly queued.
*
* method:
*
* - open a file for writing
* - submit a list of writes to lio_listio in LIO_NOWAIT mode
* - check that lio_listio returns 0 and operations complete su... |
google | android | 12-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/12-1.c | 2,528 | utf_8 | 136c7245163ae5ebd84387dccf06ac2a | /*
* source tree.
*/
/*
* assertion:
*
* if mode is LIO_WAIT, lio_listio() shall return the value zero when
* all I/O has completed successfully.
*
* method:
*
* - open a file for writing
* - submit a list of writes to lio_listio in LIO_WAIT mode
* - check that lio_listio returns 0 upon completion
*
*/
#i... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/1-1.c | 3,489 | utf_8 | e60aeb0fbaf7f9201f3e588359bfe0ee | /*
* source tree.
*/
/*
* assertion:
*
* If mode is LIO_WAIT, lio_listio() shall wait until all I/O is
* complete and the sig argument shall be ignored.
*
* method:
*
* - open a file for writing
* - submit a list of writes to lio_listio in LIO_WAIT mode
* - check that upon return all I/Os are completed
* -... |
google | android | 15-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/15-1.c | 4,090 | utf_8 | 6b8bf9bd1a8e066b337db02ee406eec2 | /*
* source tree.
*/
/*
* assertion:
*
* The error statuses returned are identical to those returned as the
* result of an aio_read() or aio_write().
*
* method:
*
* - open a file
* - submit a list of requests to lio_listio
* - check that the error and return codes are consistent
*
*/
#include <sys/stat.h... |
google | android | 18-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/18-1.c | 2,275 | utf_8 | 1bf2e3ae4c9ed0dcee04afae053a714e | /*
* source tree.
*/
/*
* assertion:
*
* lio_listio() shall fail if:
* [EINVAL] mode is not LIO_NOWAIT or LIO_WAIT, or nent is greater than
* {AIO_LISTIO_MAX}
*
* method:
*
* - open a file
* - submit a list of requests to lio_listio usign incorrect mode
* - check that the error and return codes are consist... |
google | android | 8-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/8-1.c | 2,346 | utf_8 | b54ed7e1c6d2b930d410023229fd8edd | /*
* source tree.
*/
/*
* assertion:
*
* LIO_READ causes the entry to be submited as if by a call to aio_read().
*
* method:
*
* - open a file
* - write data
* - submit read request to lio_listio
* - check data is read correctly
*
*/
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/4-1.c | 4,313 | utf_8 | 3a5067bd32ab8a31ba42246f0bc51ab3 | /*
* source tree.
*/
/*
* assertion:
*
* The list array may contain NULL elements which shall be ignored.
*
* method:
*
* - Open a file for writing
* - Create an lio list with NULL elements
* - submit list to lio_listio
* - Check that NULL elements are ignored
*
*/
#include <sys/stat.h>
#include <aio.h>
#... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/6-1.c | 1,044 | utf_8 | fda2c3e63ad62a617107d9d8f66a996d | /*
* source tree.
*/
/*
* assertion:
*
* LIO_READ, LIO_WRITE and LIO_NOP are defined in <aio.h>.
*
* method:
*
* - Check opcodes are defined when including aio.h
*
*/
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <err... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigfillset/2-1.c | 705 | utf_8 | af8275427d3e9b96732031e3c3d59a6f | /*
* source tree.
Simply, as long as sigfillset returns a 0, the test passes.
*/
#include <stdio.h>
#include <signal.h>
#include "posixtest.h"
int main(void)
{
sigset_t signalset;
/*
int returnval;
returnval = sigfillset(&signalset);
if (returnval != 0) {
*/
if (sigfillset(&signalset) != 0) {
perror("sigfillse... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigfillset/1-1.c | 1,378 | utf_8 | 8a35daec520ef5e91ab645f415ef540e | /*
* source tree.
If any of the signals listed in the array below are not is "signalset"
after sigfillset is called on it, then fail, otherwise pass.
*/
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include "posixtest.h"
#define NUMSIGNALS (sizeof(siglist) / sizeof(siglist[0]))
int main(void)
{
sigset... |
google | android | 7-4 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/7-4.c | 2,997 | utf_8 | d70330a692d3c1c2c5f10fc63ff530ad | /*
* source tree.
*
* MAP_SHARED and MAP_PRIVATE describe the disposition of write references
* to the memory object. If MAP_SHARED is specified, write references shall
* change the underlying object. If MAP_PRIVATE is specified, modifications
* to the mapped data by the calling process shall be visible only to t... |
google | android | 32-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/32-1.c | 1,288 | utf_8 | 7da46e4c0c43066a09bac2f0239ac676 | /*
* source tree.
*
* If len is zero, mmap() shall fail and no mapping shall be established.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <string.h>
#include <err... |
google | android | 6-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/6-3.c | 2,826 | utf_8 | ef1d0d6b1cdf159dc591315ee7006086 | /*
* source tree.
*
* MPR An implementation may permit accesses other than those specified by prot;
* however, if the Memory Protection option is supported, the implementation
* shall not permit a write to succeed where PROT_WRITE has not been set or
* shall not permit any access where PROT_NONE alone has been se... |
google | android | 21-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/21-1.c | 1,413 | utf_8 | 2c066239d421cdee620c98b5c69cb79f | /*
* source tree.
*
* When the implementation selects a
* The mmap() function shall fail if:
* [EINVAL] The value of flags is invalid (neither MAP_PRIVATE nor MAP_SHARED is
* set).
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
... |
google | android | 14-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/14-1.c | 3,109 | utf_8 | 5dc4f1330217ee94a22d8a00f651e931 | /*
* source tree.
*
* The st_ctime and st_mtime fields of a file that is mapped with
* MAP_SHARED and PROT_WRITE shall be marked for update at some point
* in the interval between a write reference to the
* mapped region and the next call to msync() with MS_ASYNC or MS_SYNC
* for that portion of the file by any ... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/7-1.c | 2,748 | utf_8 | 77c690105e6e93d230f35d40c8666fc4 | /*
* source tree.
*
* MAP_SHARED and MAP_PRIVATE describe the disposition of write references
* to the memory object. If MAP_SHARED is specified, write references shall
* change the underlying object. If MAP_PRIVATE is specified, modifications
* to the mapped data by the calling process shall be visible only to t... |
google | android | 24-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/24-1.c | 2,089 | utf_8 | 4e34ff2ace753487e276a921aeefc543 | /*
* source tree.
*
* The mmap() function shall fail if:
* [ENOMEM] MAP_FIXED was specified, and the range [addr,addr+len)
* exceeds that allowed for the address space of a process;
* or, if MAP_FIXED was not specified and
* there is insufficient room in the address space to effect the mapping.
*
* Test Steps:... |
google | android | 11-5 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-5.c | 3,490 | utf_8 | 819060ed4a4d7b944012d8d8770292de | /*
* source tree.
*
* Implementation performs mapping operations over whole pages.
* Thus, while the argument len
* need not meet a size or alignment constraint,
* the implementation shall include, in any mapping
* operation, any partial page specified by the range [pa,pa+len).
* The system shall always zero-fi... |
google | android | 9-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/9-1.c | 2,324 | utf_8 | 62691b79073f843e0b4885305031cb3b | /*
* source tree.
*
* If MAP_FIXED is set,
* mmap() may return MAP_FAILED and set errno to [EINVAL].
*
* [EINVAL] The addr argument (if MAP_FIXED was specified) or off is not a
* multiple of the page size as returned by sysconf(), or is considered invalid
* by the implementation.
*
* Test Steps:
* 1. Set 'ad... |
google | android | 11-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-1.c | 2,257 | utf_8 | 5f14ececf83546ce25f04cddea4548c1 | /*
* source tree.
*
* The off argument is constrained to be aligned and sized
* according to the value returned by
* sysconf() when passed _SC_PAGESIZE or _SC_PAGE_SIZE.
*
* The mmap() function shall fail if: [EINVAL] The addr argument (if MAP_FIXED
* was specified) or off is not a multiple of the page size as ... |
google | android | 6-6 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/6-6.c | 2,087 | utf_8 | a68daaf401a1665e15f9f0d7b318af8b | /*
* source tree.
*
* The file descriptor fildes shall have been opened with read permission,
* regardless of the protection options specified. If PROT_WRITE is
* specified, the application shall ensure that it has opened the file
* descriptor fildes with write permission unless MAP_PRIVATE
* is specified in the... |
google | android | 6-5 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/6-5.c | 2,053 | utf_8 | fb39afb01a00fd56513670bcba76ff8c | /*
* source tree.
*
* The file descriptor fildes shall have been opened with read permission,
* regardless of the protection options specified. If PROT_WRITE is
* specified, the application shall ensure that it has opened the file
* descriptor fildes with write permission unless MAP_PRIVATE
* is specified in the... |
google | android | 19-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/19-1.c | 955 | utf_8 | d03e81bf02456c090f4ef121a8178518 | /*
* source tree.
*
* The mmap() function shall fail if:
* [EBADF] The fildes argument is not a valid open file descriptor.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <string.h... |
google | android | 23-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/23-1.c | 1,285 | utf_8 | 5031a31cfd4d7487fb667f3a14790a23 | /*
* source tree.
*
* The mmap() function shall fail if: [ENODEV] The fildes argument refers to a
* file whose type is not supported by mmap().
*
* Test Steps:
* 1. Create pipe;
* 2. mmap the pipe fd to memory, should get ENODEV;
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mm... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/1-2.c | 1,603 | utf_8 | 55ee79194bfd377523070e1e7a7ca8c1 | /*
* source tree.
*
* The mmap() function shall establish a mapping
* between a process's address space
* and a shared memory object.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <er... |
google | android | 7-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/7-3.c | 3,100 | utf_8 | 735d8dbe62c044154b21a9637537ca4a | /*
* source tree.
*
* MAP_SHARED and MAP_PRIVATE describe the disposition of write references
* to the memory object. If MAP_SHARED is specified, write references shall
* change the underlying object. If MAP_PRIVATE is specified, modifications
* to the mapped data by the calling process shall be visible only to t... |
google | android | 24-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/24-2.c | 2,998 | utf_8 | b64cbe9f1865c534ce8a6d2ba0548d67 | /*
* 3. Should get ENOMEM.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/resource.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include "posixtest.h"
int main(void)
{
char tmpfname[256];
void *pa;
void ... |
google | android | 7-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/7-2.c | 2,760 | utf_8 | fa37858c6c2ebe27a737ca90ae7deefc | /*
* source tree.
*
* MAP_SHARED and MAP_PRIVATE describe the disposition of write references
* to the memory object. If MAP_SHARED is specified, write references shall
* change the underlying object. If MAP_PRIVATE is specified, modifications
* to the mapped data by the calling process shall be visible only to t... |
google | android | 27-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/27-1.c | 2,439 | utf_8 | a673cb23d1aacbc7faf185b8654627aa | /*
* source tree.
*
* The mmap() function shall fail if:
* [ENOTSUP] MAP_FIXED or MAP_PRIVATE was specified
* in the flags argument and the
* implementation does not support this functionality.
* The implementation does not support the combination
* of accesses requested in the prot argument.
*
* Test Steps:
... |
google | android | 13-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/13-1.c | 3,302 | utf_8 | 9fb508e08b0ba4aa1c212258d05dbe73 | /*
* source tree.
*
* The st_atime field of the mapped file may be marked for update
* at any time between the mmap() call and the corresponding munmap()
* call. The initial read or write reference to a mapped region
* shall cause the file st_atime field to be marked for update if
* it has not already been marke... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/3-1.c | 3,345 | utf_8 | bb5cd703f78acd5454363d916802ca08 | /*
* source tree.
*
* The mapping established by mmap() shall replace any previous
* mappings for those whole pages containing any part of the address
* space of the process starting at pa and continuing for len bytes.
*
* Test Steps:
* 1. Set the size of the file to be mapped as (2 * _SC_PAGE_SIZE);
* 2. Map ... |
google | android | 6-4 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/6-4.c | 2,102 | utf_8 | 4d5061a34c626945aaeb53294924c43a | /*
* source tree.
*
* The file descriptor fildes shall have been opened with read permission,
* regardless of the protection options specified. If PROT_WRITE is
* specified, the application shall ensure that it has opened the file
* descriptor fildes with write permission unless MAP_PRIVATE
* is specified in the... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/5-1.c | 3,328 | utf_8 | 69f246e79f1e406d250b639456ec3ebe | /*
* source tree.
*
* The prot shall be either PROT_NONE or the bitwise-inclusive OR of
* one or more of the other flags in the following table, defined in the
* <sys/mman.h> header.
* PROT_READ Data can be read.
* PROT_WRITE Data can be written.
* PROT_EXEC Data can be executed.
* PROT_NONE Data cannot be acc... |
google | android | 11-4 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c | 3,908 | utf_8 | 0e06693c60ff0d9678282440908ea3e0 | /*
* source tree.
*
* Implementation performs mapping operations over whole pages.
* Thus, while the argument len
* need not meet a size or alignment constraint,
* the implementation shall include, in any mapping
* operation, any partial page specified by the range [pa,pa+len).
* The system shall always zero-fi... |
google | android | 11-6 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-6.c | 3,459 | utf_8 | a2b8c81b436349328224cc3ecc41efcd | /*
* source tree.
*
* Implementation performs mapping operations over whole pages.
* Thus, while the argument len
* need not meet a size or alignment constraint,
* the implementation shall include, in any mapping
* operation, any partial page specified by the range [pa,pa+len).
* The system shall always zero-fi... |
google | android | 10-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/10-1.c | 1,956 | utf_8 | 1cbc5a7944f82c4258d8934cdf4e5fd4 | /*
* source tree.
*
* When the implementation selects a
* value for pa, it never places a mapping at address 0.
*
* Test steps:
* This is not a good test. Cannot make sure (pa == 0) never happens.
* Repeat LOOP_NUM times mmap() and mnumap(),
* make sure pa will not equal 0.
*/
#include <stdio.h>
#include <std... |
google | android | 6-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/6-2.c | 3,108 | utf_8 | 8faa417b1dec1191f23db393984ae76e | /*
* source tree.
*
* MPR An implementation may permit accesses other than those specified by prot;
* however, if the Memory Protection option is supported, the implementation
* shall not permit a write to succeed where PROT_WRITE has not been set or
* shall not permit any access where PROT_NONE alone has been se... |
google | android | 31-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/31-1.c | 2,812 | utf_8 | 0a67120695923d7fb65aba537b3625a3 | /*
* source tree.
*
* The mmap() function shall fail if:
* [EOVERFLOW] The file is a regular file and the value of off
* plus len exceeds the offset maximum established in the open
* file description associated with fildes.
*
* Note: This error condition came to the standard with large
* file extension a... |
google | android | 12-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/12-1.c | 2,293 | utf_8 | 03b876d970a887104df273e55a0ecafc | /*
* source tree.
*
* The mmap() function shall add an extra reference to the file
* associated with the file descriptor fildes which is not removed
* by a subsequent close() on that file descriptor.
* This reference shall be removed when there are no more
* mappings to the file.
*
* Test Steps:
* 1. Create a... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/1-1.c | 1,548 | utf_8 | 1b287101b7922a2ba313166500390cb8 | /*
* source tree.
*
* The mmap() function shall establish a mapping between a process's
* address space and a file,
*
* Test Steps:
* 1. Create a tmp file;
* 2. mmap it to memory using mmap();
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include... |
google | android | 18-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/18-1.c | 3,714 | utf_8 | 57427d05cb7f90068825ca9d651dcd85 | /*
* certain value.
* 3. Change user to non-root user seteuid()
* 4. Map a shared memory object, with size larger than the
* rlim_cur value set in step 2
* 5. Should get EAGAIN.
* 6. Change user to root seteuid()
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <... |
google | android | 11-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-2.c | 2,485 | utf_8 | a25e4e5e1e0cda4f479c205cb2eaee7f | /*
* source tree.
*
* MPR References within the address range starting at pa and
* continuing for len bytes to whole pages following the end
* of an object shall result in delivery of a SIGBUS signal.
*
* Test Steps:
* 1. Map a file with size = 1/2 page_size, while len = 2 * page_size
* 2. If Memory Protection... |
google | android | 11-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-3.c | 2,488 | utf_8 | 9622873343e4ea88430f9101b10aec41 | /*
* source tree.
*
* MPR References within the address range starting at pa and
* continuing for len bytes to whole pages following the end
* of an object shall result in delivery of a SIGBUS signal.
*
* Test Steps:
* 1. Map a shared memory object of size 1/2 * page_size,
* with len = 2 * page_size
* 2. I... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/6-1.c | 2,977 | utf_8 | 15d3a76d00441f645e23dee0572f6b2e | /*
* source tree.
*
* MPR An implementation may permit accesses other than those specified by prot;
* however, if the Memory Protection option is supported, the implementation
* shall not permit a write to succeed where PROT_WRITE has not been set or
* shall not permit any access where PROT_NONE alone has been se... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/1-1.c | 2,985 | utf_8 | ad72af9be954d7c3f9b8de9c6bc71312 | /*
* source tree.
* Test pthread_spin_trylock(pthread_spinlock_t *lock)
*
* The function shall lock the spin lock referenced by 'lock' if it is not
* held by any thread. Otherwise, the function shall fail.
*
* Steps:
* 1. Initialize a pthread_spinlock_t object 'spinlock' with
* pthread_spin_init()
* 2. ... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/4-1.c | 1,083 | utf_8 | 51a1879819cb61c890027b116e4fc7a8 | /*
* source tree.
* Test pthread_spin_trylock(pthread_spinlock_t *lock)
*
* Note: This case will always pass
*
* These functions may fail if:
* [EINVAL] The value specified by lock does not refer to an initialized spin lock object.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unis... |
google | android | 3-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/3-2.c | 9,996 | utf_8 | b6f4c287d102d0847b2de597853d4d27 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This sample test aims to check the following assertion:
*
* The macro PTHREAD_MUTEX_INITIALIZER can be used
* to initialize mutexes that are statically allocated.
* The effect are equivalent to dynamic initialization by a call to
* pthread_mut... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/2-1.c | 1,443 | utf_8 | e6436ccf0c2da29d42f7f38c07f46fe6 | /*
* source tree.
* Test that pthread_mutex_init()
* Upon successful initialization, the state of the mutex becomes
* initialized and unlocked.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include "posixtest.h"
int main(void)
{
pthread_mutex_t mutex;
int rc;
/* Initialize a mutex objec... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-2.c | 10,129 | utf_8 | 63dfd676edfc1b403e4d11050a9d6ddd | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* If the mutex attribute pointer passed to pthread_mutex_init is NULL,
* the effects on the mutex are the same as if a default mutex attribute object had been passed.
*
* The steps are:
*... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/3-1.c | 767 | utf_8 | 01e687d1aca8cfa3a2e97e3b8880dc9f | /*
* source tree.
* Test that the macro PTHREAD_MUTEX_INITIALIZER can be used to initialize
* mutexes that are statically allocated.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include "posixtest.h"
typedef struct my_data {
pthread_mutex_t mutex; /* Protects access to value */
int value; /*... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/5-1.c | 6,925 | utf_8 | cc6a3b79e3222e888c42c6d9d473d6da | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This sample test aims to check the following assertion:
* The function fails and returns ENOMEM if there is not enough memory.
* The steps are:
* * Fork
* * New process sets its memory resource limit to a minimum value, then
* -> Allocate all... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-1.c | 1,539 | utf_8 | 45517490092a1c06bd37f05feaecff03 | /*
* source tree.
* Test that pthread_mutex_init()
* initializes a mutex referenced by 'mutex' with attributes specified
* by 'attr'. If 'attr' is NULL, the default mutex attributes are used.
* The effect shall be the same as passing the address of a default
* mutex attributes.
* NOTE: There is no direc... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/4-1.c | 1,552 | utf_8 | 4acaf9c36a2002e265a78d7d06ed7f0e | /*
* source tree.
* Test that pthread_mutex_init()
* Upon succesful completion, it shall return a 0
*
*/
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include "posixtest.h"
int main(void)
{
pthread_mutexattr_t mta;
pthread_mutex_t mutex;
int rc;
/* Initialize a mutex attributes object */
if ((... |
google | android | 5-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/speculative/5-2.c | 4,136 | utf_8 | d2a6a4160a6a4fd341512c52aed54854 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This sample test aims to check the following assertion:
* The function fails and return EPERM if caller has not the
* privilege to perform the operation.
* The steps are:
* -> if this implementation does not support privileges, return PTS_UNSUP... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/2-1.c | 1,128 | utf_8 | 435bf8926192b04a0e22ff324658bcbd | /*
* source tree.
* Test that pthread_key_create()
*
* Upon key creation, the value NULL shall be associated with the new key in all active threads.
* Upon thread creation, the value NULL shall be associated with all defined keys in the new
* thread.
*
* Steps:
* 1. Create a key
* 2. Verify that the default v... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/1-2.c | 2,256 | utf_8 | 5b33aad48871e9fd57a4bb5ccd85b75b | /*
* source tree.
* Test that pthread_key_create()
*
* shall create a thread-specific data key visible to all threaads in the process. Key values
* provided by pthread_key_create() are opaque objects used to locate thread-specific data.
* Although the same key value may be used by different threads, the value... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/3-1.c | 2,359 | utf_8 | b7ea252be125ad855b0195441ca746b1 | /*
* source tree.
* Test that pthread_key_create()
*
* An optional destructor function may be associated with each key value. At thread exit, if
* a key value has a non-NULL destructor pointer, and the thread has a non-NULL value associated
* with that key, the value of the key is set to NULL, and then the funct... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/1-1.c | 1,969 | utf_8 | 950788ae2609d8ac32d37ab672515109 | /*
* source tree.
* Test that pthread_key_create()
*
* shall create a thread-specific data key visible to all threaads in the process. Key values
* provided by pthread_key_create() are opaque objects used to locate thread-specific data.
* Although the same key value may be used by different threads, the value... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/speculative/5-1.c | 1,843 | utf_8 | 01673388afb5879fd92f0c4640bce7ca | /*
* source tree.
*
* Test that pthread_key_create()
*
* If successful, the pthread_key_create() function shall store the newly
* created key value at *key and shall return zero. Otherwise, an error number
* shall be returned to indicate an error:
*
* [EAGAIN] - the system lacked the necessary resources to cr... |
google | android | 3-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c | 7,055 | utf_8 | 865eccf6c4afe824fcbfa96ad146c695 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* The TLD destructors (if any) are executed after the cancelation cleanup handlers,
* in unspecified order.
* The steps are:
*
* -> Create threads with different attributes (but all must... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-1.c | 3,002 | utf_8 | 5edb6d4965e331fe4fe13987ed27dda1 | /*
* source tree.
* Test that pthread_exit()
*
* Any cancelation cleanup handlers that have been pushed and not yet popped
* shall be popped and executed in the reverse order that they were pushed.
*
* Steps:
* 1. Create a new thread.
* 2. The thread will call pthread_exit().
* 3. When this happens, the cl... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c | 5,542 | utf_8 | 5eb42731a2854612b35af81da088d333 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* pthread_exit() terminates the current thread and
* allows a call to pthread_join() on this thread retrieve
* the argument (if the thread is not detached).
* The steps are:
*
* -> Crea... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-1.c | 1,935 | utf_8 | 72324365dd5e1fd5f369e27bf2e44845 | /*
* source tree.
* Test pthread_exit()
*
* Any destructors for thread_specific data will be called when
* pthread_exit is called
*
* Steps:
* 1. Create a new thread.
* 2. Create thread specific data, with a destructor in the thread
* 3. Call pthread_exit in the thread.
* 4. Make sure that the destructor was... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/5-1.c | 6,517 | utf_8 | 8cce02e7bff02b3afe841cafffd7f6b4 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* When a thread other than the first thread of a process returns,
* an implicit call to pthread_exit() is made with the returned value
* as a parameter.
* The steps are:
*
* Same test as... |
google | android | 6-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/6-2.c | 4,095 | utf_8 | 4c7407fdf564ef8d9973391b1ff82667 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* The pthread_exit() routine never returns to its caller
* The steps are:
*
* -> create some threads with different attributes
* -> in the thread call pthread_exit
* -> if the function r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.