Home | History | Annotate | Download | only in shm_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 shmget(key_t, size_t, int)
     12  * is declared.
     13  */
     14 
     15 #include <sys/shm.h>
     16 
     17 typedef int (*shmget_test) (key_t, size_t, int);
     18 
     19 int dummyfcn(void)
     20 {
     21 	shmget_test dummyvar;
     22 	dummyvar = shmget;
     23 	return 0;
     24 }
     25