1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: init.c |
2 | * File: init.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: init.C,v 1.11 2003/12/17 09:00:35 pcg Exp $ |
4 | * $Id: init.C,v 1.12 2003/12/18 00:29:29 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
455 | R->ttymode = S_IRUSR | S_IWUSR | S_IWGRP | S_IWOTH; |
455 | R->ttymode = S_IRUSR | S_IWUSR | S_IWGRP | S_IWOTH; |
456 | R->ttygid = getgid (); |
456 | R->ttygid = getgid (); |
457 | } |
457 | } |
458 | |
458 | |
459 | #if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE) |
459 | #if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE) |
460 | R->locale = setlocale (LC_CTYPE, ""); |
460 | R->locale = strdup (setlocale (LC_CTYPE, "")); |
461 | #endif |
461 | #endif |
462 | |
462 | |
463 | /* |
463 | /* |
464 | * Close all unused file descriptors |
464 | * Close all unused file descriptors |
465 | * We don't want them, we don't need them. |
465 | * We don't want them, we don't need them. |