Skip to content

Commit

Permalink
Zowe Suite v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Nov 8, 2019
2 parents c9a5f54 + fff6bc6 commit e8fe40c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions c/httpfileservice.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,25 @@ bool isDir(char *absolutePath) {

status = fileInfo(absolutePath, &info, &returnCode, &reasonCode);
if (status == -1) {
return -1;
return false;
}

return (fileInfoIsDirectory(&info));
}

/* Returns a boolean value for whether or not
* the specified file exists.
* the specified file/directory exists.
*/
bool doesFileExist(char *absolutePath) {
int returnCode = 0, reasonCode = 0, status = 0;
FileInfo info = {0};

status = fileInfo(absolutePath, &info, &returnCode, &reasonCode);
if (status == -1) {
return FALSE;
return false;
}

return TRUE;
return true;
}

/* Creates a new unix directory at the specified absolute
Expand Down Expand Up @@ -160,7 +160,7 @@ void deleteUnixDirectoryAndRespond(HttpResponse *response, char *absolutePath) {
response200WithMessage(response, "Successfully deleted a directory");
}
else {
respondWithJsonError(response, "Failed to delete a directory", 500, "Internal Server Error");
respondWithJsonError(response, "Failed to delete a directory", 400, "Bad Request");
}
}

Expand Down Expand Up @@ -195,7 +195,7 @@ void deleteUnixFileAndRespond(HttpResponse *response, char *absolutePath) {
response200WithMessage(response, "Successfully deleted a file");
}
else {
respondWithJsonError(response, "Failed to delete a file", 500, "Internal Server Error");
respondWithJsonError(response, "Failed to delete a file", 400, "Bad Request");
}
}

Expand Down
32 changes: 16 additions & 16 deletions h/zos.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,38 +444,38 @@ typedef struct ecvt_tag{
typedef struct gda_tag{
char gdaid[4]; /* eyecatcher "GDA " */
char stuff[0x60];
void *gdafbqcf; /* chain head of CSA FBQE */
void *gdafbqcl; /* chain tail */
void *gdacsa; /* base of CSA */
Addr31 gdafbqcf; /* chain head of CSA FBQE */
Addr31 gdafbqcl; /* chain tail */
Addr31 gdacsa; /* base of CSA */
int gdacsasz; /* CSA size */
void *gdaefbcf; /* first ECSA FBQE */
void *gdaefbcl; /* last ECSA FBQE */
void *gdaecsa; /* base of ECSA */
Addr31 gdaefbcf; /* first ECSA FBQE */
Addr31 gdaefbcl; /* last ECSA FBQE */
Addr31 gdaecsa; /* base of ECSA */
/* OFFSET 0x80 */
int gdaecsas; /* size of ECSA */
int gdacsare; /* amount of low common (CSA + SQA) left over */
void *gdaspt; /* CSA subpool table */
Addr31 gdaspt; /* CSA subpool table */
int gdacsacv; /* amount of CSA converted to SQA */
/* OFFSET 0x90 */
void *gdasqa; /* start of SQA */
Addr31 gdasqa; /* start of SQA */
int gdasqasz; /* size of SQA */
void *gdaesqa; /* start of ESQA */
Addr31 gdaesqa; /* start of ESQA */
int gdaesqas; /* size of ESQA */
/* OFFSET 0xA0 */
void *gdapvt; /* start of low private */
Addr31 gdapvt; /* start of low private */
int gdapvtsz; /* low private size. Why 0? */
void *gdaepvt; /* start of high private */
Addr31 gdaepvt; /* start of high private */
int gdaepvts; /* size of high private */
/* OFFSET 0xB0 */
void *gdacpanc; /* VSM's SQA Cell pool */
Addr31 gdacpanc; /* VSM's SQA Cell pool */
int gdacpcnt; /* Free Cell Count in above */
void *gdafcadr; /* First free cell in above */
void *gdacpab; /* Address of Permanent CPAB (what is this?) table */
Addr31 gdafcadr; /* First free cell in above */
Addr31 gdacpab; /* Address of Permanent CPAB (what is this?) table */
/* OFFSET 0xC0 */
void *gdavr; /* address of global V=R area (PSPI) */
Addr31 gdavr; /* address of global V=R area (PSPI) */
int gdavrsz; /* size of above */
int gdavregs; /* default V=R region size */
void *gdawrka; /* global work area in nucleus */
Addr31 gdawrka; /* global work area in nucleus */
/* OFFSET 0xD0 */
char unmapped[0x310-0xD0];
} GDA;
Expand Down

0 comments on commit e8fe40c

Please sign in to comment.