uipc_mqueue.c (205325) | uipc_mqueue.c (205792) |
---|---|
1/*- 2 * Copyright (c) 2005 David Xu <davidxu@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 29 unchanged lines hidden (view full) --- 38 * times at different mount points but shows same contents. 39 * 40 * 2) Standard POSIX message queue API. The syscalls do not use vfs layer, 41 * but directly operate on internal data structure, this allows user to 42 * use the IPC facility without having to mount mqueue file system. 43 */ 44 45#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 David Xu <davidxu@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 29 unchanged lines hidden (view full) --- 38 * times at different mount points but shows same contents. 39 * 40 * 2) Standard POSIX message queue API. The syscalls do not use vfs layer, 41 * but directly operate on internal data structure, this allows user to 42 * use the IPC facility without having to mount mqueue file system. 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/kern/uipc_mqueue.c 205325 2010-03-19 11:10:24Z kib $"); | 46__FBSDID("$FreeBSD: head/sys/kern/uipc_mqueue.c 205792 2010-03-28 13:13:22Z ed $"); |
47 48#include "opt_compat.h" 49 50#include <sys/param.h> 51#include <sys/kernel.h> 52#include <sys/systm.h> 53#include <sys/limits.h> 54#include <sys/buf.h> --- 2387 unchanged lines hidden (view full) --- 2442 2443static int 2444mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, 2445 struct thread *td) 2446{ 2447 struct mqfs_node *pn = fp->f_data; 2448 2449 bzero(st, sizeof *st); | 47 48#include "opt_compat.h" 49 50#include <sys/param.h> 51#include <sys/kernel.h> 52#include <sys/systm.h> 53#include <sys/limits.h> 54#include <sys/buf.h> --- 2387 unchanged lines hidden (view full) --- 2442 2443static int 2444mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, 2445 struct thread *td) 2446{ 2447 struct mqfs_node *pn = fp->f_data; 2448 2449 bzero(st, sizeof *st); |
2450 st->st_atimespec = pn->mn_atime; 2451 st->st_mtimespec = pn->mn_mtime; 2452 st->st_ctimespec = pn->mn_ctime; 2453 st->st_birthtimespec = pn->mn_birth; | 2450 st->st_atim = pn->mn_atime; 2451 st->st_mtim = pn->mn_mtime; 2452 st->st_ctim = pn->mn_ctime; 2453 st->st_birthtim = pn->mn_birth; |
2454 st->st_uid = pn->mn_uid; 2455 st->st_gid = pn->mn_gid; 2456 st->st_mode = S_IFIFO | pn->mn_mode; 2457 return (0); 2458} 2459 2460static int 2461mqf_kqfilter(struct file *fp, struct knote *kn) --- 302 unchanged lines hidden --- | 2454 st->st_uid = pn->mn_uid; 2455 st->st_gid = pn->mn_gid; 2456 st->st_mode = S_IFIFO | pn->mn_mode; 2457 return (0); 2458} 2459 2460static int 2461mqf_kqfilter(struct file *fp, struct knote *kn) --- 302 unchanged lines hidden --- |