10dc076565f772bb1953209fb69ea150b494aaa40robbiew/* 20dc076565f772bb1953209fb69ea150b494aaa40robbiew * Copyright (c) 2002, Intel Corporation. All rights reserved. 30dc076565f772bb1953209fb69ea150b494aaa40robbiew * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 40dc076565f772bb1953209fb69ea150b494aaa40robbiew * This file is licensed under the GPL license. For the full content 50dc076565f772bb1953209fb69ea150b494aaa40robbiew * of this license, see the COPYING file at the top level of this 60dc076565f772bb1953209fb69ea150b494aaa40robbiew * source tree. 70dc076565f772bb1953209fb69ea150b494aaa40robbiew */ 80dc076565f772bb1953209fb69ea150b494aaa40robbiew 90dc076565f772bb1953209fb69ea150b494aaa40robbiew/* 100dc076565f772bb1953209fb69ea150b494aaa40robbiew * return codes 110dc076565f772bb1953209fb69ea150b494aaa40robbiew */ 1280886b520423c015b63cff03082e274147042243Garrett Cooper 134e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper/* 144e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper * Define PTS_DEVELOPER_MODE if you want to compile for developer scenarios, 154e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper * including reporting errors (as opposed to warnings), when compiling some 164e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper * test programs. 174e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper */ 184e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper 19b90b372e4a1e06c7a1e08ca0e2f291b543592fafGarrett Cooper#if defined(_GNU_SOURCE) 20520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# if !AFFINITY_NEEDS_GNU_SOURCE 21520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# if defined(PTS_DEVELOPER_MODE) 22520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# error "Contains GNU-isms that need fixing." 23520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# else 24520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# warning "Contains GNU-isms that need fixing." 25520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# endif 26520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# endif 274e69f59f171f2659bea8c22cfad44b6b6a73e340Garrett Cooper#endif 28520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis 29520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis#if defined(_BSD_SOURCE) 30520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# if defined(PTS_DEVELOPER_MODE) 31520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# error "Contains BSD-isms that need fixing." 32520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# else 33520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# warning "Contains BSD-isms that need fixing." 34520f02a0cb9200cca5b837b78079be7e4727004bCyril Hrubis# endif 3580886b520423c015b63cff03082e274147042243Garrett Cooper#endif 3680886b520423c015b63cff03082e274147042243Garrett Cooper 370dc076565f772bb1953209fb69ea150b494aaa40robbiew#define PTS_PASS 0 380dc076565f772bb1953209fb69ea150b494aaa40robbiew#define PTS_FAIL 1 390dc076565f772bb1953209fb69ea150b494aaa40robbiew#define PTS_UNRESOLVED 2 400dc076565f772bb1953209fb69ea150b494aaa40robbiew#define PTS_UNSUPPORTED 4 410dc076565f772bb1953209fb69ea150b494aaa40robbiew#define PTS_UNTESTED 5 420dc076565f772bb1953209fb69ea150b494aaa40robbiew 43338d209d9aa1b58ecc9849dd5ac919af232c6ecdZeng Linggang#ifndef ARRAY_SIZE 44338d209d9aa1b58ecc9849dd5ac919af232c6ecdZeng Linggang#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) 45338d209d9aa1b58ecc9849dd5ac919af232c6ecdZeng Linggang#endif 46