Changeset 5f2566b in rtems
- Timestamp:
- 11/02/99 16:27:53 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 3251b55
- Parents:
- 063e4950
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libcsupport/src/fcntl.c
r063e4950 r5f2566b 31 31 int fd2; 32 32 int flags; 33 int mask; 33 34 int ret = 0; 34 35 … … 93 94 case F_SETFL: 94 95 flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 96 mask = LIBIO_FLAGS_NO_DELAY | LIBIO_FLAGS_APPEND; 95 97 96 98 /* … … 98 100 */ 99 101 100 iop->flags = (iop->flags & ~(O_APPEND | O_NONBLOCK)) | 101 (flags & (O_APPEND | O_NONBLOCK)); 102 iop->flags = (iop->flags & ~mask) | (flags & mask); 102 103 break; 103 104 -
c/src/lib/libc/fcntl.c
r063e4950 r5f2566b 31 31 int fd2; 32 32 int flags; 33 int mask; 33 34 int ret = 0; 34 35 … … 93 94 case F_SETFL: 94 95 flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 96 mask = LIBIO_FLAGS_NO_DELAY | LIBIO_FLAGS_APPEND; 95 97 96 98 /* … … 98 100 */ 99 101 100 iop->flags = (iop->flags & ~(O_APPEND | O_NONBLOCK)) | 101 (flags & (O_APPEND | O_NONBLOCK)); 102 iop->flags = (iop->flags & ~mask) | (flags & mask); 102 103 break; 103 104 -
cpukit/libcsupport/src/fcntl.c
r063e4950 r5f2566b 31 31 int fd2; 32 32 int flags; 33 int mask; 33 34 int ret = 0; 34 35 … … 93 94 case F_SETFL: 94 95 flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 96 mask = LIBIO_FLAGS_NO_DELAY | LIBIO_FLAGS_APPEND; 95 97 96 98 /* … … 98 100 */ 99 101 100 iop->flags = (iop->flags & ~(O_APPEND | O_NONBLOCK)) | 101 (flags & (O_APPEND | O_NONBLOCK)); 102 iop->flags = (iop->flags & ~mask) | (flags & mask); 102 103 break; 103 104
Note: See TracChangeset
for help on using the changeset viewer.