recv.c (d7847a8d351436a4654bd2c746bc9c04401160ee) | recv.c (7dd9070e4425a1c2e2418694fd632425a283d558) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1988, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 28 unchanged lines hidden (view full) --- 37 38ssize_t 39recv(int s, void *buf, size_t len, int flags) 40{ 41 /* 42 * POSIX says recv() shall be a cancellation point, so call the 43 * cancellation-enabled recvfrom() and not _recvfrom(). 44 */ | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1988, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 28 unchanged lines hidden (view full) --- 37 38ssize_t 39recv(int s, void *buf, size_t len, int flags) 40{ 41 /* 42 * POSIX says recv() shall be a cancellation point, so call the 43 * cancellation-enabled recvfrom() and not _recvfrom(). 44 */ |
45 return (((ssize_t (*)(int, void *, size_t, int, 46 struct sockaddr *, socklen_t *)) 47 *(__libc_interposing_slot(INTERPOS_recvfrom))) 48 (s, buf, len, flags, NULL, NULL)); | 45 return (INTERPOS_SYS(recvfrom, s, buf, len, flags, NULL, NULL)); |
49} | 46} |