source: rtems/cpukit/libcsupport/src/tcgetpgrp.c @ 92119ed

4.115
Last change on this file since 92119ed was ead79688, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/15/09 at 05:32:49

2009-09-15 Ralf Corsépius <ralf.corsepius@…>

PR 1441/cpukit

  • libcsupport/src/tcgetprgrp.c: Remove.
  • libcsupport/src/tcgetpgrp.c: New (Renamed from libcsupport/src/tcgetprgrp.c).
  • libcsupport/Makefile.am: Add libcsupport/src/tcgetpgrp.c. Remove libcsupport/src/tcgetprgrp.c.
  • Property mode set to 100644
File size: 564 bytes
Line 
1/*
2 *  tcgetprgrp() - POSIX 1003.1b 7.2.3 - Get Foreground Process Group ID
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#if defined(RTEMS_NEWLIB) && !defined(HAVE_TCGETPGRP)
19
20#include <sys/types.h>
21#include <unistd.h>
22
23pid_t tcgetpgrp(int fd __attribute__((unused)))
24{
25  return getpid();
26}
27
28#endif
Note: See TracBrowser for help on using the repository browser.