-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.c
54 lines (36 loc) · 1.02 KB
/
globals.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// globals.c
// Created by Fred Nora.
// #test:
// Testing ioctl()
#include <termios.h>
#include <fcntl.h>
#include <sys/ioctls.h>
#include <sys/ioctl.h>
#include <stdlib.h>
//#include <stdio.h>
//#include <unistd.h>
// #ps
// This thing is including a lot of libc headers too.
#include "include/terminal.h"
// Client-side library.
#include <gws.h>
int saved_argc=0;
char **saved_argv;
char pathname_buffer[PATHNAME_LENGHT];
int pathname_lenght=0; //tamanho do atual pathname.
int pathname_initilized=0;
char filename_buffer[FILENAME_LENGHT];
int filename_lenght=0; //tamanho do nome de arquivo atual.
int filename_initilized=0;
int EOF_Reached=0;
char *current_volume_string;
int current_volume_id=0;
//...
int g_current_disk_id=0;
int g_current_volume_id=0;
int g_current_workingdirectory_id=0; //??
// a string do diretório de trabalho.
char current_workingdiretory_string[WORKINGDIRECTORY_STRING_MAX];
int pwd_initialized=0;
struct _iobuf *pwd;
struct _iobuf *root;