Patch level : 12.0
Files correlati : Modificate costanti git-svn-id: svn://10.65.10.50/branches/R_10_00@23439 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
974deed13b
commit
2edc3a3bbe
@ -21,6 +21,15 @@
|
||||
#include <utility.h>
|
||||
#include <user.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#include <share.h>
|
||||
#include <sys/stat.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#define History_file "conv.his"
|
||||
#define Dir_file "dir.gen"
|
||||
@ -113,7 +122,11 @@ TManutenzione_app::TManutenzione_app() : _browse(NULL), _mask(NULL), _firm(0), _
|
||||
fd.EOD = fd.EOX = 1L;
|
||||
fd.Flags = 0;
|
||||
|
||||
#ifdef WIN32
|
||||
int handle = sopen(Dir_file, O_RDWR|O_BINARY|O_CREAT,SH_DENYNO,S_IREAD|S_IWRITE);
|
||||
#else
|
||||
int handle = open(Dir_file, O_RDWR|O_CREAT, S_IRWXU|S_IRWXG|S_IRWXO);
|
||||
#endif
|
||||
if (handle != -1)
|
||||
{
|
||||
if (write( handle, &fd, sizeof(FileDes)) == -1)
|
||||
@ -127,7 +140,11 @@ TManutenzione_app::TManutenzione_app() : _browse(NULL), _mask(NULL), _firm(0), _
|
||||
{
|
||||
TTrec r;
|
||||
RecDes& rd = r.rec();
|
||||
#ifdef WIN32
|
||||
int handle = sopen(Trc_file, O_RDWR|O_BINARY|O_CREAT,SH_DENYNO,S_IREAD|S_IWRITE);
|
||||
#else
|
||||
int handle = open(Trc_file, O_RDWR|O_CREAT, S_IRWXU|S_IRWXG|S_IRWXO);
|
||||
#endif
|
||||
if (handle != -1)
|
||||
{
|
||||
if (write( handle, (void*)&rd, sizeof(RecDes)) == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user