imapext-2007
diff src/osdep/unix/os_slx.h @ 0:ada5e610ab86
imap-2007e
author | yuuji@gentei.org |
---|---|
date | Mon, 14 Sep 2009 15:17:45 +0900 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/osdep/unix/os_slx.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,67 @@ 1.4 +/* ======================================================================== 1.5 + * Copyright 1988-2006 University of Washington 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * 1.14 + * ======================================================================== 1.15 + */ 1.16 + 1.17 +/* 1.18 + * Program: Operating-system dependent routines -- Linux version 1.19 + * 1.20 + * Author: Mark Crispin 1.21 + * Networks and Distributed Computing 1.22 + * Computing & Communications 1.23 + * University of Washington 1.24 + * Administration Building, AG-44 1.25 + * Seattle, WA 98195 1.26 + * Internet: MRC@CAC.Washington.EDU 1.27 + * 1.28 + * Date: 10 September 1993 1.29 + * Last Edited: 30 August 2006 1.30 + */ 1.31 + 1.32 +/* 1.33 + *** These lines are claimed to be necessary to build on Debian Linux on an 1.34 + *** Alpha. 1.35 + */ 1.36 + 1.37 +#ifndef _XOPEN_SOURCE 1.38 +#define _XOPEN_SOURCE 1 1.39 +#endif /* _XOPEN_SOURCE */ 1.40 +#ifndef _BSD_SOURCE 1.41 +#define _BSD_SOURCE 1 1.42 +#endif /* _BSD_SOURCE */ 1.43 + 1.44 +/* end Debian Linux on Alpha strangeness */ 1.45 + 1.46 +#include <stdlib.h> 1.47 +#include <string.h> 1.48 +#include <unistd.h> 1.49 +#include <sys/types.h> 1.50 +#include <dirent.h> 1.51 +#include <time.h> /* for struct tm */ 1.52 +#include <fcntl.h> 1.53 +#include <syslog.h> 1.54 +#include <sys/file.h> 1.55 + 1.56 + 1.57 +/* Linux gets this wrong */ 1.58 + 1.59 +#define setpgrp setpgid 1.60 + 1.61 +#define direct dirent 1.62 + 1.63 +#define flock safe_flock 1.64 + 1.65 + 1.66 +#include "env_unix.h" 1.67 +#include "fs.h" 1.68 +#include "ftl.h" 1.69 +#include "nl.h" 1.70 +#include "tcp.h"