Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- H390-MVS
- Messages
Search
BREXX/370 V2R2M0 Production Announcement
Howdy, dear MVS-lovers,
?
Today I would like to inform you that we have finally released BREXX/370 V2R2M0.?
At this point, we would like to thank?
?
Juergen, Greg, Jason, Wally, Daniel and Moshe for their support.
?
The installation archive can be downloaded using the following link:
?
?
Of course, we would be happy about any feedback and?
ideas for the next version(s).
?
Mike |
Re: Hi - testing
Robert Schreiber
toggle quoted message
Show quoted text
Hi Mike lest see if this works |
Odd C compiler behavior on P390
For some reason argv[1] does not get converted properly. If the folder name is hard coded the program works fine. If its value is passed through argv[1] the program will display the value correctly, but no directory list gets retrieved. This issue happens on MVS, but if the code is compiled on Linux it works as expected. Here is the code.? The code below will only display the contents of / but not its branches. ?#define _POSIX_SOURCE ?#include <dirent.h> ?#include <errno.h> ?#include <sys/stat.h> ?#include <sys/types.h> ?#undef _POSIX_SOURCE ?#include<stdlib.h> ?#include<stdio.h> ?#include <unistd.h> ?#include <string.h> ?#include <sys/wait.h> ?#include <grp.h> ?#include <pwd.h> ?#include <time.h> ?#include <fcntl.h> ??? char path[1024]; void listdir(const char *name, int indent,char *other) { ??? DIR *dir; ??? struct dirent *entry; ?????????????????????????????????????????????????????? ? ??? puts(name); ??? if (!(dir = opendir(name))) ??????? return; ?????????????????????????????????????????????????????? ? ??? while ((entry = readdir(dir)) != NULL) { ??????????? printf("%*s- %s\n", indent, "", entry->d_name); ??????? if (strcmp(entry->d_name, other) == 0) ??????? listdir(entry->d_name,? 2,other); ??? } ??? closedir(dir); } ???????????????????????????????????????????????????????????????? ? int main(int argc, char **argv) ??? { ???? char* foldername = "."; ???? puts(argv[1]); ???? listdir(foldername, 0,argv[1]); ???? return 0; ?} |
5201 - 5213 of 5213
to navigate to use esc to dismiss