1 /* ========================================================================
2 * Copyright 2008-2009 Mark Crispin
3 * ========================================================================
7 * Program: Operating-system dependent routines -- Linux version
11 * Date: 10 September 1993
12 * Last Edited: 18 May 2009
14 * Previous versions of this file were:
16 * Copyright 1988-2006 University of Washington
18 * Licensed under the Apache License, Version 2.0 (the "License");
19 * you may not use this file except in compliance with the License.
20 * You may obtain a copy of the License at
22 * http://www.apache.org/licenses/LICENSE-2.0
27 *** These lines are claimed to be necessary to build on Debian Linux on an
32 #define _XOPEN_SOURCE 1
33 #endif /* _XOPEN_SOURCE */
34 #ifndef _DEFAULT_SOURCE
35 #define _DEFAULT_SOURCE 1
36 #endif /* _DEFAULT_SOURCE */
38 /* end Debian Linux on Alpha strangeness */
43 #include <sys/types.h>
45 #include <time.h> /* for struct tm */
52 /* Linux gets this wrong */
54 #define setpgrp setpgid
58 #define flock safe_flock
60 #define utime portable_utime
61 int portable_utime (char *file
,time_t timep
[2]);