jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

add support for AF_UNIX SOCK_DGRAM #269

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is needed to write to syslog (/dev/log).

Just try to open socket as SOCK_STREAM, and if it fail then try again as 
SOCK_DGRAM.

Original issue reported on code.google.com by powerman...@gmail.com on 20 Aug 2011 at 11:07

Attachments:

GoogleCodeExporter commented 9 years ago
People adding things to Unix later never really quite understood 
device-independent IO, did they?

Original comment by Charles....@gmail.com on 20 Aug 2011 at 3:54

GoogleCodeExporter commented 9 years ago
i've also included a change to allow implementation of osdisksize, so that stat 
of a (host) device file representing a disk can return its length (size). 
usually the host systems require the file to be open for reading, so it's not 
as helpful as i'd like, but does allow disk/fdisk and disk/prep to run on (say) 
user-writable usb drives.

emu/DragonFly/devfs.c
emu/FreeBSD/devfs.c
emu/Hp/devfs.c
emu/Irix/devfs.c
emu/Linux/devfs.c
emu/MacOSX/devfs.c
emu/NetBSD/devfs.c
emu/OpenBSD/devfs.c
emu/Solaris/devfs.c
emu/Unixware/devfs.c
emu/port/devfs-posix.c
include/version.h
committed changeset 518:6cf8bf8ff236

Original comment by Charles....@gmail.com on 20 Aug 2011 at 6:05