imapext-2007
diff src/osdep/unix/os_nto.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_nto.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,75 @@ 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 -- QNX Neutrino RTP 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 +#include <stdlib.h> 1.33 +#include <string.h> 1.34 +#include <syslog.h> 1.35 +#include <dirent.h> 1.36 +#include <fcntl.h> 1.37 +#include <unistd.h> 1.38 +#include <sys/dir.h> 1.39 +#include <sys/types.h> 1.40 +#include <time.h> 1.41 +#include <utime.h> 1.42 + 1.43 + 1.44 +/* QNX gets these wrong */ 1.45 + 1.46 +#define setpgrp setpgid 1.47 +#define readdir Readdir 1.48 +#define FNDELAY O_NONBLOCK 1.49 +#define d_ino d_fileno 1.50 + 1.51 + 1.52 +/* Different names, equivalent things in BSD and SysV */ 1.53 + 1.54 +#ifndef L_SET 1.55 +#define L_SET SEEK_SET 1.56 +#endif 1.57 +#ifndef L_INCR 1.58 +#define L_INCR SEEK_CUR 1.59 +#endif 1.60 +#ifndef L_XTND 1.61 +#define L_XTND SEEK_END 1.62 +#endif 1.63 + 1.64 + 1.65 +#define utime portable_utime 1.66 +int portable_utime (char *file,time_t timep[2]); 1.67 + 1.68 +long gethostid (void); 1.69 +struct direct *Readdir (DIR *dirp); 1.70 +typedef int (*select_t) (struct direct *name); 1.71 +typedef int (*compar_t) (void *d1,void *d2); 1.72 + 1.73 +#include "env_unix.h" 1.74 +#include "fs.h" 1.75 +#include "ftl.h" 1.76 +#include "nl.h" 1.77 +#include "tcp.h" 1.78 +#include "flocksim.h"