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

« back to all changes in this revision

Viewing changes to missing/flock.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:
23
23
#include <errno.h>
24
24
 
25
25
int
26
 
flock(fd, operation)
27
 
    int fd;
28
 
    int operation;
 
26
flock(int fd, int operation)
29
27
{
30
28
    struct flock lock;
31
29
 
90
88
# endif
91
89
 
92
90
int
93
 
flock(fd, operation)
94
 
    int fd;
95
 
    int operation;
 
91
flock(int fd, int operation)
96
92
{
97
93
    switch (operation) {
98
94
 
124
120
}
125
121
#elif !defined _WIN32
126
122
int
127
 
flock(fd, operation)
128
 
    int fd;
129
 
    int operation;
 
123
flock(int fd, int operation)
130
124
{
131
125
    rb_notimplement();
132
126
    return -1;