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 | 11-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/11-1-buildonly.c | 677 | utf_8 | 8e0a40dcbd40f8a0277a82b43f26e7be | /*
*
*
* Test that the function:
* int sched_get_priority_max(int);
* is declared.
*/
#include <sched.h>
typedef int (*sched_get_priority_max_test) (int);
static int dummyfcn(void)
{
sched_get_priority_max_test dummyvar;
dummyvar = sched_get_priority_max;
return 0;
} |
google | android | 8-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-4-buildonly.c | 522 | utf_8 | 4bfa34a19964a1f71d7a61328d4e6a8a | /*
*
*
* Test that SCHED_OTHER is defined
*/
#include <sched.h>
#ifndef SCHED_OTHER
#error SCHED_OTHER not defined
#endif |
google | android | 10-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/10-1.c | 1,233 | utf_8 | 9756be22de3c4e55059895c991ef922f | /*
*
*
* The policies symbols shall have unique value
* I try to test every symbol in a loop.
*/
#include <stdio.h>
#include <string.h>
#include <sched.h>
#include <unistd.h>
#include "posixtest.h"
static struct unique {
int value;
char *name;
} sym[] = {
{
SCHED_FIFO, "SCHED_FIFO"}, {
SCHED_RR, "SCHED_RR"},
... |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/2-1-buildonly.c | 645 | utf_8 | 2c1bb438c4ceb65f81067274a5f9a99a | /*
*
*
* Test that sched_param structure is declared and includes at a minimum:
* int sched_priority
*/
#include <sched.h>
static struct sched_param this_type_should_exist, s;
static int dummyfcn(void)
{
s.sched_priority = 0;
return 0;
} |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/1-1-buildonly.c | 498 | utf_8 | 8efd725e6f87a4912658af09a7de6984 | /*
*
*
* Test the existence of the sched.h file and that it can be included.
*/
#include <sched.h> |
google | android | 12-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/12-1-buildonly.c | 677 | utf_8 | d0a63d798def56533358aff863631ed2 | /*
*
*
* Test that the function:
* int sched_get_priority_min(int);
* is declared.
*/
#include <sched.h>
typedef int (*sched_get_priority_min_test) (int);
static int dummyfcn(void)
{
sched_get_priority_min_test dummyvar;
dummyvar = sched_get_priority_min;
return 0;
} |
google | android | 13-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/13-1-buildonly.c | 716 | utf_8 | 1c93a66e7c755fd9aa12844e38bc7f66 | /*
*
*
* Test that the function:
* int sched_getparam(pid_t, struct sched_param *);
* is declared.
*/
#include <sched.h>
#include <sys/types.h>
typedef int (*sched_getparam_test) (pid_t, struct sched_param *);
static int dummyfcn(void)
{
sched_getparam_test dummyvar;
dummyvar = sched_getparam;
return 0;
} |
google | android | 17-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/17-1-buildonly.c | 498 | utf_8 | 2c3ffad6da27dca5136190a371e779da | /*
* source tree.
Test this function is defined:
int pthread_mutex_trylock(pthread_mutex_t *);
*/
#include <pthread.h>
static pthread_mutex_t a;
static void dummy_func()
{
pthread_mutex_trylock(&a);
return;
} |
google | android | 3-7-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-7-buildonly.c | 374 | utf_8 | 7d501b365e81c4b2f77664a23f82acd1 | /*
* source tree.
Test pthread_mutex_t
*/
#include <pthread.h>
static pthread_mutex_t dummy; |
google | android | 3-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-3-buildonly.c | 393 | utf_8 | 88ca0928bb4a457fe066adb8a3edae08 | /*
* source tree.
Test pthread_barrierattr_t
BAR
*/
#include <pthread.h>
static pthread_barrierattr_t dummy; |
google | android | 9-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/9-1-buildonly.c | 468 | utf_8 | 0d2627377ce95a5fdcd90c9c42d8b5ed | /*
* source tree.
Test this function is defined:
int pthread_detach(pthread_t);
*/
#include <pthread.h>
static pthread_t a;
static void dummy_func()
{
pthread_detach(a);
return;
} |
google | android | 14-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/14-1-buildonly.c | 546 | utf_8 | b4637227c7fe4f01ca042ebaea61a2a2 | /*
* source tree.
Test this function is defined:
int pthread_mutex_init(pthread_mutex_t *restrict, const pthread_mutexattr_t
*restrict);
*/
#include <pthread.h>
static pthread_mutex_t a;
static void dummy_func()
{
pthread_mutex_init(&a, NULL);
return;
} |
google | android | 18-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/18-1-buildonly.c | 496 | utf_8 | 83346b089a12672bc0285cb07f004a31 | /*
* source tree.
Test this function is defined:
int pthread_mutex_unlock(pthread_mutex_t *);
*/
#include <pthread.h>
static pthread_mutex_t a;
static void dummy_func()
{
pthread_mutex_unlock(&a);
return;
} |
google | android | 16-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/16-1-buildonly.c | 492 | utf_8 | 53b1993645caa33bd8fe0a26e717ea38 | /*
* source tree.
Test this function is defined:
int pthread_mutex_lock(pthread_mutex_t *);
*/
#include <pthread.h>
static pthread_mutex_t a;
static void dummy_func()
{
pthread_mutex_lock(&a);
return;
} |
google | android | 20-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/20-1-buildonly.c | 514 | utf_8 | b6a7271f9b34c2c2b19ea0d7bde79f9c | /*
* source tree.
Test this function is defined:
int pthread_mutexattr_destroy(pthread_mutexattr_t *);
*/
#include <pthread.h>
static pthread_mutexattr_t a;
static void dummy_func()
{
pthread_mutexattr_destroy(&a);
return;
} |
google | android | 3-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-4-buildonly.c | 372 | utf_8 | cb70c1a1acc95bb25516c91a3a7e4326 | /*
* source tree.
Test pthread_cond_t
*/
#include <pthread.h>
static pthread_cond_t dummy; |
google | android | 3-5-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-5-buildonly.c | 380 | utf_8 | 4d086686d9ddd6703eb12cbe66b4d8a7 | /*
* source tree.
Test pthread_condattr_t
*/
#include <pthread.h>
static pthread_condattr_t dummy; |
google | android | 3-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-1-buildonly.c | 372 | utf_8 | 0d4274d8d4da1207d8f34fdb5e6b1630 | /*
* source tree.
Test pthread_attr_t
*/
#include <pthread.h>
static pthread_attr_t dummy; |
google | android | 3-9-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-9-buildonly.c | 372 | utf_8 | 823da6a8f41fcae99b838f9fc8b1d805 | /*
* source tree.
Test pthread_once_t
*/
#include <pthread.h>
static pthread_once_t dummy; |
google | android | 3-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-2-buildonly.c | 385 | utf_8 | 5d1328083e47011a139357f0a48bb3b8 | /*
* source tree.
Test pthread_barrier_t
BAR
*/
#include <pthread.h>
static pthread_barrier_t dummy; |
google | android | 3-6-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-6-buildonly.c | 370 | utf_8 | 10da4a23d55c541f8ac19b047e46e06f | /*
* source tree.
Test pthread_key_t
*/
#include <pthread.h>
static pthread_key_t dummy; |
google | android | 19-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/19-1-buildonly.c | 508 | utf_8 | 7a94bd793e7844a9c4d32eb8b9511363 | /*
* source tree.
Test this function is defined:
int pthread_mutexattr_init(pthread_mutexattr_t *);
*/
#include <pthread.h>
static pthread_mutexattr_t a;
static void dummy_func()
{
pthread_mutexattr_init(&a);
return;
} |
google | android | 8-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/8-1-buildonly.c | 479 | utf_8 | 908e38ab448f84b9e8878d14f9ee997c | /*
* source tree.
Test this function is defined:
int pthread_join(pthread_t, void **);
*/
#include <pthread.h>
static pthread_t a;
static void dummy_func()
{
pthread_join(a, NULL);
return;
} |
google | android | 15-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/15-1-buildonly.c | 498 | utf_8 | ad3935d0844adbad5b0a05f4af8f5748 | /*
* source tree.
Test this function is defined:
int pthread_mutex_destroy(pthread_mutex_t *);
*/
#include <pthread.h>
static pthread_mutex_t a;
static void dummy_func()
{
pthread_mutex_destroy(&a);
return;
} |
google | android | 4-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c | 686 | utf_8 | 4d1398c41e28dc3ae99d734a67a1253a | /*
* source tree.
Test this function is defined:
pthread_create(pthread_t *restrict, const pthread_attr_t *restrict,
void *(*)(void *), void *restrict);
*/
#include <pthread.h>
#include "posixtest.h"
static void *thread_function(void *arg PTS_ATTRIBUTE_UNUSED)
{
return NULL;
}
static void dummy_func()... |
google | android | 3-10-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-10-buildonly.c | 376 | utf_8 | 077dbdda04f2ce15f29edd6f6aa2c672 | /*
* source tree.
Test pthread_rwlock_t
*/
#include <pthread.h>
static pthread_rwlock_t dummy; |
google | android | 5-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/5-1-buildonly.c | 444 | utf_8 | 472b20833abd7fc6e4f9c3c303492fee | /*
* source tree.
Test this function is defined:
void pthread_exit(void *);
*/
#include <pthread.h>
static void dummy_func()
{
pthread_exit(NULL);
return;
} |
google | android | 3-13-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-13-buildonly.c | 362 | utf_8 | 4615184c2284aea391545cc829415bb9 | /*
* source tree.
Test pthread_t
*/
#include <pthread.h>
static pthread_t dummy; |
google | android | 11-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/11-1-buildonly.c | 493 | utf_8 | 3b342e388238b030f7078d2604441e7a | /*
* source tree.
Test this function is defined:
int pthread_attr_destroy(pthread_attr_t *);
*/
#include <pthread.h>
static pthread_attr_t a;
static void dummy_func()
{
pthread_attr_destroy(&a);
return;
} |
google | android | 3-8-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-8-buildonly.c | 382 | utf_8 | d9a78c3137d8f94963c4571c91c3e456 | /*
* source tree.
Test pthread_mutexattr_t
*/
#include <pthread.h>
static pthread_mutexattr_t dummy; |
google | android | 2-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c | 1,164 | utf_8 | 5a86396769b219f046bd439c8f6041a2 | /*
*/
#include <pthread.h>
#define TEST_MACRO(CONSTANT) \
void test_ ## CONSTANT(void) { int dummy = CONSTANT; (void)dummy; }
/* BAR */
TEST_MACRO(PTHREAD_BARRIER_SERIAL_THREAD)
/* XSI */
TEST_MACRO(PTHREAD_MUTEX_DEFAULT)
/* XSI */
TEST_MACRO(PTHREAD_MUTEX_ERRORCHECK)
/* XSI */
TEST_MACRO(PTHREAD_MUTE... |
google | android | 10-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/10-buildonly.c | 487 | utf_8 | 2c1d2c2aefc2cbd6e9b5adbc43ed3b1b | /*
* source tree.
Test this function is defined:
int pthread_attr_init(pthread_attr_t *);
*/
#include <pthread.h>
static pthread_attr_t a;
static void dummy_func()
{
pthread_attr_init(&a);
return;
} |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-1-buildonly.c | 1,509 | utf_8 | 1f8f7846ef365cf2d5ff0cc8d0f9c472 | /*
* source tree.
Test the following symbols are defined by pthread.h
*/
#include <pthread.h>
#ifndef PTHREAD_CANCEL_ASYNCHRONOUS
#error PTHREAD_CANCEL_ASYNCHRONOUS not defined
#endif
#ifndef PTHREAD_CANCEL_ENABLE
#error PTHREAD_CANCEL_ENABLE not defined
#endif
#ifndef PTHREAD_CANCEL_DEFERRED
#error PTHREAD_... |
google | android | 3-11-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-11-buildonly.c | 384 | utf_8 | dcb77c740f34713818abfac58dbbd15c | /*
* source tree.
Test pthread_rwlockattr_t
*/
#include <pthread.h>
static pthread_rwlockattr_t dummy; |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/1-1-buildonly.c | 380 | utf_8 | cd68faaabdaef20b2f43b7c88ebd635f | /*
* source tree.
Test the header file pthread.h exists and can be included
*/
#include <pthread.h> |
google | android | 12-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/12-1-buildonly.c | 559 | utf_8 | e684746f61abe6729facfc6e1919afd0 | /*
* source tree.
Test this function is defined:
int pthread_attr_getdetachstate(const pthread_attr_t *, int *);
*/
#include <pthread.h>
static pthread_attr_t a;
static int *detachstate;
static void dummy_func()
{
pthread_attr_getdetachstate(&a, detachstate);
return;
} |
google | android | 3-12-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-12-buildonly.c | 387 | utf_8 | d127980fe9dcd56bb439dd5aaa934fbf | /*
* source tree.
Test pthread_spinlock_t
SPI
*/
#include <pthread.h>
static pthread_spinlock_t dummy; |
google | android | 13-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/13-1-buildonly.c | 544 | utf_8 | c1c97b5ee6f93a2ccfbe8a0cdf097c9b | /*
* source tree.
Test this function is defined:
int pthread_attr_setdetachstate(const pthread_attr_t *, int);
*/
#include <pthread.h>
static pthread_attr_t a;
static void dummy_func()
{
pthread_attr_setdetachstate(&a, PTHREAD_CREATE_DETACHED);
return;
} |
google | android | 7-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/7-1-buildonly.c | 505 | utf_8 | 9f3616ad2b431bac70ca0c1dcbf2b22e | /*
* source tree.
Test this function is defined:
int pthread_equal(pthread_t, pthread_t);
*/
#include <pthread.h>
static pthread_t a, b;
static int tmp;
static void dummy_func()
{
tmp = pthread_equal(a, b);
return;
} |
google | android | 6-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/6-1-buildonly.c | 477 | utf_8 | de668c5edfb24c2a31d5b9f87f26de14 | /*
* source tree.
Test this function is defined:
pthread_t pthread_self(void);
*/
#include <pthread.h>
static void dummy_func()
{
pthread_t ptid = pthread_self();
if (ptid == 0)
return;
} |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/unistd_h/2-1-buildonly.c | 584 | utf_8 | 913e52a8a1877f351b908551b74f65db | /*
* source tree.
*
* Based on original code by Julie N Fleischer.
*
* Test that the function below is defined:
* int ftruncate(int fildes, off_t length);
*/
#include <unistd.h>
#include <sys/types.h>
typedef int (*ftruncate_test) (int fildes, off_t length);
static int dummyfcn(void)
{
ftruncate_test dummyvar;
... |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/unistd_h/1-1-buildonly.c | 523 | utf_8 | 4c6b4492f87f4ab380725cbfb8a37768 | /*
* source tree.
*
* Test that the function below is defined:
* int fsync(int fildes);
*/
#include <unistd.h>
typedef int (*fsync_test) (int fildes);
static int dummyfcn(void)
{
fsync_test dummyvar;
dummyvar = fsync;
return 0;
} |
google | android | 17-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/17-1-buildonly.c | 640 | utf_8 | c5cb0256409b19032ad38a97a14ab7f2 | /*
*/
#include <sys/mman.h>
typedef int (*munlockall_test) (void);
static int dummyfcn(void)
{
munlockall_test dummyvar;
dummyvar = munlockall;
return 0;
} |
google | android | 2-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/2-3-buildonly.c | 582 | utf_8 | ed2ed3598247cedd67edaf469618d44e | /*
*/
#include <sys/mman.h>
#ifndef PROT_EXEC
#error PROT_EXEC not defined
#endif |
google | android | 3-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/3-3-buildonly.c | 565 | utf_8 | fb40ba50f3b6a890a6d4b3960226fe25 | /*
*/
#include <sys/mman.h>
#ifndef MAP_FIXED
#error MAP_FIXED not defined
#endif |
google | android | 24-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/24-1-buildonly.c | 657 | utf_8 | 6f22e5d5a2dc510b86f79e32c9e37e37 | /*
*/
#include <sys/mman.h>
typedef int (*shm_unlink_test) (const char *);
static int dummyfcn(void)
{
shm_unlink_test dummyvar;
dummyvar = shm_unlink;
return 0;
} |
google | android | 9-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/9-1-buildonly.c | 531 | utf_8 | f73587feb3e0d39d05c07b5e0f33c07f | /*
*
* Test that mode_t type is defined as described in sys/types.h.
*/
#include <sys/mman.h>
static mode_t this_type_should_exist; |
google | android | 14-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/14-1-buildonly.c | 663 | utf_8 | 48a4e23cc3937ccbc6e1443cd804b236 | /*
*/
#include <sys/mman.h>
typedef int (*mprotect_test) (void *, size_t, int);
static int dummyfcn(void)
{
mprotect_test dummyvar;
dummyvar = mprotect;
return 0;
} |
google | android | 10-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/10-1-buildonly.c | 825 | utf_8 | 9f55fde4e95703ef497652753143c9e2 | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
static struct posix_typed_mem_info this_type_should_exist, t;
static int dummyfcn(void)
{
size_t sz = 0;
t.posix_tmi_length = sz;
return 0;
}
#endif |
google | android | 18-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/18-1-buildonly.c | 666 | utf_8 | a72ee906e7eda81febdad0a6736d7e21 | /*
*/
#include <sys/mman.h>
typedef int (*munmap_test) (void *, size_t);
static int dummyfcn(void)
{
munmap_test dummyvar;
dummyvar = munmap;
return 0;
} |
google | android | 16-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/16-1-buildonly.c | 660 | utf_8 | 1ece5e513e321baf4547abd302ae2655 | /*
*/
#include <sys/mman.h>
typedef int (*munlock_test) (const void *, size_t);
static int dummyfcn(void)
{
munlock_test dummyvar;
dummyvar = munlock;
return 0;
} |
google | android | 20-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/20-1-buildonly.c | 966 | utf_8 | 300b2f3632283e6b34413d137b640e0a | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
typedef int (*posix_mem_offset_test) (const void *restrict, size_t,
off_t * restrict, size_t * restrict,
int *restrict);
static int dummyfcn(void)
{
posix_mem_offset_test d... |
google | android | 5-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/5-2-buildonly.c | 581 | utf_8 | 82fdb7be7d5ecb666f586d1c5b8d4f43 | /*
*/
#include <sys/mman.h>
#ifndef MCL_FUTURE
#error MCL_FUTURE not defined
#endif |
google | android | 8-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-3-buildonly.c | 753 | utf_8 | 663e579028e0ef14cae917adcae50ec2 | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
#ifndef POSIX_TYPED_MEM_MAP_ALLOCATABLE
#error POSIX_TYPED_MEM_MAP_ALLOCATABLE not defined
#endif
#endif |
google | android | 22-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/22-1-buildonly.c | 824 | utf_8 | 286386d723cc005eea3b7740bc08b97e | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
typedef int (*posix_typed_mem_open_test) (const char *, int, int);
static int dummyfcn(void)
{
posix_typed_mem_open_test dummyvar;
dummyvar = posix_typed_mem_open;
return 0;
}
#endif |
google | android | 3-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/3-1-buildonly.c | 568 | utf_8 | 35b06ac730b3b7de9913bcb2157580c3 | /*
*/
#include <sys/mman.h>
#ifndef MAP_SHARED
#error MAP_SHARED not defined
#endif |
google | android | 8-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-2-buildonly.c | 753 | utf_8 | 0dd3f8206536c9c40ac079923b95c9a1 | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
#ifndef POSIX_TYPED_MEM_ALLOCATE_CONTIG
#error POSIX_TYPED_MEM_ALLOCATE_CONTIG not defined
#endif
#endif |
google | android | 3-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/3-2-buildonly.c | 571 | utf_8 | 808a57640e139d1f794dad4633b7e56e | /*
*/
#include <sys/mman.h>
#ifndef MAP_PRIVATE
#error MAP_PRIVATE not defined
#endif |
google | android | 4-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/4-3-buildonly.c | 589 | utf_8 | 4369d0a528a426db85cae05a8b3fca3a | /*
*/
#include <sys/mman.h>
#ifndef MS_INVALIDATE
#error MS_INVALIDATE not defined
#endif |
google | android | 19-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/19-1-buildonly.c | 683 | utf_8 | 16c8ead5cf2bffbbba49cd377fef7c77 | /*
*/
#include <sys/mman.h>
typedef int (*posix_madvise_test) (void *, size_t, int);
static int dummyfcn(void)
{
posix_madvise_test dummyvar;
dummyvar = posix_madvise;
return 0;
} |
google | android | 9-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/9-2-buildonly.c | 529 | utf_8 | f8b40b1ce5d63a3376639c465be75e57 | /*
*
* Test that off_t type is defined as described in sys/types.h.
*/
#include <sys/mman.h>
static off_t this_type_should_exist; |
google | android | 4-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/4-2-buildonly.c | 571 | utf_8 | 3e0d9132cd5f8e6dfe7504a01233c650 | /*
*/
#include <sys/mman.h>
#ifndef MS_SYNC
#error MS_SYNC not defined
#endif |
google | android | 8-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-1-buildonly.c | 732 | utf_8 | 91d907a4c6706d7c9d0c6bac53eed112 | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
#ifndef POSIX_TYPED_MEM_ALLOCATE
#error POSIX_TYPED_MEM_ALLOCATE not defined
#endif
#endif |
google | android | 7-5-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/7-5-buildonly.c | 609 | utf_8 | 09d3b1ee9857d9cd23e4c7d92b229967 | /*
*/
#include <sys/mman.h>
#ifndef POSIX_MADV_DONTNEED
#error POSIX_MADV_DONTNEED not defined
#endif |
google | android | 15-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/15-1-buildonly.c | 661 | utf_8 | 88d59a7babd3a9a5affd69cb63c6005b | /*
*/
#include <sys/mman.h>
typedef int (*msync_test) (void *, size_t, int);
static int dummyfcn(void)
{
msync_test dummyvar;
dummyvar = msync;
return 0;
} |
google | android | 23-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/23-1-buildonly.c | 675 | utf_8 | 4aa2a0ceba9f4a5e169aa32d12c07a29 | /*
*/
#include <sys/mman.h>
typedef int (*shm_open_test) (const char *, int, mode_t);
static int dummyfcn(void)
{
shm_open_test dummyvar;
dummyvar = shm_open;
return 0;
} |
google | android | 4-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/4-1-buildonly.c | 574 | utf_8 | bc5d4f12e8bc4318db6f14d64778fee4 | /*
*/
#include <sys/mman.h>
#ifndef MS_ASYNC
#error MS_ASYNC not defined
#endif |
google | android | 5-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/5-1-buildonly.c | 584 | utf_8 | 623f036ee1d7d2f42268e5782b5466e0 | /*
*/
#include <sys/mman.h>
#ifndef MCL_CURRENT
#error MCL_CURRENT not defined
#endif |
google | android | 2-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/2-4-buildonly.c | 582 | utf_8 | 3d5595a381f7bd24b188b73ce9a920be | /*
*/
#include <sys/mman.h>
#ifndef PROT_NONE
#error PROT_NONE not defined
#endif |
google | android | 11-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/11-1-buildonly.c | 652 | utf_8 | 1d7987f13fa1502b1e26bddfa3ed4d60 | /*
*/
#include <sys/mman.h>
typedef int (*mlock_test) (const void *, size_t);
static int dummyfcn(void)
{
mlock_test dummyvar;
dummyvar = mlock;
return 0;
} |
google | android | 2-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/2-2-buildonly.c | 585 | utf_8 | 108e9b405ee1a4a47977b7ff63e30dd8 | /*
*/
#include <sys/mman.h>
#ifndef PROT_WRITE
#error PROT_WRITE not defined
#endif |
google | android | 21-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/21-1-buildonly.c | 875 | utf_8 | facb7c95ee0e39daf2350fb8c071a3be | /*
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
typedef int (*posix_typed_mem_get_info_test) (int,
struct posix_typed_mem_info *);
static int dummyfcn(void)
{
posix_typed_mem_get_info_test dummyvar;
dummyvar = posix_typed_mem_ge... |
google | android | 7-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/7-3-buildonly.c | 603 | utf_8 | 2b06657cdcd1e031eae8355fb8136f40 | /*
*/
#include <sys/mman.h>
#ifndef POSIX_MADV_RANDOM
#error POSIX_MADV_RANDOM not defined
#endif |
google | android | 7-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/7-2-buildonly.c | 615 | utf_8 | 862471830fb2bb979c1bfd10fee1fa48 | /*
*/
#include <sys/mman.h>
#ifndef POSIX_MADV_SEQUENTIAL
#error POSIX_MADV_SEQUENTIAL not defined
#endif |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/2-1-buildonly.c | 582 | utf_8 | a940b756b1e247d5ef87efd62604a003 | /*
*/
#include <sys/mman.h>
#ifndef PROT_READ
#error PROT_READ not defined
#endif |
google | android | 9-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/9-3-buildonly.c | 531 | utf_8 | f71b70bbc854faf091a87a48ee5b93ab | /*
*
* Test that size_t type is defined as described in sys/types.h.
*/
#include <sys/mman.h>
static size_t this_type_should_exist; |
google | android | 7-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/7-4-buildonly.c | 609 | utf_8 | cbcc8bc6c4110d224601a18cc409f239 | /*
*/
#include <sys/mman.h>
#ifndef POSIX_MADV_WILLNEED
#error POSIX_MADV_WILLNEED not defined
#endif |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/1-1-buildonly.c | 897 | utf_8 | 70f6e89b7d1100b03132ed23d4fc3738 | /*
*
* Test that the sys/mman.h header file exists when the implementation supports
* at least one of the following options:
* MF
* SHM
* ML
* MPR
* TYM
* SIO
* ADV
*/
#include <unistd.h>
#if defined(_POSIX_ADVISORY_INFO) || defined(_POSIX_MAPPED_FILES) || \
defined(_POSIX_MEMLOCK) || defined(_POS... |
google | android | 12-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/12-1-buildonly.c | 630 | utf_8 | 768b5d045dc3264c8fbabb061f234ef3 | /*
*/
#include <sys/mman.h>
typedef int (*mlockall_test) (int);
static int dummyfcn(void)
{
mlockall_test dummyvar;
dummyvar = mlockall;
return 0;
} |
google | android | 13-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/13-1-buildonly.c | 706 | utf_8 | 4ffe2f7982d9deb919c131e507234203 | /*
*/
#include <sys/mman.h>
typedef void *(*mmap_test) (void *, size_t, int, int, int, off_t);
static int dummyfcn(void)
{
mmap_test dummyvar;
dummyvar = mmap;
return 0;
} |
google | android | 7-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/7-1-buildonly.c | 603 | utf_8 | bf1f48a4f8e8d487de96aa9b0eb716fc | /*
*/
#include <sys/mman.h>
#ifndef POSIX_MADV_NORMAL
#error POSIX_MADV_NORMAL not defined
#endif |
google | android | 6-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/6-1-buildonly.c | 574 | utf_8 | 2ef2419a281a8115bb22f2a1953d1640 | /*
*/
#include <sys/mman.h>
#ifndef MAP_FAILED
#error MAP_FAILED not defined
#endif |
google | android | 9-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/9-1-buildonly.c | 656 | utf_8 | 34e1fe3dc899cba76f42391721916a3f | /*
*
* Test that the function:
* int shmctl(int, int, struct shmid_ds *)
* is declared.
*/
#include <sys/shm.h>
typedef int (*shmctl_test) (int, int, struct shmid_ds *);
static int dummyfcn(void)
{
shmctl_test dummyvar;
dummyvar = shmctl;
return 0;
} |
google | android | 10-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/10-1-buildonly.c | 622 | utf_8 | bac15b9476e2d2cd4b103c97f95d98ae | /*
*
* Test that the function:
* int shmdt(const void *)
* is declared.
*/
#include <sys/shm.h>
typedef int (*shmdt_test) (const void *);
static int dummyfcn(void)
{
shmdt_test dummyvar;
dummyvar = shmdt;
return 0;
} |
google | android | 3-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/3-1-buildonly.c | 533 | utf_8 | 15cbc7a5c7b7830e8eaa40578b4d10dc | /*
*
* Test that the header define the SHMLBA symbolic value.
*/
#include <sys/shm.h>
#ifndef SHMLBA
#error SHMLBA not defined
#endif |
google | android | 8-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/8-1-buildonly.c | 646 | utf_8 | dd10c6d6c2312fbb76b11a182bbf17b0 | /*
*
* Test that the function:
* void *shmat(int, const void *, int)
* is declared.
*/
#include <sys/shm.h>
typedef void *(*shmat_test) (int, const void *, int);
static int dummyfcn(void)
{
shmat_test dummyvar;
dummyvar = shmat;
return 0;
} |
google | android | 4-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/4-1-buildonly.c | 533 | utf_8 | 133249220754f224e620f67b5d0747ac | /*
*
* Test that the header define the shmatt_t type through typedef.
*/
#include <sys/shm.h>
static shmatt_t this_type_should_exist; |
google | android | 5-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/5-1-buildonly.c | 756 | utf_8 | 83a36f7c1a501be34718ac9a94e01777 | /*
*
* Test that the shmatt_t type is an unsigned integer that must be able to
* store values at least as large than unsigned short.
*/
#include <sys/shm.h>
#include <limits.h>
/* The minimun acceptable value for USHRT_MAX */
#define MIN_USHRT_MAX 65535
static shmatt_t tmin = 0;
static shmatt_t tmax = USHRT_MAX;
st... |
google | android | 12-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/12-2-buildonly.c | 533 | utf_8 | 9cb53a594a6f9cd9ad52c80e3216fea4 | /*
*
* Test that the stuct ipc_perm from sys/ipc.h is defined.
*/
#include <sys/shm.h>
static struct ipc_perm this_type_should_exist; |
google | android | 11-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/11-1-buildonly.c | 638 | utf_8 | 3fde26e17b5086a1064fc77d8f6c6852 | /*
*
* Test that the function:
* int shmget(key_t, size_t, int)
* is declared.
*/
#include <sys/shm.h>
typedef int (*shmget_test) (key_t, size_t, int);
static int dummyfcn(void)
{
shmget_test dummyvar;
dummyvar = shmget;
return 0;
} |
google | android | 2-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/2-2-buildonly.c | 539 | utf_8 | f9ba78c2c66f902d931679cf43c7b91d | /*
*
* Test that the header define the SHM_RND symbolic constant.
*/
#include <sys/shm.h>
#ifndef SHM_RND
#error SHM_RND not defined
#endif |
google | android | 7-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/7-3-buildonly.c | 528 | utf_8 | 3fe121a10f9c6da45458d808450c4a85 | /*
*
* Test that key_t type is defined as described in sys/types.h.
*/
#include <sys/shm.h>
static key_t this_type_should_exist; |
google | android | 7-2-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/7-2-buildonly.c | 530 | utf_8 | 46b3bc2463d4dba9bf9b5550e4d47277 | /*
*
* Test that time_t type is defined as described in sys/types.h.
*/
#include <sys/shm.h>
static time_t this_type_should_exist; |
google | android | 2-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/2-1-buildonly.c | 548 | utf_8 | 3aec2bdbb6f0a82ae8b609c41aa4d4ca | /*
*
* Test that the header define the SHM_RDONLY symbolic constant.
*/
#include <sys/shm.h>
#ifndef SHM_RDONLY
#error SHM_RDONLY not defined
#endif |
google | android | 7-4-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/7-4-buildonly.c | 530 | utf_8 | 0da8289e48dd926666931d67bb687bd0 | /*
*
* Test that size_t type is defined as described in sys/types.h.
*/
#include <sys/shm.h>
static size_t this_type_should_exist; |
google | android | 1-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/1-1-buildonly.c | 473 | utf_8 | 7e03882962d93d11b2edad0528ff5868 | /*
*
* Test that the sys/shm.h header file exists.
*/
#include <sys/shm.h> |
google | android | 12-3-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/12-3-buildonly.c | 646 | utf_8 | 578bdf21c898e080cc76d067156e1356 | /*
*
* Test that the function:
* key_t ftok(const char *, int)
* from sys/ipc.h is declared.
*/
#include <sys/shm.h>
typedef key_t(*ftok_test) (const char *, int);
static int dummyfcn(void)
{
ftok_test dummyvar;
dummyvar = ftok;
return 0;
} |
google | android | 12-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/12-1-buildonly.c | 983 | utf_8 | f602fd02315bcb595bae38bf809918b6 | /*
*
* Test that all of the folowing symbolic constants from sys/ipc.h are defined:
* IPC_CREAT
* IPC_EXCL
* IPC_NOWAIT
* IPC_PRIVATE
* IPC_RMID
* IPC_SET
* IPC_STAT
*/
#include <sys/shm.h>
#ifndef IPC_CREAT
#error IPC_CREAT not defined
#endif
#ifndef IPC_EXCL
#error IPC_EXCL not defined
#endif
#ifndef... |
google | android | 7-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/7-1-buildonly.c | 528 | utf_8 | f9aca4d6583a4a6f9ecd428565de37e6 | /*
*
* Test that pid_t type is defined as described in sys/types.h.
*/
#include <sys/shm.h>
static pid_t this_type_should_exist; |
google | android | 6-1-buildonly | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/6-1-buildonly.c | 1,090 | utf_8 | 9df6aababfe405def3710de101d9c048 | /*
*
* Test that the header declares struct shmid_ds with the members below, at a
* minimum:
* struct ipc_perm shm_perm
* size_t shm_segsz
* pid_t shm_lpid
* pid_t shm_cpid
* shmatt_t shm_nattch
* time_t shm_atime
* time_t shm_dtime
* time_t shm_ctime
*/
#include <sys/shm.h>
static struct shmid_ds thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.