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 | 3-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-2.c | 3,526 | utf_8 | 39dca59b175a81b92b53484d88904be0 | /*
* The most of error symbles shall have unique value
* I try to test every symble in a loop. There
* are two kind symbles, one have unique value, the others
* can have same value with certain other symbles
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#define PTP_PASS 0
#define PTP_FAIL ... |
google | android | 3-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c | 2,674 | utf_8 | 741e8a6d1cff10af5f2dff474f6b9142 | /*
* Following symbols need to be defined in errno.h
*
* All #ifdef'ed constants are optional, depending on the spec definition.
*/
#include <errno.h>
static int dummy1 = E2BIG;
static int dummy2 = EACCES;
static int dummy3 = EADDRINUSE;
static int dummy4 = EADDRNOTAVAIL;
static int dummy5 = EAFNOSUPPORT;
static in... |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/errno_h/2-1-buildonly.c | 200 | utf_8 | f7432b4afeb6783ce0d58d9d98284607 | /*
*The <errno.h> header shall provide a
*declaration for errno
*/
#include <errno.h>
static int errno_test;
static int dummyfcn(void)
{
errno_test = errno;
return 0;
} |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/errno_h/1-1-buildonly.c | 100 | utf_8 | 84865003456755cbb2d09834aebf92b6 | /*
* This test tests if error.h is exist and useble
*/
#include <errno.h> |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/errno_h/4-1.c | 2,462 | utf_8 | 381513c95072ab3d44964283b61b3774 | /*
*errno.h shall give positive values for the
*error number symbolic constants
*/
#include <stdio.h>
#include <errno.h>
#define PTP_PASS 0
#define PTP_FAIL 1
#define PTP_UNRESOLVED 2
#define PTP_NOTINUSE 3
#define PTP_UNSUPPORTED 4
#define PTP_UNTESTED 5
#define PTP_UNINITIATED 6
#define PTP_NO... |
google | android | 17-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/17-1-buildonly.c | 559 | utf_8 | 86128c07ab5590303552f7996555bb25 | /*
Test that the function:
char *ctime_r(const time_t *, char *);
is declared.
*/
#include <time.h>
typedef char *(*ctime_r_test) (const time_t *, char *);
static int dummyfcn(void)
{
ctime_r_test dummyvar;
dummyvar = ctime_r;
return 0;
} |
google | android | 3-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/3-3-buildonly.c | 475 | utf_8 | f2c02275b1187d16ac32b1383354b9a8 | /*
Test that CLOCK_PROCESS_CPUTIME_ID is defined
*/
#include <time.h>
#ifndef CLOCK_PROCESS_CPUTIME_ID
#error CLOCK_PROCESS_CPUTIME_ID not defined
#endif |
google | android | 24-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/24-1-buildonly.c | 523 | utf_8 | c9c9a43a9e333ee7a42f478fca545733 | /*
* source tree.
Test that the function:
time_t mktime(struct tm *);
is declared.
*/
#include <time.h>
typedef time_t(*mktime_test) (struct tm *);
static int dummyfcn(void)
{
mktime_test dummyvar;
dummyvar = mktime;
return 0;
} |
google | android | 9-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/9-1-buildonly.c | 573 | utf_8 | 80435d5b2aea6ca725a2de3cbf0ac034 | /*
Test that the function:
char *asctime_r(const struct tm *, char *);
is declared.
*/
#include <time.h>
typedef char *(*asctime_r_test) (const struct tm *, char *);
static int dummyfcn(void)
{
asctime_r_test dummyvar;
dummyvar = asctime_r;
return 0;
} |
google | android | 14-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/14-1-buildonly.c | 670 | utf_8 | 752c781098580acd926aa94a7ffcd169 | /*
Test that the function:
int clock_nanosleep(clockid_t, int, const struct timespec *,
struct timespec *);
is declared.
*/
#include <time.h>
typedef int (*clock_nanosleep_test) (clockid_t, int, const struct timespec *,
struct timespec *);
static int dummyfcn(void)
{
clock_nanosleep_test dumm... |
google | android | 10-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/10-1-buildonly.c | 507 | utf_8 | df689bbf15d60109aeaa7b5bae69902d | /*
* source tree.
Test that the function:
clock_t clock(void);
is declared.
*/
#include <time.h>
typedef clock_t(*clock_test) (void);
static int dummyfcn(void)
{
clock_test dummyvar;
dummyvar = clock;
return 0;
} |
google | android | 18-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/18-1-buildonly.c | 538 | utf_8 | 8bf790bb9b8991a595d72be7ac3615fa | /*
* source tree.
Test that the function:
double difftime(time_t, time_t);
is declared.
*/
#include <time.h>
typedef double (*difftime_test) (time_t, time_t);
static int dummyfcn(void)
{
difftime_test dummyvar;
dummyvar = difftime;
return 0;
} |
google | android | 35-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/35-2-buildonly.c | 429 | utf_8 | c2fb5e45460ea2d15b131a0798fd7c08 | /*
* source tree.
Test that timezone is declared.
*/
#include <time.h>
static int dummyfcn(void)
{
long dummy;
dummy = timezone;
return 0;
} |
google | android | 16-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/16-1-buildonly.c | 524 | utf_8 | 5de717fdd1d1ea8527b827f25532d67a | /*
* source tree.
Test that the function:
char *ctime(const time_t *);
is declared.
*/
#include <time.h>
typedef char *(*ctime_test) (const time_t *);
static int dummyfcn(void)
{
ctime_test dummyvar;
dummyvar = ctime;
return 0;
} |
google | android | 20-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/20-1-buildonly.c | 538 | utf_8 | 5cc8cc258b959d71051db127395f3373 | /*
* source tree.
Test that the function:
struct tm *gmtime(const time_t *);
is declared.
*/
#include <time.h>
typedef struct tm *(*gmtime_test) (const time_t *);
static int dummyfcn(void)
{
gmtime_test dummyvar;
dummyvar = gmtime;
return 0;
} |
google | android | 29-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/29-1-buildonly.c | 609 | utf_8 | c75736f53de2a75bfa2fc88f090505a3 | /*
Test that the function:
int timer_create(clockid_t, struct sigevent *, timer_t *);
is declared.
*/
#include <time.h>
typedef int (*timer_create_test) (clockid_t, struct sigevent *, timer_t *);
static int dummyfcn(void)
{
timer_create_test dummyvar;
dummyvar = timer_create;
return 0;
} |
google | android | 3-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/3-4-buildonly.c | 472 | utf_8 | 5bcbbeccb240e67c777b0a145184a065 | /*
Test that CLOCK_THREAD_CPUTIME_ID is defined
*/
#include <time.h>
#ifndef CLOCK_THREAD_CPUTIME_ID
#error CLOCK_THREAD_CPUTIME_ID not defined
#endif |
google | android | 30-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/30-1-buildonly.c | 545 | utf_8 | 498eb311c76ac5400a6da1eff10b5f4f | /*
Test that the function:
int timer_delete(timer_t);
is declared.
*/
#include <time.h>
typedef int (*timer_delete_test) (timer_t);
static int dummyfcn(void)
{
timer_delete_test dummyvar;
dummyvar = timer_delete;
return 0;
} |
google | android | 22-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/22-1-buildonly.c | 550 | utf_8 | feda28602e4ec1dc3874c7bf281d6f93 | /*
* source tree.
Test that the function:
struct tm *localtime(const time_t *);
is declared.
*/
#include <time.h>
typedef struct tm *(*localtime_test) (const time_t *);
static int dummyfcn(void)
{
localtime_test dummyvar;
dummyvar = localtime;
return 0;
} |
google | android | 3-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/3-1-buildonly.c | 393 | utf_8 | 90d03dfb04a895bdb116d7360d8d1861 | /*
* source tree.
Test that NULL is defined
*/
#include <time.h>
#ifndef NULL
#error NULL not defined
#endif |
google | android | 3-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/3-2-buildonly.c | 423 | utf_8 | 112a9811761092aff0746793dd30d587 | /*
* source tree.
Test that CLOCKS_PER_SEC is defined
*/
#include <time.h>
#ifndef CLOCKS_PER_SEC
#error CLOCKS_PER_SEC not defined
#endif |
google | android | 19-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/19-1-buildonly.c | 549 | utf_8 | 59dab6f6b77b6c12334d9f0e511809da | /*
Test that the function:
struct tm *getdate(const char *);
is declared.
*/
#include <time.h>
typedef struct tm *(*getdate_test) (const char *);
static int dummyfcn(void)
{
getdate_test dummyvar;
dummyvar = getdate;
return 0;
} |
google | android | 8-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/8-1-buildonly.c | 538 | utf_8 | d69196f934366613c539a9cf08cd40d6 | /*
* source tree.
Test that the function:
char *asctime(const struct tm *);
is declared.
*/
#include <time.h>
typedef char *(*asctime_test) (const struct tm *);
static int dummyfcn(void)
{
asctime_test dummyvar;
dummyvar = asctime;
return 0;
} |
google | android | 7-5-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/7-5-buildonly.c | 380 | utf_8 | c148fc652b567fd00c9d5699cba8f8f1 | /*
* source tree.
Test that timer_t is defined.
*/
#include <sys/types.h>
static timer_t dummy; |
google | android | 26-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/26-1-buildonly.c | 607 | utf_8 | 57375799627959db6f58bb9c0a487314 | /*
* source tree.
Test that the function:
size_t strftime(char *, size_t, const char *, const struct tm *);
is declared.
*/
#include <time.h>
typedef size_t(*strftime_test) (char *, size_t, const char *,
const struct tm *);
static int dummyfcn(void)
{
strftime_test dummyvar;
dummyvar = strftime;
... |
google | android | 15-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/15-1-buildonly.c | 603 | utf_8 | c412aeb942a3ab1ca6020771886ab0d3 | /*
Test that the function:
int clock_settime(clockid_t, const struct timespec *);
is declared.
*/
#include <time.h>
typedef int (*clock_settime_test) (clockid_t, const struct timespec *);
static int dummyfcn(void)
{
clock_settime_test dummyvar;
dummyvar = clock_settime;
return 0;
} |
google | android | 23-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/23-1-buildonly.c | 595 | utf_8 | f17e826af319319b978db9744eef3930 | /*
Test that the function:
struct tm *localtime_r(const time_t *, struct tm *);
is declared.
*/
#include <time.h>
typedef struct tm *(*localtime_r_test) (const time_t *, struct tm *);
static int dummyfcn(void)
{
localtime_r_test dummyvar;
dummyvar = localtime_r;
return 0;
} |
google | android | 34-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/34-1-buildonly.c | 502 | utf_8 | 5afe1d0b10b83ee538c177a4de10074e | /*
* source tree.
Test that the function:
void tzset(void);
is declared.
*/
#include <time.h>
typedef void (*tzset_test) (void);
static int dummyfcn(void)
{
tzset_test dummyvar;
dummyvar = tzset;
return 0;
} |
google | android | 4-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/4-1-buildonly.c | 504 | utf_8 | 44cf8e746a791de0f1259a3227bbad43 | /*
* source tree.
* Test that timespec structure is declared.
*/
#include <time.h>
static struct timespec this_type_should_exist, t;
static int dummyfcn(void)
{
time_t sec;
long nsec;
sec = t.tv_sec;
nsec = t.tv_nsec;
return 0;
} |
google | android | 35-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/35-1-buildonly.c | 439 | utf_8 | 87a712ce0b7cd6325a27f9f13785dd32 | /*
Test that daylight is declared.
*/
#include <time.h>
static int dummyfcn(void)
{
int dummy;
dummy = daylight;
return 0;
} |
google | android | 5-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/5-1-buildonly.c | 546 | utf_8 | 26ebcc3e020661d9862c812699d86670 | /*
* source tree.
* Test that itimerspec structure is declared.
*/
#include <time.h>
static struct itimerspec this_type_should_exist, t;
static int dummyfcn(void)
{
struct timespec interval;
struct timespec value;
interval = t.it_interval;
value = t.it_value;
return 0;
} |
google | android | 25-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/25-1-buildonly.c | 603 | utf_8 | fa7ae4da07f84f380c359f6252b25a81 | /*
Test that the function:
int nanosleep(const struct timespec *, struct timespec *);
is declared.
*/
#include <time.h>
typedef int (*nanosleep_test) (const struct timespec *, struct timespec *);
static int dummyfcn(void)
{
nanosleep_test dummyvar;
dummyvar = nanosleep;
return 0;
} |
google | android | 6-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/6-3-buildonly.c | 448 | utf_8 | c4a9b2121e8659d4ecd4de5fd489dd87 | /*
Test that CLOCK_MONOTONIC is defined
*/
#include <time.h>
#ifndef CLOCK_MONOTONIC
#error CLOCK_MONOTONIC not defined
#endif |
google | android | 32-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/32-1-buildonly.c | 561 | utf_8 | 01af6f82e07fd192b84bbd8cb15c2f33 | /*
Test that the function:
int timer_getoverrun(timer_t);
is declared.
*/
#include <time.h>
typedef int (*timer_getoverrun_test) (timer_t);
static int dummyfcn(void)
{
timer_getoverrun_test dummyvar;
dummyvar = timer_getoverrun;
return 0;
} |
google | android | 28-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/28-1-buildonly.c | 509 | utf_8 | 2f7d668dbf6f8a526da798b0b6f854c8 | /*
* source tree.
Test that the function:
time_t time(time_t *);
is declared.
*/
#include <time.h>
typedef time_t(*time_test) (time_t *);
static int dummyfcn(void)
{
time_test dummyvar;
dummyvar = time;
return 0;
} |
google | android | 11-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/11-1-buildonly.c | 595 | utf_8 | 877b624504cddc8e6ff15169d06eadbf | /*
Test that the function:
int clock_getcpuclockid(pid_t, clockid_t *);
is declared.
*/
#include <time.h>
typedef int (*clock_getcpuclockid_test) (pid_t, clockid_t *);
static int dummyfcn(void)
{
clock_getcpuclockid_test dummyvar;
dummyvar = clock_getcpuclockid;
return 0;
} |
google | android | 6-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/6-2-buildonly.c | 431 | utf_8 | c623014a6ad965364afd7e1a8675141d | /*
Test that TIMER_ABSTIME is defined
*/
#include <time.h>
#ifndef TIMER_ABSTIME
#error TIMER_ABSTIME not defined
#endif |
google | android | 21-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/21-1-buildonly.c | 583 | utf_8 | 9fca30c559f4516e484ae0276bb91bbf | /*
Test that the function:
struct tm *gmtime_r(const time_t *, struct tm *);
is declared.
*/
#include <time.h>
typedef struct tm *(*gmtime_r_test) (const time_t *, struct tm *);
static int dummyfcn(void)
{
gmtime_r_test dummyvar;
dummyvar = gmtime_r;
return 0;
} |
google | android | 35-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/35-3-buildonly.c | 496 | utf_8 | 71c6802d9c0e31c2959c60bba6241b1c | /*
Test that tzname is declared.
*/
#include <time.h>
#include <string.h>
/* Include for printf */
#include <stdio.h>
static int dummyfcn(void)
{
printf("%s\n", tzname[0]);
return 0;
} |
google | android | 7-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/7-3-buildonly.c | 378 | utf_8 | 331464e4442396c5d21b97f1b17202a7 | /*
* source tree.
Test that time_t is defined.
*/
#include <sys/types.h>
static time_t dummy; |
google | android | 7-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/7-2-buildonly.c | 378 | utf_8 | d3ce90fce5bc65c3505178bcc248828d | /*
* source tree.
Test that size_t is defined.
*/
#include <sys/types.h>
static size_t dummy; |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/2-1-buildonly.c | 609 | utf_8 | a2bfb14858e612c3015e6c1f4801e1e8 | /*
* source tree.
* Test that tm structure is declared.
*/
#include <time.h>
static struct tm this_type_should_exist, t;
static int dummyfcn(void)
{
int week, year, dst;
t.tm_sec = 0;
t.tm_min = 10;
t.tm_hour = 17;
t.tm_mday = 1;
t.tm_mon = 11;
t.tm_year = 102;
week = t.tm_wday;
year = t.tm_yday;
dst = t.t... |
google | android | 31-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/31-1-buildonly.c | 591 | utf_8 | 1e9cbf23e4c8a340020b857ab700e245 | /*
Test that the function:
int timer_gettime(timer_t, struct itimerspec *);
is declared.
*/
#include <time.h>
typedef int (*timer_gettime_test) (timer_t, struct itimerspec *);
static int dummyfcn(void)
{
timer_gettime_test dummyvar;
dummyvar = timer_gettime;
return 0;
} |
google | android | 7-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/7-4-buildonly.c | 384 | utf_8 | aa376d2a06e7d4f61b0b62b52732d07a | /*
* source tree.
Test that clockid_t is defined.
*/
#include <sys/types.h>
static clockid_t dummy; |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/1-1-buildonly.c | 392 | utf_8 | 3b5b7ba5eefaf8950c0b1e85fbebe812 | /*
* source tree.
Test the existence of the time.h file and that it can be
included.
*/
#include <time.h> |
google | android | 12-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/12-1-buildonly.c | 587 | utf_8 | f252d7566a79a8366807e010ea5f126f | /*
Test that the function:
int clock_getres(clockid_t, struct timespec *);
is declared.
*/
#include <time.h>
typedef int (*clock_getres_test) (clockid_t, struct timespec *);
static int dummyfcn(void)
{
clock_getres_test dummyvar;
dummyvar = clock_getres;
return 0;
} |
google | android | 33-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/33-1-buildonly.c | 665 | utf_8 | 701e8e7b01fbda36933c0d95f1a6f6af | /*
Test that the function:
int timer_settime(timer_t, int, const struct itimerspec *,
struct itimerspec *);
is declared.
*/
#include <time.h>
typedef int (*timer_settime_test) (timer_t, int, const struct itimerspec *,
struct itimerspec *);
static int dummyfcn(void)
{
timer_settime_test dummyvar... |
google | android | 13-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/13-1-buildonly.c | 591 | utf_8 | f431009d2ce54bda7ea23f878a41b35a | /*
Test that the function:
int clock_gettime(clockid_t, struct timespec *);
is declared.
*/
#include <time.h>
typedef int (*clock_gettime_test) (clockid_t, struct timespec *);
static int dummyfcn(void)
{
clock_gettime_test dummyvar;
dummyvar = clock_gettime;
return 0;
} |
google | android | 7-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/7-1-buildonly.c | 380 | utf_8 | bcbbb528e45a22a78e101b924d4d7cd5 | /*
* source tree.
Test that clock_t is defined.
*/
#include <sys/types.h>
static clock_t dummy; |
google | android | 6-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/6-1-buildonly.c | 434 | utf_8 | b03f26eeb60ff4c2daaf46397149609f | /*
Test that CLOCK_REALTIME is defined
*/
#include <time.h>
#ifndef CLOCK_REALTIME
#error CLOCK_REALTIME not defined
#endif |
google | android | 27-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/27-1-buildonly.c | 597 | utf_8 | 71c7ec2a517ea15f4ed388bc87dbc15c | /*
Test that the function:
char *strptime(const char *, const char *, struct tm *);
is declared.
*/
#include <time.h>
typedef char *(*strptime_test) (const char *, const char *, struct tm *);
static int dummyfcn(void)
{
strptime_test dummyvar;
dummyvar = strptime;
return 0;
} |
google | android | 9-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/9-1-buildonly.c | 490 | utf_8 | d9190c2c471d46eb82b96c9b2157a17a | /*
Test for the existence and valid prototype
of the mq_timedreceive function as specified on
line 9692 of the Base Definitions document
*/
#include <mqueue.h>
#include <time.h>
#include "posixtest.h"
static void test_mq_timedreceive_prototype(void)
{
mqd_t mqdes;
struct timespec abstime;
size_t msg_len;
ss... |
google | android | 10-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/10-1-buildonly.c | 488 | utf_8 | e495dfb48e6447182a9ff1fdaeb0cb38 | /*
Test for the existence and valid prototype
of the mq_timedsend function as specified on
line 9694 of the Base Definitions document
*/
#include <mqueue.h>
#include <time.h>
#include "posixtest.h"
static void test_mq_timedsend_prototype(void)
{
mqd_t mqdes;
struct timespec timeout;
char *msgp;
int err;
si... |
google | android | 3-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/3-1-buildonly.c | 340 | utf_8 | e84ff64e9ec3e05b12c609f5e2f45132 | /*
Test for the existence and valid prototype
of the mq_getattr function as specified on
line 9685 of the Base Definitions document
*/
#include <mqueue.h>
#include "posixtest.h"
static void test_mq_getattr_prototype(void)
{
mqd_t mqdes;
struct mq_attr mqs;
int err;
mqdes = 0;
err = mq_getattr(mqdes, &... |
google | android | 8-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/8-1-buildonly.c | 369 | utf_8 | dfc1a011d841ecc7dddde2b0ec382b2c | /*
Test for the existence and valid prototype
of the mq_setattr function as specified on
line 9690 of the Base Definitions document
*/
#include <mqueue.h>
#include "posixtest.h"
#include <stdio.h>
static void test_mq_setattr_prototype(void)
{
mqd_t mqdes;
struct mq_attr mqs, omqs;
int err;
mqdes = 0;
err... |
google | android | 4-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/4-1-buildonly.c | 399 | utf_8 | 695b710cb87677d0d41405a60a4b73fa | /*
Test for the existence and valid prototype
of the mq_notify function as specified on
line 9686 of the Base Definitions document
*/
#include <mqueue.h>
#include <stdlib.h>
#include "posixtest.h"
static void test_mq_notify_prototype(void)
{
mqd_t mqdes;
struct sigevent *notification;
int err;
mqdes = ... |
google | android | 5-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/5-1-buildonly.c | 353 | utf_8 | d012ca8cd766df556567a03b9eff421b | /*
Test for the existence and valid prototype
of the mq_open function as specified on
line 9687 of the Base Definitions document
*/
#include <fcntl.h>
#include <mqueue.h>
#include "posixtest.h"
static void test_mq_open_prototype(void)
{
mqd_t res;
int oflag = O_RDONLY;
const char *name = "bogus";
res = mq_... |
google | android | 11-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/11-1-buildonly.c | 302 | utf_8 | 6e02d768405e3e92c0fd2d2b4ad93e03 | /*
Test for the existence and valid prototype
of the mq_unlink function as specified on
line 9696 of the Base Definitions document
*/
#include <mqueue.h>
#include "posixtest.h"
static void test_mqueue_unlink_prototype()
{
const char *name = "bogus";
int err;
err = mq_unlink(name);
(void)err;
}
|
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/2-1-buildonly.c | 304 | utf_8 | 88b4d21993bf3faea315e0d6ef1d3fbe | /*
Test for the existence and valid prototype
of the mq_close function as specified on
line 9684 of the Base Definitions document
*/
#include <mqueue.h>
#include "posixtest.h"
static void test_mq_close_prototype(void)
{
mqd_t mqdes;
int err;
mqdes = 0;
err = mq_close(mqdes);
(void)err;
}
|
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/1-1.c | 1,221 | utf_8 | 9306eb17ee0bb9e9a56a3ef1f195a7ab | /*
* Ngie Cooper, August 2010
*
* Verify that mq_flags, mq_maxmsg, mq_msgsize, and mq_curmsgs exist in the
* struct mq_attr structure and are long integers as per the
* IEEE Std 1003.1-2008 spec.
*/
#include <limits.h>
#include <mqueue.h>
#include <stdio.h>
#include "posixtest.h"
printf("%s..\n", # structure_an... |
google | android | 7-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/7-1-buildonly.c | 428 | utf_8 | c80033a4cca4bf944323f04a1ad0a6a7 | /*
Test for the existence and valid prototype
of the mq_send function as specified on
line 9689 of the Base Definitions document
*/
#include <mqueue.h>
#include <stdlib.h>
#include "posixtest.h"
static void test_mq_send_prototype(void)
{
mqd_t mqdes;
size_t msg_len;
char *msgp;
int err;
unsigned msg_prio;
... |
google | android | 6-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/6-1-buildonly.c | 453 | utf_8 | 219c55564c25d7ee572ab9548b88d7e5 | /*
Test for the existence and valid prototype
of the mq_receive function as specified on
line 9688 of the Base Definitions document
*/
#include <mqueue.h>
#include <stdlib.h>
#include "posixtest.h"
static void test_mq_receive_prototype(void)
{
mqd_t mqdes;
ssize_t msg_size;
size_t msg_len;
char *msgp;
unsi... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strcpy/1-1.c | 2,273 | utf_8 | f06c78dc70b31b6dd1a62753a2aa9eab | /*
* source tree.
*/
/*
* assertion:
* The function will copy the string pointed to by s1 (including the
* terminating NUL character) into the array pointed to by s2. And
* it will return s2.
*
* method:
* -Generate sample string s1 of variable lengths in a loop.
* -Use strcpy() to copy s1 into sample st... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/7-1.c | 4,603 | utf_8 | 48f98c107ed9696a1a5a7af25553cd07 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* If Real-Time Signals extension is supported, and several signals in the
* range SIGRTMIN-SIGRTMAX are selected, the lower numbered is returned first.
* The steps are:
* -> mask SIGRTMIN-SIGRTMA... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/2-1.c | 3,622 | utf_8 | 80fd740740a3dfe3770dda5f6095cc11 | #include <signal.h>
#include <stdio.h>
#include "posixtest.h"
/*
* source tree.
* Test that the sigwait() function.
* If prior to the call to sigwait() there are multiple pending instances of
* a single signal number (and it is implementation-defined that the signal
* number supports queued signals), then ther... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/3-1.c | 2,686 | utf_8 | 5350b3b017e72d9f397179b7d2eb36b9 | #include <signal.h>
#include <stdio.h>
#include "posixtest.h"
/*
* source tree.
* Test that the sigwait() function.
* If prior to the call to sigwait() there are multiple pending instances of
* a single signal number (and it is implementation-defined that the signal
* number DOES NOT support queued signals), t... |
google | android | 6-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-2.c | 4,895 | utf_8 | c47e7ae0115e6e3483c9424b2b07f977 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* If several threads are waiting for a signal and this signal is generated
* for a specific thread, only this thread is unblocked.
* The steps are:
* -> mask SIGUSR1
* -> create several threads w... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/1-1.c | 2,308 | utf_8 | 81e5c5cb73059f0f07d081465ec5d627 | #include <signal.h>
#include <stdio.h>
#include "posixtest.h"
/*
* source tree.
* Test that the sigwait() function. If no signal in 'set' is pending at the
* time of the call, the thread shall be suspended until one or more becomes
* pending.
* 1) Block a signal from delivery.
* 2) Call sigwait()
* 3) R... |
google | android | 8-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/8-1.c | 1,861 | utf_8 | 26b666b35880c3918831c3cad7f1338b | #include <signal.h>
#include <stdio.h>
#include "posixtest.h"
/*
* source tree.
* Test that the sigwait() function. Upon successful completion, sigwait()
* returns 0 and stores the signal number of the received signal at the
* location referenced by 'sig'.
* 1) Block a signal from delivery.
* 2) Call sigwa... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/4-1.c | 2,145 | utf_8 | 99e7ebb272c6e568da9c77e5e06cb07f | #include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include "posixtest.h"
/*
* source tree.
* Test that the sigwait() function. If no signal in 'set' is pending at the
* time of the call, the thread shall be suspended until one or more becomes
* pending.
* 1) Block a signal from ... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-1.c | 4,752 | utf_8 | 2d884d7baa2baf12d1661d79e191748b | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* If several threads are blocked in a call to sigwait,
* only one is unblocked when the signal becomes pending.
* The steps are:
* -> mask SIGUSR1
* -> create several threads which sigwait for SI... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/7-1.c | 2,389 | utf_8 | 6554e997738f305af950db720945e78c | /*
* source tree.
* Test pthread_attr_setstack()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. Make the stackaddr not be aligned to be used as a stack
* 3. Make stackaddr+stacksize to be lack of alignment
*/
#include <pthread.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#inclu... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/2-1.c | 3,406 | utf_8 | 32de26509b131cc4c85382c216e99b3b | /*
* source tree.
* Test pthread_attr_setstack()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. set the stackaddr and stacksize to attr
* 3. create a thread with the attr
* 4. In the created thread, read the stacksize and stackaddr
*/
/* For pthread_getattr_np(3) -- not a POSIX compliant API.... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/1-1.c | 2,545 | utf_8 | 12582b201913237d4403169af6ce1aa2 | /*
* source tree.
* Test pthread_attr_setstack()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. set the stackaddr and stacksize to attr
* 3. create a thread with the attr
*/
#include <pthread.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/param.h... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/4-1.c | 2,973 | utf_8 | 6748dbdbc1ac66d64cc1853186dd7221 | /*
* source tree.
* Test pthread_attr_setstack()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. set the stackaddr and stacksize to attr
* 3. create a thread with the attr
* 4. Call a function in the created thread,
* which can be treated as reading and writing the stack
*/
#include <pthr... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/6-1.c | 1,959 | utf_8 | 54e497397a9f60d7223a73d167ff9172 | /*
* source tree.
* Test pthread_attr_setstack()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. set the stacksize less tha PTHREAD_STACK_MIN
*/
#include <pthread.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/param.h>
#include <errno.h>
#include <u... |
google | android | 4-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-2.c | 3,126 | utf_8 | 9b33adfdecebd5d9912c0f08a50273d8 | /*
* source tree.
* Test that pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
*
* It 'may' fail if:
* [EINVAL] rwlock doesn't refer to an initialized read-write lock
* [EPERM] the current thread doesn't hold the lock on the rwlock
*
* Testing EPERM in this test.
*
*
* Steps:
* 1. Initialize a pthread_rwl... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/2-1.c | 3,782 | utf_8 | 005f7a1fdc60e86fa2bce8071b7d1b18 | /*
* source tree.
* Test that pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
*
* pthread_rwlock_unlock() function shall release a lock held on the
* read-write lock object referenced by rwlock
* If this function is called to release a write lock for this read-write
* lock object, the read-write lock object shal... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/3-1.c | 9,816 | utf_8 | 9e79f4f2ca4700c621626dfb3b2edbce | /*
* source tree.
* If there are threads blocked on the lock when it becomes available,
* the scheduling policy shall determine which thread(s) shall acquire the lock.
* If the Thread Execution Scheduling option is supported, when threads executing
* with the scheduling policies SCHED_FIFO, SCHED_RR, or SCHED_SP... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/1-1.c | 5,322 | utf_8 | 9bcc0bc6478b9cd864cdf2de99b2e0a0 | /*
* source tree.
* Test that pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
*
* pthread_rwlock_unlock() function shall release a lock held on the
* read-write lock object referenced by rwlock
* If this function is called to release a read lock from the read-write lock object
* and there are other read locks c... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-1.c | 1,351 | utf_8 | df5dd5aeb819a81be26d7b2d55bddb3a | /*
* source tree.
* Test that pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
*
* It 'may' fail if:
* [EINVAL] rwlock doesn't refer to an initialized read-write lock
* [EPERM] the current thread doesn't hold the lock on the rwlock
*
* Testing EINVAL in this test.
*
* Steps:
* 1. Call pthread_rwlock_unlock... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_setprioceiling/1-1.c | 1,857 | utf_8 | 7c1ec498e82abc955c78103d28d7c55f | /*
*
* Test that pthread_mutex_setprioceiling()
*
* returns the current prioceiling of the mutex.
*
* Steps:
* 1. Initialize a pthread_mutexattr_t object with pthread_mutexattr_init()
* 2. Call pthread_mutex_getprioceiling() to obtain the prioceiling.
*
*/
#include <pthread.h>
#include <errno.h>
#include <s... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/1-2.c | 1,750 | utf_8 | e305ae45d564d3531a97b338c51876a9 | /*
* source tree.
* Test that pthread_attr_getdetachstate()
* shall get the detachstate attribute in the 'attr' object. The detach state
* is either PTHREAD_CREATE_DETACHED or PTHEAD_CREATE_JOINABLE.
*
* Steps:
* 1. Initialize a pthread_attr_t object using pthread_attr_init(), this will
* make detachstate... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/1-1.c | 1,368 | utf_8 | 4f039ce599bb05e4f2de9aa1b6d05a46 | /*
* source tree.
* Test that pthread_attr_getdetachstate()
* shall get the detachstate attribute in the 'attr' object. The detach state
* is either PTHREAD_CREATE_DETACHED or PTHEAD_CREATE_JOINABLE.
*
* Steps:
* 1. Initialize a pthread_attr_t object using pthread_attr_init()
* 2. Using pthread_attr_getdetac... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/5-1.c | 1,468 | utf_8 | 2a6111f414515a4302f2cebfd43961eb | /*
* source tree.
* Test pthread_attr_setscope()
*
* Steps:
* 1. Initialize a pthread_attr_t object using pthread_attr_init()
* 2. Call pthread_attr_setscope with unsupported scope
* parameter
*
*/
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "posixtest.h"
#defi... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/1-1.c | 1,937 | utf_8 | fa9be468f995259a10ff5e8f2ec008c3 | /*
* source tree.
* Test pthread_attr_setscope()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. sets the contentionscope to attr
* 3. create a thread with the attr
* 4. Get the contentionscope value in the created thread
*/
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include ... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/4-1.c | 1,214 | utf_8 | 0330753f6971aa22803d4a6b42dfa21e | /*
* source tree.
* Test pthread_attr_setscope()
*
* Steps:
* 1. Initialize a pthread_attr_t object using pthread_attr_init()
* 2. Call pthread_attr_setscope with unsupported scope
* parameter
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "posixtest.h"
#defi... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/2-1.c | 1,890 | utf_8 | f563cca68b9e1e70dbea3e591aadf261 | /*
* source tree.
*
* If pid=0, then clock_getcpuclockid() will return the CPU-time clock of
* the calling process.
*
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "posixtest.h"
#include "timespec.h"
int main(void)
{
#if !defined(... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/1-2.c | 1,461 | utf_8 | a32bec36bd69015c5ad5ca028d437055 | /*
* General test that clock_getcpuclockid() returns CPU-time clock for a
* process. The process chosen is the current process.
*
* If the process described by pid exists and the calling process has
* permission, the clock ID of this clock shall be returned in clock_id.
*
*/
#include <errno.h>
#include <stdio.h... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/5-1.c | 1,500 | utf_8 | 9cdd80af8c341e68a74c11ed88f58224 | /*
*
* The clock_getcpuclockid() function shall fail and return EPERM if the
* requesting process does not have permission to access the CPU-time clock for
* the process.
*/
#include <sys/types.h>
#include <errno.h>
#include <limits.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#incl... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/1-1.c | 1,585 | utf_8 | bc73064ef13ccdc66b68be076bd7da8e | /*
* General test that clock_getcpuclockid() returns CPU-time clock for a
* process. The process chosen is the current process.
*
*
* 12/17/02 - Checking in correction made by
* jim.houston REMOVE-THIS AT attbi DOT com
* Test needed to do something as opposed to idle sleep to
* ... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/6-1.c | 698 | utf_8 | 58d4771d2480376bfac88acfd2b8d1ac | /*
*
* The clock_getcpuclockid() function may fail and return ESRCH if no process
* can be found corresponding to the process specified by pid.
*
*/
#include <sys/types.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include "posixtest.h"
int main(void)
{
#if !d... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/2-1.c | 2,092 | utf_8 | 5987c3c4da60df3e5f013feff7ddbe2c | /*
* source tree.
*
* pthread_barrierattr_init()
*
* After a barrier attributes object has been used to initialize one or more barriers
* any function affecting the attributes object (including destruction) shall not
* affect any previously initialized barrier.
*
*/
#include <pthread.h>
#include <stdio.h>
#inc... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/1-1.c | 1,554 | utf_8 | 79876f12a403859495126a392f34caf3 | /*
* source tree.
*
* pthread_barrierattr_init()
*
* The pthread_barrierattr_init() function shall initialize a barrier attributes
* object attr with the default value for all of the attributes defined
* by the implementation.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>... |
google | android | 4-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-2.c | 1,796 | utf_8 | b2ff7be9846d5d894f04f6c01144f28c | /*
* source tree.
* Test that pthread_detach()
*
* Upon failure, it shall return an error number:
* -[EINVAL] The implemenation has detected that the value specified by
* 'thread' does not refer to a joinable thread.
* -[ESRCH] No thread could be found corresponding to that thread
* It shall not return an error... |
google | android | 4-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c | 8,601 | utf_8 | 79342ac87a5f135bc07a9a02614cc22f | /*
* 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_detach()
* -> check that EINTR is never returned
*
*/
#include <pthread.h>
#include <st... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/2-1.c | 1,976 | utf_8 | 96ffd7b4f58cc6cc43f32c1798f9d6db | /*
* source tree.
* Test that pthread_detach()
*
* If 'thread' has not terminated, pthread_detach() shall not cause it to
* terminate. The effect of multiple pthread_detach() calls on the same
*
* STEPS:
* 1.Create a joinable thread
* 2.Detach that thread
* 3.Verify that the thread did not terminate because ... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/1-2.c | 6,652 | utf_8 | fbee6088abcd1c851b4973d4d1259e5e | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* pthread_detach() will indicate that the thread resources
* can be reclaimed as soon as the thread terminates.
* This means that pthread_join() will fail on such a thread.
* The steps are... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/3-1.c | 1,874 | utf_8 | 51a1ac4e6c1b9385c0fc15950a954e36 | /*
* source tree.
* Test that pthread_detach()
*
* Upon succesful completion, it shall return a 0;
*
* STEPS:
* 1.Create a joinable thread
* 2.Detach that thread
* 3.Check the return value
*
*/
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include "posixtest.h"
/* Thread fun... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/1-1.c | 2,241 | utf_8 | f385fb8a2afcb556761c73d099084dd8 | /*
* source tree.
* Test that pthread_detach()
*
* shall detach a thread. It shall indicate to the implementation that storage
* for 'thread' can be reclaimed when that thread terminates.
*
* STEPS:
* 1. Create a joinable thread
* 2. Detach that thread with pthread_detach()
* 3. Try and join the thread to mai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.