/[hurd]/hurd/libthreads/lockfile.c
ViewVC logotype

Diff of /hurd/libthreads/lockfile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by roland, Fri Aug 24 03:35:30 2001 UTC revision 1.4 by roland, Tue May 28 23:19:53 2002 UTC
# Line 1  Line 1 
1  /* lockfile - Handle locking and unlocking of streams.  Hurd cthreads version.  /* lockfile - Handle locking and unlocking of streams.  Hurd cthreads version.
2     Copyright (C) 2000,01 Free Software Foundation, Inc.     Copyright (C) 2000,01,02 Free Software Foundation, Inc.
3     This file is part of the GNU C Library.     This file is part of the GNU C Library.
4    
5     The GNU C Library is free software; you can redistribute it and/or     The GNU C Library is free software; you can redistribute it and/or
# Line 41  _cthreads_ftrylockfile (_IO_FILE *fp) Line 41  _cthreads_ftrylockfile (_IO_FILE *fp)
41    return __libc_lock_trylock_recursive (*fp->_lock);    return __libc_lock_trylock_recursive (*fp->_lock);
42  }  }
43    
   
44  # undef         _IO_flockfile  # undef         _IO_flockfile
45  # undef         _IO_funlockfile  # undef         _IO_funlockfile
46  # undef         _IO_ftrylockfile  # undef         _IO_ftrylockfile
 # pragma weak   _IO_flockfile   = _cthreads_flockfile  
 # pragma weak   _IO_funlockfile = _cthreads_funlockfile  
 # pragma weak   _IO_ftrylockfile= _cthreads_ftrylockfile  
   
47  # undef         flockfile  # undef         flockfile
48  # undef         funlockfile  # undef         funlockfile
49  # undef         ftrylockfile  # undef         ftrylockfile
 # pragma weak   flockfile       = _cthreads_flockfile  
 # pragma weak   funlockfile     = _cthreads_funlockfile  
 # pragma weak   ftrylockfile    = _cthreads_ftrylockfile  
50    
51    void _IO_flockfile (_IO_FILE *)
52         __attribute__ ((alias ("_cthreads_flockfile")));
53    void _IO_funlockfile (_IO_FILE *)
54         __attribute__ ((alias ("_cthreads_funlockfile")));
55    int _IO_ftrylockfile (_IO_FILE *)
56         __attribute__ ((alias ("_cthreads_ftrylockfile")));
57    
58    void flockfile (_IO_FILE *)
59         __attribute__ ((alias ("_cthreads_flockfile")));
60    void funlockfile (_IO_FILE *)
61         __attribute__ ((alias ("_cthreads_funlockfile")));
62    int ftrylockfile (_IO_FILE *)
63         __attribute__ ((alias ("_cthreads_ftrylockfile")));
64    
65  #endif /* _STDIO_USES_IOSTREAM */  #endif /* _STDIO_USES_IOSTREAM */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26