1 |
/* Ftp connection management |
/* Ftp connection management |
2 |
|
|
3 |
Copyright (C) 1997 Free Software Foundation, Inc. |
Copyright (C) 1997,2002 Free Software Foundation, Inc. |
4 |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
19 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ |
20 |
|
|
21 |
#include <assert.h> |
#include <assert.h> |
22 |
|
#include <stdint.h> |
23 |
|
|
24 |
#include "ftpfs.h" |
#include "ftpfs.h" |
25 |
|
|
26 |
/* A particular connection. */ |
/* A particular connection. */ |
27 |
struct ftpfs_conn |
struct ftpfs_conn |
28 |
{ |
{ |
29 |
struct ftp_conn *conn; |
struct ftp_conn *conn; |
30 |
struct ftpfs_conn *next; |
struct ftpfs_conn *next; |
70 |
} |
} |
71 |
|
|
72 |
/* For debugging purposes, give each connection a unique integer id. */ |
/* For debugging purposes, give each connection a unique integer id. */ |
73 |
fsc->conn->hook = (void *)conn_id++; |
fsc->conn->hook = (void *)(uintptr_t)conn_id++; |
74 |
} |
} |
75 |
|
|
76 |
spin_lock (&fs->conn_lock); |
spin_lock (&fs->conn_lock); |