Date: Thu, 7 May 2009 13:49:48 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen Makefile.inc Symbol.map tcgetsid.3 tcsetsid.3 termios.c src/lib/libutil login_tty.c src/sys/sys termios.h Message-ID: <200905071409.n47E9aC9016681@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-05-07 13:49:48 UTC FreeBSD src repository Modified files: lib/libc/gen Makefile.inc Symbol.map tcgetsid.3 termios.c lib/libutil login_tty.c sys/sys termios.h Added files: lib/libc/gen tcsetsid.3 Log: SVN rev 191882 on 2009-05-07 13:49:48Z by ed Add tcsetsid(3). The entire world seems to use the non-standard TIOCSCTTY ioctl to make a TTY a controlling terminal of a session. Even though tcsetsid(3) is also non-standard, I think it's a lot better to use in our own source code, mainly because it's similar to tcsetpgrp(), tcgetpgrp() and tcgetsid(). I stole the idea from QNX. They do it the other way around; their TIOCSCTTY is just a wrapper around tcsetsid(). tcsetsid() then calls into an IPC framework. Revision Changes Path 1.143 +2 -2 src/lib/libc/gen/Makefile.inc 1.20 +1 -0 src/lib/libc/gen/Symbol.map 1.2 +2 -1 src/lib/libc/gen/tcgetsid.3 1.1 +92 -0 src/lib/libc/gen/tcsetsid.3 (new) 1.16 +12 -0 src/lib/libc/gen/termios.c 1.11 +7 -3 src/lib/libutil/login_tty.c 1.27 +2 -1 src/sys/sys/termios.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905071409.n47E9aC9016681>