summaryrefslogtreecommitdiffstats
path: root/source/utils/make_smbcodepage.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-01 20:11:54 +0000
committerJeremy Allison <jra@samba.org>1998-09-01 20:11:54 +0000
commit28aa182dbffaa4ffd86047e608400de4b26e80eb (patch)
tree789ac30eed5ef242b4cd9ffd6cbb84a7c640e0f4 /source/utils/make_smbcodepage.c
parent8bd2cf0eb7533c3ec2d5767163ffdaf20b01bbff (diff)
downloadsamba-28aa182dbffaa4ffd86047e608400de4b26e80eb.tar.gz
samba-28aa182dbffaa4ffd86047e608400de4b26e80eb.tar.xz
samba-28aa182dbffaa4ffd86047e608400de4b26e80eb.zip
More abstraction of file system data types, to move to a 64
bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
Diffstat (limited to 'source/utils/make_smbcodepage.c')
-rw-r--r--source/utils/make_smbcodepage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils/make_smbcodepage.c b/source/utils/make_smbcodepage.c
index 155ed5aeb53..97dfb715b04 100644
--- a/source/utils/make_smbcodepage.c
+++ b/source/utils/make_smbcodepage.c
@@ -170,7 +170,7 @@ int do_compile(int codepage, char *input_file, char *output_file)
char output_buf[CODEPAGE_HEADER_SIZE + 4 * MAXCODEPAGELINES];
int num_lines = 0;
int i = 0;
- struct stat st;
+ SMB_STRUCT_STAT st;
/* Get the size of the input file. Read the entire thing into memory. */
if(stat((char *)input_file, &st)!= 0)
@@ -310,7 +310,7 @@ definition file. File %s has %d.\n", prog_name, MAXCODEPAGELINES, input_file, nu
int do_decompile( int codepage, char *input_file, char *output_file)
{
uint32 size = 0;
- struct stat st;
+ SMB_STRUCT_STAT st;
char header_buf[CODEPAGE_HEADER_SIZE];
char *buf = NULL;
FILE *fp = NULL;