Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/read.c
Show All 30 Lines | |||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/syscall.h> | #include <sys/syscall.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <ssp/ssp.h> | |||||
imp: you only changed an include...
and nothing else...
So what does this accomplish?
| |||||
#include "libc_private.h" | #include "libc_private.h" | ||||
__weak_reference(__sys_read, __read); | __weak_reference(__sys_read, __read); | ||||
#pragma weak read | #pragma weak read | ||||
ssize_t | ssize_t | ||||
read(int fd, void *buf, size_t nbytes) | read(int fd, void *buf, size_t nbytes) | ||||
{ | { | ||||
return (((ssize_t (*)(int, void *, size_t)) | return (((ssize_t (*)(int, void *, size_t)) | ||||
__libc_interposing[INTERPOS_read])(fd, buf, nbytes)); | __libc_interposing[INTERPOS_read])(fd, buf, nbytes)); | ||||
} | } |
you only changed an include...
and nothing else...
So what does this accomplish?