1/* 2 * Copyright (c) 1998 Mark Newton. All rights reserved. 3 * Copyright (c) 1994, 1996 Christos Zoulas. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31/* 32 * Pretend that we have streams... 33 * Yes, this is gross. 34 * 35 * ToDo: The state machine for getmsg needs re-thinking 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_stream.c 130640 2004-06-17 17:16:53Z phk $"); |
40 41#define COMPAT_43 1 42 43#include "opt_mac.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/fcntl.h> --- 1820 unchanged lines hidden (view full) --- 1868 if (ctl.len == 8) { 1869 /* We are doing an accept; succeed */ 1870 DPRINTF(("putmsg: Do nothing\n")); 1871 *retval = 0; 1872 return 0; 1873 } 1874 else { 1875 /* Maybe we've been given a device/inode pair */ |
1876 dev_t *dev = SVR4_ADDROF(&sc); |
1877 ino_t *ino = (ino_t *) &dev[1]; 1878 skp = svr4_find_socket(td, fp, *dev, *ino); 1879 if (skp == NULL) { 1880 skp = &saun; 1881 /* I guess we have it by name */ 1882 netaddr_to_sockaddr_un(skp, &sc); 1883 } 1884 sasize = sizeof(saun); --- 464 unchanged lines hidden --- |