git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Propose a change in open for passing in the file type.
@ 2023-12-12 14:46 Haritha D
  2023-12-12 17:29 ` Torsten Bögershausen
  2023-12-13  4:17 ` Đoàn Trần Công Danh
  0 siblings, 2 replies; 4+ messages in thread
From: Haritha D @ 2023-12-12 14:46 UTC (permalink / raw)
  To: git@vger.kernel.org

Hi Everyone,
 
Am working on porting git to z/OS. For reference, the pull request am working on https://github.com/git/git/pull/1537.
 
On z/OS there is a notion of file tag attributes. Files can be tagged as binary, ASCII, UTF8, EBCDIC, etc. z/OS uses these attributes to determine if auto-conversion is necessary. It was recommended in PR that we add logic directly to xopen . In order for me to do this in xopen , I have to pass an extra parameter to xopen that specifies the file type. 
 
Ex: 
xopen(output_file, O_CREAT | O_WRONLY | O_TRUNC, 0666);
 
To :
xopen(output_file, O_CREAT | O_WRONLY | O_TRUNC, 0666, BINARY);
 
BINARY: would be an enum value.
 
Would this be okay to do? Or are there other recommendations?
 
Best regards
Haritha



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-16 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 14:46 Propose a change in open for passing in the file type Haritha D
2023-12-12 17:29 ` Torsten Bögershausen
2023-12-13  4:17 ` Đoàn Trần Công Danh
2023-12-16 13:28   ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).