diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-08-12 19:53:33 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-08-12 19:53:33 +0000 |
| commit | 00d3c51669493b08e59a687ce7d89603bd68533f (patch) | |
| tree | fe13f43ac3587f0bb9db8f9a09c5b8c0967a4934 /sys/compat/linux | |
| parent | 936aa6b4431a19e9a58192be8fc606bd6bd20909 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_file.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 49b054f3f74a..ded59f981553 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.26 1999/05/11 19:54:19 phk Exp $ + * $Id: linux_file.c,v 1.27 1999/07/18 14:31:01 phk Exp $ */ #include "opt_compat.h" @@ -827,3 +827,22 @@ linux_truncate(struct proc *p, struct linux_truncate_args *args) return truncate(p, &bsd); } +int +linux_link(struct proc *p, struct linux_link_args *args) +{ + struct link_args bsd; + caddr_t sg; + + sg = stackgap_init(); + CHECKALTEXIST(p, &sg, args->path); + CHECKALTCREAT(p, &sg, args->to); + +#ifdef DEBUG + printf("Linux-emul(%d): link(%s, %s)\n", p->p_pid, args->path, args->to); +#endif + + bsd.path = args->path; + bsd.link = args->to; + + return link(p, &bsd); +} |
