imapext-2007

view src/osdep/unix/os_asv.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* ========================================================================
2 * Copyright 1988-2006 University of Washington
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *
11 * ========================================================================
12 */
14 /*
15 * Program: Operating-system dependent routines -- Altos System V version
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 10 April 1992
26 * Last Edited: 15 September 2006
27 */
29 #include <string.h>
30 #include <sys/types.h>
31 #include <dirent.h>
32 #include <fcntl.h>
33 #include <unistd.h>
34 #include <time.h>
35 #include <sys/time.h>
36 #include <syslog.h>
37 #include <sys/file.h>
38 #include <ustat.h>
41 /* Different names, equivalent things in BSD and SysV */
43 #define L_SET SEEK_SET
44 #define L_INCR SEEK_CUR
45 #define L_XTND SEEK_END
47 #define direct dirent
49 #define ftruncate chsize
50 #define random lrand48
53 struct passwd *getpwent (void);
54 struct passwd *getpwuid (int uid);
55 struct passwd *getpwnam (char *name);
56 char *getenv (char *name);
57 long gethostid (void);
58 void *memmove (void *s,void *ct,size_t n);
59 char *strstr (char *cs,char *ct);
60 char *strerror (int n);
61 unsigned long strtoul (char *s,char **endp,int base);
62 typedef int (*select_t) (struct direct *name);
63 typedef int (*compar_t) (void *d1,void *d2);
64 int scandir (char *dirname,struct direct ***namelist,select_t select,
65 compar_t compar);
66 int alphasort (void *d1,void *d2);
67 void *malloc (size_t byteSize);
68 void free (void *ptr);
69 void *realloc (void *oldptr,size_t newsize);
71 #include "env_unix.h"
72 #include "fs.h"
73 #include "ftl.h"
74 #include "nl.h"
75 #include "tcp.h"
76 #include "flocksim.h"

UW-IMAP'd extensions by yuuji