mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 15:39:36 +00:00
[Pal/Linux-SGX] Remove unused pal_handle.file.{pass,append} fields
This commit is contained in:
@@ -58,8 +58,6 @@ static int file_open(PAL_HANDLE* handle, const char* type, const char* uri, int
|
||||
SET_HANDLE_TYPE(hdl, file);
|
||||
HANDLE_HDR(hdl)->flags |= RFD(0) | WFD(0) | WRITABLE(0);
|
||||
hdl->file.fd = fd;
|
||||
hdl->file.append = 0;
|
||||
hdl->file.pass = 0;
|
||||
char* path = (void*)hdl + HANDLE_SIZE(file);
|
||||
int ret;
|
||||
if ((ret = get_norm_path(uri, path, &len)) < 0) {
|
||||
|
||||
@@ -102,8 +102,6 @@ static PAL_HANDLE setup_dummy_file_handle (const char * name)
|
||||
SET_HANDLE_TYPE(handle, file);
|
||||
HANDLE_HDR(handle)->flags |= RFD(0);
|
||||
handle->file.fd = PAL_IDX_POISON;
|
||||
handle->file.append = 0;
|
||||
handle->file.pass = 0;
|
||||
|
||||
char * path = (void *) handle + HANDLE_SIZE(file);
|
||||
int ret = get_norm_path(name, path, &len);
|
||||
|
||||
@@ -94,8 +94,6 @@ typedef struct pal_handle
|
||||
|
||||
struct {
|
||||
PAL_IDX fd;
|
||||
PAL_BOL append;
|
||||
PAL_BOL pass;
|
||||
PAL_STR realpath;
|
||||
PAL_NUM total;
|
||||
PAL_PTR stubs;
|
||||
|
||||
Reference in New Issue
Block a user