Changeset 2580 for neercs/trunk


Ignore:
Timestamp:
Jul 23, 2008, 11:52:54 PM (12 years ago)
Author:
bsittler
Message:

OS X compilation fixes

Location:
neercs/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/lock.c

    r2538 r2580  
    2525
    2626#if defined USE_LOCK
     27#if defined(__APPLE__)
     28#   include <pam/pam_appl.h>
     29#   include <pam/pam_misc.h>
     30#else
    2731#   include <security/pam_appl.h>
    2832#   include <security/pam_misc.h>
     33#endif
    2934#   include <pwd.h>
    3035#endif
  • neercs/trunk/src/mytrace.c

    r2516 r2580  
    3434#include "mytrace.h"
    3535
     36#if defined(__APPLE__)
     37
     38struct mytrace* mytrace_attach(long int pid)
     39{
     40    errno = ENOSYS;
     41    return NULL;
     42}
     43
     44struct mytrace* mytrace_fork(struct mytrace *t)
     45{
     46    errno = ENOSYS;
     47    return NULL;
     48}
     49
     50int mytrace_detach(struct mytrace *t)
     51{
     52    errno = ENOSYS;
     53    return -1;
     54}
     55
     56long mytrace_getpid(struct mytrace *t)
     57{
     58    errno = ENOSYS;
     59    return -1;
     60}
     61
     62int mytrace_open(struct mytrace *t, char const *path, int mode)
     63{
     64    errno = ENOSYS;
     65    return -1;
     66}
     67
     68int mytrace_write(struct mytrace *t, int fd, char const *data, size_t len)
     69{
     70    errno = ENOSYS;
     71    return -1;
     72}
     73
     74int mytrace_close(struct mytrace *t, int fd)
     75{
     76    errno = ENOSYS;
     77    return -1;
     78}
     79
     80int mytrace_dup2(struct mytrace *t, int oldfd, int newfd)
     81{
     82    errno = ENOSYS;
     83    return -1;
     84}
     85
     86int mytrace_setpgid(struct mytrace *t, long pid, long pgid)
     87{
     88    errno = ENOSYS;
     89    return -1;
     90}
     91
     92int mytrace_setsid(struct mytrace *t)
     93{
     94    errno = ENOSYS;
     95    return -1;
     96}
     97
     98int mytrace_kill(struct mytrace *t, long pid, int sig)
     99{
     100    errno = ENOSYS;
     101    return -1;
     102}
     103
     104int mytrace_exit(struct mytrace *t, int status)
     105{
     106    errno = ENOSYS;
     107    return -1;
     108}
     109
     110#else
     111
    36112#if defined USE_GRAB
    37113static int memcpy_from_target(struct mytrace *t,
     
    603679#endif /* USE_GRAB */
    604680
     681#endif /* ! defined(__APPLE__) */
Note: See TracChangeset for help on using the changeset viewer.