• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <unistd.h>
2 #include "syscall.h"
3 #ifdef OHOS_FDTRACK_HOOK_ENABLE
4 #include "musl_fdtrack_hook.h"
5 #endif
6 
dup(int fd)7 int dup(int fd)
8 {
9 #ifdef OHOS_FDTRACK_HOOK_ENABLE
10 	return FDTRACK_START_HOOK(syscall(SYS_dup, fd));
11 #endif
12 	return syscall(SYS_dup, fd);
13 }
14