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 */
37 #ifndef _BSD_SOURCE /* gcc 6 deprecates this, so will we */
39 #endif /* _BSD_SOURCE */
41 /* end Debian Linux on Alpha strangeness */
46 #include <sys/types.h>
48 #include <time.h> /* for struct tm */
55 /* Linux gets this wrong */
57 #define setpgrp setpgid
61 int safe_flock (int, int);
62 #define flock safe_flock
64 #define utime portable_utime
65 int portable_utime (char *file
,time_t timep
[2]);