uipc_mqueue.c (afde2b65938c86eaf4906998b5e9641ef5db62dc) | uipc_mqueue.c (510ea843baf66ae678ca6ddbbbca9816177be5b0) |
---|---|
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 --- 2433 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); | 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 --- 2433 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 --- |