Page MenuHomeFreeBSD

0.gangzta_gmail.com (Soumendra Ganguly)
User

Projects

User does not belong to any projects.

User Details

User Since
Dec 16 2020, 10:54 AM (174 w, 22 h)

Recent Activity

Jan 1 2021

0.gangzta_gmail.com updated the diff for D27787: tcgetwinsize(3): man page.

All the suggested updates have been made.

Jan 1 2021, 12:52 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Jan 1 2021, 12:47 PM

Dec 28 2020

0.gangzta_gmail.com updated the diff for D27787: tcgetwinsize(3): man page.

Made all the requested updates. Used terminology from https://standards.ieee.org/project/1003_1.html to justify writing .St -p1003.1 Base Specifications, Issue 8.

Dec 28 2020, 10:14 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Dec 28 2020, 9:57 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Dec 28 2020, 9:46 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Dec 28 2020, 9:40 PM
0.gangzta_gmail.com added a comment to D27787: tcgetwinsize(3): man page.
In D27787#621465, @kib wrote:

It is strange that the file is named tcsetwinsize.3 while the first function (correctly, by alphabetical order) is tcgetwinsize. I suggest to rename source to tcgetwinsize.3.

Dec 28 2020, 8:32 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Dec 28 2020, 8:29 PM
0.gangzta_gmail.com added a comment to D27787: tcgetwinsize(3): man page.

@kib All of your comments are very helpful. I am working on the improvements now.

Dec 28 2020, 8:27 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Dec 28 2020, 5:44 PM
0.gangzta_gmail.com updated the diff for D27787: tcgetwinsize(3): man page.

Added the fact that SIGWINCH is only sent to those processes in the foreground process group that have the terminal as their controlling terminal.

Dec 28 2020, 5:40 PM
0.gangzta_gmail.com updated the summary of D27787: tcgetwinsize(3): man page.
Dec 28 2020, 5:16 PM
0.gangzta_gmail.com added inline comments to D27787: tcgetwinsize(3): man page.
Dec 28 2020, 4:49 AM
0.gangzta_gmail.com updated the summary of D27787: tcgetwinsize(3): man page.
Dec 28 2020, 4:36 AM
0.gangzta_gmail.com retitled D27787: tcgetwinsize(3): man page from Manual page for the new tcgetwinsize() and tcsetwinsize() functions to tcgetwinsize(3): man page.
Dec 28 2020, 2:04 AM
0.gangzta_gmail.com updated the summary of D27787: tcgetwinsize(3): man page.
Dec 28 2020, 1:56 AM
0.gangzta_gmail.com updated the summary of D27787: tcgetwinsize(3): man page.
Dec 28 2020, 1:53 AM

Dec 27 2020

0.gangzta_gmail.com requested review of D27787: tcgetwinsize(3): man page.
Dec 27 2020, 8:26 PM

Dec 26 2020

0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

OTOH, while it's not a big deal anymore, I wonder why some of the other platforms such as NetBSD have chosen to not put the winsize materials under _NETBSD_SOURCE.

Dec 26 2020, 2:54 PM

Dec 25 2020

0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

@kib I will definitely keep my promise. May I please have until the end of the weekend to work on this? I might actually be done way before that, in which case I will submit it immediately after I am done.

Dec 25 2020, 9:21 PM

Dec 24 2020

0.gangzta_gmail.com added inline comments to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 24 2020, 11:33 PM
0.gangzta_gmail.com updated the diff for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Updated license.

Dec 24 2020, 11:28 PM
0.gangzta_gmail.com added inline comments to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 24 2020, 10:15 PM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
In D27650#620577, @kib wrote:

Surprisingly, it looks fine.

Dec 24 2020, 10:13 PM
0.gangzta_gmail.com updated the diff for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Removed SCCS line.

Dec 24 2020, 9:53 PM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

I have made the requested changes. Notes:

Dec 24 2020, 8:57 PM
0.gangzta_gmail.com updated the diff for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

The winsize related material should currently be under __BSD_VISIBLE guard.

Dec 24 2020, 8:47 PM
0.gangzta_gmail.com added inline comments to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 24 2020, 8:36 PM
0.gangzta_gmail.com added inline comments to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 24 2020, 8:08 PM

Dec 22 2020

