Home | History | Annotate | Download | only in mman_h
      1 /*
      2  *  This program is free software; you can redistribute it and/or modify
      3  *  it under the terms of the GNU General Public License version 2.
      4  *
      5  *  This program is distributed in the hope that it will be useful,
      6  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
      7  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      8  *  GNU General Public License for more details.
      9  *
     10  * Test that the function:
     11  * int posix_mem_offset(const void *restrict, size_t, off_t *restrict,
     12  *                      size_t *restrict, int *restrict)
     13  * is declared.
     14  *
     15  * @pt:TYM
     16  */
     17 
     18 #include <sys/mman.h>
     19 #include <unistd.h>
     20 
     21 #if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
     22 
     23 typedef int (*posix_mem_offset_test) (const void *restrict, size_t,
     24 				      off_t * restrict, size_t * restrict,
     25 				      int *restrict);
     26 
     27 int dummyfcn(void)
     28 {
     29 	posix_mem_offset_test dummyvar;
     30 	dummyvar = posix_mem_offset;
     31 	return 0;
     32 }
     33 
     34 #endif
     35