* sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
defaultdir variable instead of "/var/shm" everywhere.
(defaultdir): Change to /dev/shm/.
2000-06-08 Ulrich Drepper <drepper@redhat.com>
- * sysdeps/unix/sysv/linux/shm_open.c (defaultdir): Change to /dev/shm/.
+ * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
+ defaultdir variable instead of "/var/shm" everywhere.
+ (defaultdir): Change to /dev/shm/.
2000-06-08 Greg McGary <greg@mcgary.org>
2000-06-08 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/pthread/tst-timer.c (main): Rewrite initializers to
+ avoid warnings.
+
* sysdeps/pthread/timer_routines.c (__timer_thread_queue_timer):
Be prepared for empty timer list.
/* The canonical place is /var/shm. This is at least what the
documentation tells everybody to do. */
- if (__statfs ("/var/shm", &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC)
+ if (__statfs (defaultdir, &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC)
{
/* It is in the normal place. */
mountpoint.dir = (char *) defaultdir;
- mountpoint.dirlen = strlen ("/var/shm/");
+ mountpoint.dirlen = sizeof (defaultdir) - 1;
return;
}