0.gangzta_gmail.com added inline comments to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 22 2020, 1:34 AM
0.gangzta_gmail.com updated the diff for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Removes #include <sys/ttycom.h> from termios.h to prevent including unnecessary definitions in the posix header. Since struct winsize is still needed, it is now separately defined in sys/_termios.h with appropriate guards added.

Dec 22 2020, 1:33 AM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

@kib Beautiful! Thank you for the explanation :D I will do my homework right away.

Dec 22 2020, 12:36 AM

Dec 21 2020

0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

To further strengthen my argument, I would like to point out that since our tcgetwinsize() and tcsetwinsize() are using ioctl()+TIOCGWINSZ/TIOCSWINSZ to implement tcgetwinsize()/tcsetwinsze(), our struct winsize must be the same as the one being used by sys/ioctl.h, which is included from sys/ttycom.h. Also, like NetBSD, musl libc does not directly define struct winsize in their termios.h either; see https://git.musl-libc.org/cgit/musl/tree/include/termios.h; they are defining it by including <bits/alltypes.h>. Sorry for playing devil's advocate, but I want to make sure that I learn things right: why should we place the tcgetwinsize(), tcsetwinsize() declarations under __POSIX_VISIBLE when they are not a part of POSIX *yet*?

Dec 21 2020, 8:46 PM

Dec 19 2020

0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Straightforward question: Why does struct winsize have to be defined explicitly in this file even though struct termios does not? The CURRENT POSIX specs demand that struct termios be defined in termios.h. Someone please answer this. If this is answered, then I will not hesitate to explicitly define struct winsize here anymore, even though redundant definitions in various files instead of a central location [ sys/ttycom.h ] seems like bad practice.

Dec 19 2020, 6:44 PM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Another note: won't defining the same struct [ struct winsize ] in 2 different places [ sys/ttycom.h and termios.h ] just make it harder to maintain in case we need to modify the definition in the future? sys/ttycom.h already provides appropriate guards that will prevent multiple definition in case one's program includes both termios.h and sys/ioctl.h.

Dec 19 2020, 6:41 AM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

@yuripv I have added you to the reviewer list.

Dec 19 2020, 5:54 AM
0.gangzta_gmail.com added a reviewer for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h: yuripv.
Dec 19 2020, 5:53 AM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Sorry here is the exact link to the current termios.h POSIX specification: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html. Please note the line "The <termios.h> header shall define the termios structure, which shall include at least the following members..."; then note that the FreeBSD termios.h does not directly define struct termios; instead, it imports the definition from #include <sys/_termios.h>.

Dec 19 2020, 5:51 AM
0.gangzta_gmail.com added inline comments to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 19 2020, 5:46 AM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

@kib I moved the patches here from Bugzilla. I have also updated them. Can you please take another look at them?

Dec 19 2020, 4:33 AM

Dec 18 2020

0.gangzta_gmail.com set the repository for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h to rS FreeBSD src repository - subversion.
Dec 18 2020, 7:41 AM

Dec 17 2020

0.gangzta_gmail.com updated the diff for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

Restored empty lines in tcgetattr() and introduced empty lines in tcgetwinsize(), tcsetwinsize() as suggested by @yuripv [ style(9) ].

Dec 17 2020, 7:49 AM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 17 2020, 7:15 AM
0.gangzta_gmail.com updated the summary of D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 17 2020, 5:21 AM
0.gangzta_gmail.com added a reviewer for D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h: oliver.pntr-gmail.com.
Dec 17 2020, 5:18 AM
0.gangzta_gmail.com added a comment to D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.

sys/ttycom.h contains the definition of struct winsize needed for tcgetwinsize() and tcsetwinsize(); I have moved it to the protected block right before the tcgetwinsize() and the tcsetwinsize() declarations. Please compare that with the NetBSD header: https://github.com/NetBSD/src/blob/trunk/sys/sys/termios.h. In fact, both the NetBSD and the OpenBSD versions of termios.h only have sys/ttydefaults.h in the last block after the #endif /* !_TERMIOS_H_ */:

Dec 17 2020, 5:15 AM
0.gangzta_gmail.com requested review of D27650: Add tcgetwinsize() and tcsetwinsize() to termios.h.
Dec 17 2020, 5:05 AM