Ticket #1699: aus_simple.dpatch

File aus_simple.dpatch, 2.2 KB (added by kolmodin, 7 years ago)

Simplest patch to support AUS

Line 
1
2New patches:
3
4[Support abstract unix sockets
5Lennart Kolmodin <[email protected]>**20080326212428] {
6hunk ./Network/Socket.hsc 204
7-import Foreign.Marshal.Array ( peekArray, pokeArray0 )
8+import Foreign.Marshal.Array ( peekArray, pokeArray, pokeArray0 )
9hunk ./Network/Socket.hsc 509
10-       pokeArray0 0 ((#ptr struct sockaddr_un, sun_path) p) pathC
11+            poker = case path of ('\0':_) -> pokeArray; _ -> pokeArray0 0
12+       poker ((#ptr struct sockaddr_un, sun_path) p) pathC
13hunk ./Network/Socket.hsc 576
14-sizeOfSockAddr (SockAddrUnix _)   = #const sizeof(struct sockaddr_un)
15+sizeOfSockAddr (SockAddrUnix path) =
16+    case path of
17+        '\0':_ -> (#const sizeof(sa_family_t)) + length path
18+        _      -> #const sizeof(struct sockaddr_un)
19}
20
21Context:
22
23[Type (opertaions -> operations)
24Ian Lynagh <[email protected]>**20080325201023
25 Spotted by larsv in trac #2173.
26]
27[Fix listenOn and getNameInfo to work on NetBSD
28Iku Iwasa <[email protected]>**20080216123753
29 Network.hs: specify addrSocketType=Stream for getAddrInfo in listen' function.
30 Network/Socket.hsc: poke length of struct sockaddr_* in pokeSockAddr function.
31]
32[FIX #1129: recvFrom blocks on Windows.
33Simon Marlow <[email protected]>**20080220161001
34 This is only a partial fix: it works with the threaded RTS now.
35 Realistically, I don't think we're going to get this working with the
36 non-threaded RTS any time soon.
37]
38[eliminate warning on Windows
39Simon Marlow <[email protected]>**20080220155706]
40[Catch up with changes to GHC.Handle.fdToHandle'
41Simon Marlow <[email protected]>*-20071121084901]
42[Catch up with changes to GHC.Handle.fdToHandle'
43Simon Marlow <[email protected]>**20071121084901]
44[fix test to work with non-GHC implementations
45Ross Paterson <[email protected]>**20071118173815]
46[add a signature (to avoid Hugs's non-standard handling of the MR)
47Ross Paterson <[email protected]>**20071118173728]
48[fix ifdef for Hugs
49Ross Paterson <[email protected]>**20071117195725]
50[Match *-solaris2*, not just *-solaris2, in configure.ac; fixes #1857
51Ian Lynagh <[email protected]>**20071110180525
52 Patch from Christian Maeder
53]
54[TAG GHC 6.8.1 release
55Ian Lynagh <[email protected]>**20071110011105]
56Patch bundle hash:
57760c86242f1b2b68e5ed995075d7edd3378875c2