annotate src/osdep/unix/os_sc5.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
1 /* ========================================================================
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
2 * Copyright 1988-2006 University of Washington
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
3 *
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
4 * Licensed under the Apache License, Version 2.0 (the "License");
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
5 * you may not use this file except in compliance with the License.
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
6 * You may obtain a copy of the License at
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
7 *
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
8 * http://www.apache.org/licenses/LICENSE-2.0
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
9 *
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
10 *
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
11 * ========================================================================
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
12 */
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
13
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
14 /*
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
15 * Program: Operating-system dependent routines -- SCO Unix version
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
16 *
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
17 * Author: Mark Crispin
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
18 * Networks and Distributed Computing
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
19 * Computing & Communications
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
20 * University of Washington
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
21 * Administration Building, AG-44
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
22 * Seattle, WA 98195
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
23 * Internet: MRC@CAC.Washington.EDU
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
24 *
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
25 * Date: 1 August 1988
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
26 * Last Edited: 20 December 2006
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
27 */
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
28
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
29 #include <stdlib.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
30 #include <string.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
31 #include <sys/types.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
32 #include <sys/dir.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
33 #include <fcntl.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
34 #include <unistd.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
35 #include <time.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
36 #include <utime.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
37 #include <dirent.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
38 #include <syslog.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
39 #include <sys/file.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
40 #include <ustat.h>
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
41
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
42 /* SCO gets this wrong */
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
43
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
44 #define setpgrp Setpgrp
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
45 int Setpgrp (int pid,int gid);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
46
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
47 #define rename Rename
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
48
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
49
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
50 /* Different names, equivalent things in BSD and SysV */
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
51
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
52 #define L_SET SEEK_SET
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
53 #define L_INCR SEEK_CUR
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
54 #define L_XTND SEEK_END
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
55
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
56 #define direct dirent
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
57
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
58 #define utime portable_utime
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
59 int portable_utime (char *file,time_t timep[2]);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
60
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
61
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
62 long gethostid (void);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
63 typedef int (*select_t) (struct direct *name);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
64 typedef int (*compar_t) (void *d1,void *d2);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
65 int scandir (char *dirname,struct direct ***namelist,select_t select,
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
66 compar_t compar);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
67 int alphasort (void *d1,void *d2);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
68 int fsync (int fd);
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
69
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
70
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
71 #include "env_unix.h"
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
72 #include "fs.h"
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
73 #include "ftl.h"
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
74 #include "nl.h"
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
75 #include "tcp.h"
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
76 #include "flocksim.h"

yatex.org