1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1982-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * David Korn <dgk@research.att.com> *
19 ***********************************************************************/
24 * This installs a hook to allow the processing of events when
25 * the shell is waiting for input and when the shell is
26 * waiting for job completion.
27 * The previous waitevent hook function is returned
31 void *sh_waitnotify(int(*newevent
)(int,long,int))
33 int (*old
)(int,long,int);
35 sh
.waitevent
= newevent
;
39 #if __OBSOLETE__ < 20080101
41 * this used to be a private symbol
42 * retain the old name for a bit for a smooth transition
45 #if defined(__EXPORT__)
46 #define extern __EXPORT__
49 extern void *_sh_waitnotify(int(*newevent
)(int,long,int))
51 return sh_waitnotify(newevent
);