tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: refine of the GSOC project

On May 11, 10:37pm, (Charles Cui) wrote:
-- Subject: Re: refine of the GSOC project

|    I got the new list post below. Note that the second list is build with
| -D_NETBSD_SOURCE -lpthread -lrt -lm
|    and use netbsd-current, and disable compiler warnings. There are a lot
| of errors that caused by linker flags,
| compiler flags and kernel versions, but I guess we are not interested in
| them. Also, I comment how do I fix them
| for each of those errors. Let me know if you have questions.
| *Errors that caused by feature missing*
| timers:
|    _SC_CPUTIME  (freebsd)
|    _SC_THREAD_CPUTIME (freebsd)
|    _SC_DELAYTIMER_MAX (freebsd)
| pthreads:
|    PTHREAD_PRIO_INHERIT  (freebsd)
|    PTHREAD_PRIO_NONE   (freebsd)
|    PTHREAD_PRIO_PROTECT  (freebsd)
|    PTHREAD_STACK_MIN  (freebsd)
|    pthread_barrierattr_getpshared  (freebsd)
|    pthread_barrierattr_setpshared  (freebsd)
|    pthread_mutexattr_setpshared  (freebsd)
|    pthread_mutexattr_getpshared  (freebsd)
|    pthread_condattr_setpshared (freebsd)
|    pthread_condattr_getpshared (freebsd)
|    pthread_condattr_getclock (freebsd)
|    pthread_mutexattr_getprioceiling  (freebsd)
|    pthread_mutexattr_setprioceiling  (freebsd)
|    pthread_mutexattr_getprotocol (freebsd)
|    pthread_mutexattr_setprotocol  (freebsd)
|    pthread_rwlockattr_getpshared (freebsd)
|    pthread_rwlockattr_setpshared  (freebsd)
|    pthread_mutex_getprioceiling  (freebsd)
|    pthread_mutex_timedlock (freebsd)
| scheduler:
|     SCHED_SPORADIC (linux)
| signals:
|     SIGPOLL (freebsd)
|     SIGRTMIN (provided, but need to expose to userland)
|     SIGRTMAX (provided, but need to expose to userland)
|     _SC_REALTIME_SIGNALS (freebsd)
|     _SC_SIGQUEUE_MAX  (freebsd)
|     bsd_signal (linux)
| mmap:
|     struct posix_typed_mem_info (linux)
|     posix_mem_offset (linux)
|     posix_typed_mem_get_info (linux)
|     posix_typed_mem_open (linux)
| semaphore
|     _SC_SEM_NSEMS_MAX  (freebsd)
| *Errors that caused by usage*
| (build with -D_NETBSD_SOURCE -lpthread -lrt -lm and disable compiler
| warnings and use current)
| struct rlimit (inlcude sys/resource.h)
| setpgrp (netbsd needs to pass 2 parameters, but other systems, like like
| linux does not)
| struct sigaction sa (include signal.h)
| sigfillset(&sa.sa_mask) (include signal.h)
| sigaction(include signal.h)
| SIGBUS (include signal.h)
| sigfillset (include signal.h)
| SIGSEGV (include signal.h)
| PTHREAD_ONCE_INIT (need force the type to be pthread_once_t)
| cpu_set_t (netbsd has its own implementation)
| CPU_ZERO (netbsd has its own implementation)
| CPU_SETSIZE (netbsd has its own implementation)
| sched_setaffinity (netbsd has its own implementation)
| pthread_setaffinity_np (caused by wrong parameters passed in, convert
| parameter to be netbsd specific)
| features.h (no features.h, actually netbsd does not need this file to be
| correct, just removed)
| SIGNAL (depends on macro which is not defined)
| SIG_INVALID (depends on macro which is not defined)
| SIGTOTEST  (depends on macro which is not defined)

Great, my diffs already cover some of them, is that list with the patches
applied? As for the compiler warnings, we should fix them.


Home | Main Index | Thread Index | Old Index