~ubuntu-branches/ubuntu/saucy/ng/saucy

« back to all changes in this revision

Viewing changes to sys/amiga/sysinit.c

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2008-07-17 08:10:34 UTC
  • mfrom: (4.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080717081034-s7iitiihm9hl4jjg
Tags: 1.5~beta1-3
Bumped to Standards-Version: 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: sysinit.c,v 1.3 2000/10/31 07:08:14 amura Exp $ */
 
1
/* $Id: sysinit.c,v 1.6 2001/02/01 16:31:43 amura Exp $ */
2
2
/*
3
3
 * Name:        MG 2a
4
4
 *
11
11
 
12
12
/*
13
13
 * $Log: sysinit.c,v $
 
14
 * Revision 1.6  2001/02/01 16:31:43  amura
 
15
 * fix small bug? in get current directory
 
16
 *
 
17
 * Revision 1.5  2000/12/22 19:48:17  amura
 
18
 * change "sysdef.h" to "def.h" for get NFILEN
 
19
 *
 
20
 * Revision 1.4  2000/12/14 18:08:35  amura
 
21
 * filename length become flexible
 
22
 *
14
23
 * Revision 1.3  2000/10/31 07:08:14  amura
15
24
 * fix bug around input.device
16
25
 *
29
38
#include "zz_pointer.h"
30
39
 
31
40
#include <libraries/dosextens.h>
32
 
#include        "config.h"      /* Dec. 16, 1992 by H.Ohkubo */
33
 
#include "sysdef.h"
 
41
#include "config.h"     /* Dec. 16, 1992 by H.Ohkubo */
 
42
#include "def.h"
34
43
 
35
44
#undef  FALSE
36
45
#undef  TRUE
68
77
#ifndef NO_DIR
69
78
extern struct   Task *FindTask();
70
79
static BPTR     StartLock;
71
 
char            MyDirName[MAXPATH];
 
80
char            MyDirName[NFILEN];
72
81
extern BPTR     DupLock(), CurrentDir();
73
 
#endif NO_DIR
 
82
#endif /* NO_DIR */
74
83
 
75
84
sysinit()
76
85
{
91
100
 
92
101
        StartLock = ((struct Process *)FindTask(0L))->pr_CurrentDir;
93
102
        (void) CurrentDir(MyDirLock = DupLock(StartLock));
94
 
        len = PathName(MyDirLock, MyDirName, MAXPATH/31L);
95
 
#endif NO_DIR
 
103
        len = PathName(MyDirLock, MyDirName, (NFILEN+31L)/32L - 1);
 
104
#endif /* NO_DIR */
96
105
 
97
106
/* These from ttyio.c by H.Ohkubo Dec.20,1992 */
98
107
#ifdef  USE_ARP /* Add by H.Ohkubo */