Changeset 3489e3b in rtems-libbsd for freebsd/sys/kern/sys_pipe.c


Ignore:
Timestamp:
Aug 22, 2018, 12:59:50 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 0ad342ae5f65d22eb6c914d58664d3b5d1d3d43f, 98d197895b6162050176ea18d66783a1dc216d82
Children:
1af372a
Parents:
3becda1
git-author:
Sebastian Huber <sebastian.huber@…> (08/22/18 12:59:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/21/18 08:29:41)
Message:

Update to FreeBSD head 2018-09-17

Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319.

Update #3472.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/sys_pipe.c

    r3becda1 r3489e3b  
    573573 */
    574574static int
    575 pipespace_new(cpipe, size)
    576         struct pipe *cpipe;
    577         int size;
     575pipespace_new(struct pipe *cpipe, int size)
    578576{
    579577        caddr_t buffer;
     
    647645 */
    648646static int
    649 pipespace(cpipe, size)
    650         struct pipe *cpipe;
    651         int size;
     647pipespace(struct pipe *cpipe, int size)
    652648{
    653649
     
    661657 */
    662658static __inline int
    663 pipelock(cpipe, catch)
    664         struct pipe *cpipe;
    665         int catch;
     659pipelock(struct pipe *cpipe, int catch)
    666660{
    667661        int error;
     
    684678 */
    685679static __inline void
    686 pipeunlock(cpipe)
    687         struct pipe *cpipe;
     680pipeunlock(struct pipe *cpipe)
    688681{
    689682
     
    699692
    700693void
    701 pipeselwakeup(cpipe)
    702         struct pipe *cpipe;
     694pipeselwakeup(struct pipe *cpipe)
    703695{
    704696
     
    721713 */
    722714static void
    723 pipe_create(pipe, backing)
    724         struct pipe *pipe;
    725         int backing;
     715pipe_create(struct pipe *pipe, int backing)
    726716{
    727717
     
    745735/* ARGSUSED */
    746736static int
    747 pipe_read(fp, uio, active_cred, flags, td)
    748         struct file *fp;
    749         struct uio *uio;
    750         struct ucred *active_cred;
    751         struct thread *td;
    752         int flags;
     737pipe_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
     738    int flags, struct thread *td)
    753739{
    754740        struct pipe *rpipe;
     
    996982 */
    997983static int
    998 pipe_build_write_buffer(wpipe, uio)
    999         struct pipe *wpipe;
    1000         struct uio *uio;
     984pipe_build_write_buffer(struct pipe *wpipe, struct uio *uio)
    1001985{
    1002986        u_int size;
     
    10421026 */
    10431027static void
    1044 pipe_destroy_write_buffer(wpipe)
    1045         struct pipe *wpipe;
     1028pipe_destroy_write_buffer(struct pipe *wpipe)
    10461029{
    10471030
     
    10571040 */
    10581041static void
    1059 pipe_clone_write_buffer(wpipe)
    1060         struct pipe *wpipe;
     1042pipe_clone_write_buffer(struct pipe *wpipe)
    10611043{
    10621044        struct uio uio;
     
    10971079 */
    10981080static int
    1099 pipe_direct_write(wpipe, uio)
    1100         struct pipe *wpipe;
    1101         struct uio *uio;
     1081pipe_direct_write(struct pipe *wpipe, struct uio *uio)
    11021082{
    11031083        int error;
     
    11981178
    11991179static int
    1200 pipe_write(fp, uio, active_cred, flags, td)
    1201         struct file *fp;
    1202         struct uio *uio;
    1203         struct ucred *active_cred;
    1204         struct thread *td;
    1205         int flags;
     1180pipe_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
     1181    int flags, struct thread *td)
    12061182{
    12071183        int error = 0;
     
    15541530#ifndef __rtems__
    15551531static int
    1556 pipe_truncate(fp, length, active_cred, td)
    1557         struct file *fp;
    1558         off_t length;
    1559         struct ucred *active_cred;
    1560         struct thread *td;
     1532pipe_truncate(struct file *fp, off_t length, struct ucred *active_cred,
     1533    struct thread *td)
    15611534{
    15621535        struct pipe *cpipe;
     
    15761549 */
    15771550static int
    1578 pipe_ioctl(fp, cmd, data, active_cred, td)
    1579         struct file *fp;
    1580         u_long cmd;
    1581         void *data;
    1582         struct ucred *active_cred;
    1583         struct thread *td;
     1551pipe_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred,
     1552    struct thread *td)
    15841553{
    15851554        struct pipe *mpipe = fp->f_data;
     
    16731642
    16741643static int
    1675 pipe_poll(fp, events, active_cred, td)
    1676         struct file *fp;
    1677         int events;
    1678         struct ucred *active_cred;
    1679         struct thread *td;
     1644pipe_poll(struct file *fp, int events, struct ucred *active_cred,
     1645    struct thread *td)
    16801646{
    16811647        struct pipe *rpipe;
     
    17871753#ifndef __rtems__
    17881754static int
    1789 pipe_stat(fp, ub, active_cred, td)
    1790         struct file *fp;
    1791         struct stat *ub;
    1792         struct ucred *active_cred;
    1793         struct thread *td;
     1755pipe_stat(struct file *fp, struct stat *ub, struct ucred *active_cred,
     1756    struct thread *td)
    17941757{
    17951758        struct pipe *pipe;
     
    18901853/* ARGSUSED */
    18911854static int
    1892 pipe_close(fp, td)
    1893         struct file *fp;
    1894         struct thread *td;
     1855pipe_close(struct file *fp, struct thread *td)
    18951856{
    18961857
     
    19231884
    19241885static int
    1925 pipe_chown(fp, uid, gid, active_cred, td)
    1926         struct file *fp;
    1927         uid_t uid;
    1928         gid_t gid;
    1929         struct ucred *active_cred;
    1930         struct thread *td;
     1886pipe_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
     1887    struct thread *td)
    19311888{
    19321889        struct pipe *cpipe;
     
    19581915
    19591916static void
    1960 pipe_free_kmem(cpipe)
    1961         struct pipe *cpipe;
     1917pipe_free_kmem(struct pipe *cpipe)
    19621918{
    19631919
     
    19891945 */
    19901946static void
    1991 pipeclose(cpipe)
    1992         struct pipe *cpipe;
     1947pipeclose(struct pipe *cpipe)
    19931948{
    19941949        struct pipepair *pp;
Note: See TracChangeset for help on using the changeset viewer.