Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:34

0001 /*
0002  * Copyright (c) 2009 by
0003  * Ralf Corsépius, Ulm, Germany. All rights reserved.
0004  *
0005  * Permission to use, copy, modify, and distribute this software
0006  * is freely granted, provided that this notice is preserved.
0007  */
0008 
0009 #ifdef HAVE_CONFIG_H
0010 #include "config.h"
0011 #endif
0012 
0013 #include <sys/types.h>
0014 #include <unistd.h>
0015 
0016 int main(void)
0017 {
0018   off_t res;
0019   int fd = 42;
0020 
0021   res = lseek(fd, 0, SEEK_SET);
0022   (void) res;
0023 
0024   res = lseek(fd, 1, SEEK_CUR);
0025   (void) res;
0026 
0027   res = lseek(fd, 2, SEEK_END);
0028   (void) res;
0029 
0030   return 0;
0031 }