xref: /titanic_44/usr/src/cmd/refer/glue2.c (revision b7f45089ccbe01bab3d7c7377b49d80d2ae18a69)
1 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
2 /*	  All Rights Reserved  	*/
3 
4 
5 /*
6  * Copyright (c) 1980 Regents of the University of California.
7  * All rights reserved. The Berkeley software License Agreement
8  * specifies the terms and conditions for redistribution.
9  */
10 
11 /*
12  * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
13  * All Rights Reserved.
14  */
15 
16 #pragma ident	"%Z%%M%	%I%	%E% SMI"
17 
18 
19 char refdir[50];
20 
21 savedir()
22 {
23 	if (refdir[0]==0)
24 		corout ("", refdir, "/usr/bin/pwd", "", 50);
25 	trimnl(refdir);
26 }
27 
28 restodir()
29 {
30 	chdir(refdir);
31 }
32