Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/c-libs/posix-tty/tcsetpgrp.c
ViewVC logotype

Annotation of /sml/trunk/src/runtime/c-libs/posix-tty/tcsetpgrp.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download) (as text)

1 : monnier 249 /* tcsetpgrp.c
2 :     *
3 :     * COPYRIGHT (c) 1995 by AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #include "ml-unixdep.h"
7 :     #include <termios.h>
8 :     #include "ml-base.h"
9 :     #include "ml-values.h"
10 :     #include "ml-objects.h"
11 :     #include "ml-c.h"
12 :     #include "cfun-proto-list.h"
13 :    
14 :     /* _ml_P_TTY_tcsetpgrp : int * int -> unit
15 :     *
16 :     * Set foreground process group id of tty.
17 :     */
18 :     ml_val_t _ml_P_TTY_tcsetpgrp (ml_state_t *msp, ml_val_t arg)
19 :     {
20 :     int sts;
21 :    
22 :     sts = tcsetpgrp(REC_SELINT(arg, 0),REC_SELINT(arg, 1));
23 :    
24 :     CHK_RETURN_UNIT(msp, sts)
25 :    
26 :     } /* end of _ml_P_TTY_tcsetpgrp */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0