1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
/*
* This file plugs a hole in Bionic, a derivation of the BSD standard C library
* code that was originally developed by Google for Android.
*
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include "gpsd_config.h"
#ifndef HAVE_GETSID
#include <unistd.h>
#include <sys/syscall.h>
/* This implementation is required for Android */
pid_t getsid(pid_t pid) {
return syscall(__NR_getsid, pid);
}
#endif /* HAVE_GETSID */
|