~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to missing/dup2.c

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define BADEXIT -1
25
25
 
26
26
int
27
 
dup2(fd1, fd2)
28
 
int fd1, fd2;
 
27
dup2(int fd1, int fd2)
29
28
{
30
29
#if defined(HAVE_FCNTL) && defined(F_DUPFD)
31
30
        if (fd1 != fd2) {