source: rtems/cpukit/libcsupport/src/tcgetpgrp.c @ 1c6926c1

5
Last change on this file since 1c6926c1 was f97536d, checked in by Sebastian Huber <sebastian.huber@…>, on 10/16/15 at 06:21:48

basdefs.h: Add and use RTEMS_UNUSED

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