Home | History | Annotate | Download | only in unistd_h
      1 /*
      2  * Copyright (c) 2005, Bull S.A.. All rights reserved.
      3  * Created by:  Sebastien Decugis
      4  * This file is licensed under the GPL license.  For the full content
      5  * of this license, see the COPYING file at the top level of this
      6  * source tree.
      7  *
      8  * Based on original code by Julie N Fleischer.
      9  *
     10  * Test that the function below is defined:
     11  * int ftruncate(int fildes, off_t length);
     12  */
     13 
     14 #include <unistd.h>
     15 #include <sys/types.h>
     16 
     17 typedef int (*ftruncate_test) (int fildes, off_t length);
     18 
     19 int dummyfcn(void)
     20 {
     21 	ftruncate_test dummyvar;
     22 	dummyvar = ftruncate;
     23 	return 0;
     24 }
     25