rename O_DIRECTORY to O_TMP_DIRECTORY to avoid conflict with open option
[nvi.git] / common / nothread.c
blobaa3d5dc02530605c9fc486dcafb8fa083cddf9c8
1 /*-
2 * Copyright (c) 2000
3 * Sven Verdoolaege. All rights reserved.
5 * See the LICENSE file for redistribution information.
6 */
8 #include "config.h"
10 #ifndef lint
11 static const char sccsid[] = "$Id: nothread.c,v 1.4 2000/07/22 14:52:37 skimo Exp $ (Berkeley) $Date: 2000/07/22 14:52:37 $";
12 #endif /* not lint */
14 #include <sys/types.h>
15 #include <sys/queue.h>
17 #include <bitstring.h>
18 #include <ctype.h>
19 #include <errno.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23 #include <unistd.h>
25 #include "../common/common.h"
27 static int vi_nothread_run __P((WIN *wp, void *(*fun)(void*), void *data));
28 static int vi_nothread_lock __P((WIN *, void **));
31 * thread_init
33 * PUBLIC: void thread_init __P((GS *gp));
35 void
36 thread_init(GS *gp)
38 gp->run = vi_nothread_run;
39 gp->lock_init = vi_nothread_lock;
40 gp->lock_end = vi_nothread_lock;
41 gp->lock_try = vi_nothread_lock;
42 gp->lock_unlock = vi_nothread_lock;
45 static int
46 vi_nothread_run(WIN *wp, void *(*fun)(void*), void *data)
48 fun(data);
49 return 0;
52 static int
53 vi_nothread_lock (WIN * wp, void **lp)
55 return 0;