Changeset 2580 for neercs/trunk
- Timestamp:
- Jul 23, 2008, 11:52:54 PM (13 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/lock.c
r2538 r2580 25 25 26 26 #if defined USE_LOCK 27 #if defined(__APPLE__) 28 # include <pam/pam_appl.h> 29 # include <pam/pam_misc.h> 30 #else 27 31 # include <security/pam_appl.h> 28 32 # include <security/pam_misc.h> 33 #endif 29 34 # include <pwd.h> 30 35 #endif -
neercs/trunk/src/mytrace.c
r2516 r2580 34 34 #include "mytrace.h" 35 35 36 #if defined(__APPLE__) 37 38 struct mytrace* mytrace_attach(long int pid) 39 { 40 errno = ENOSYS; 41 return NULL; 42 } 43 44 struct mytrace* mytrace_fork(struct mytrace *t) 45 { 46 errno = ENOSYS; 47 return NULL; 48 } 49 50 int mytrace_detach(struct mytrace *t) 51 { 52 errno = ENOSYS; 53 return -1; 54 } 55 56 long mytrace_getpid(struct mytrace *t) 57 { 58 errno = ENOSYS; 59 return -1; 60 } 61 62 int mytrace_open(struct mytrace *t, char const *path, int mode) 63 { 64 errno = ENOSYS; 65 return -1; 66 } 67 68 int mytrace_write(struct mytrace *t, int fd, char const *data, size_t len) 69 { 70 errno = ENOSYS; 71 return -1; 72 } 73 74 int mytrace_close(struct mytrace *t, int fd) 75 { 76 errno = ENOSYS; 77 return -1; 78 } 79 80 int mytrace_dup2(struct mytrace *t, int oldfd, int newfd) 81 { 82 errno = ENOSYS; 83 return -1; 84 } 85 86 int mytrace_setpgid(struct mytrace *t, long pid, long pgid) 87 { 88 errno = ENOSYS; 89 return -1; 90 } 91 92 int mytrace_setsid(struct mytrace *t) 93 { 94 errno = ENOSYS; 95 return -1; 96 } 97 98 int mytrace_kill(struct mytrace *t, long pid, int sig) 99 { 100 errno = ENOSYS; 101 return -1; 102 } 103 104 int mytrace_exit(struct mytrace *t, int status) 105 { 106 errno = ENOSYS; 107 return -1; 108 } 109 110 #else 111 36 112 #if defined USE_GRAB 37 113 static int memcpy_from_target(struct mytrace *t, … … 603 679 #endif /* USE_GRAB */ 604 680 681 #endif /* ! defined(__APPLE__) */
Note: See TracChangeset
for help on using the changeset viewer.