Page 117 - slides.dvi
P. 117

•
                        •
                                                                                                    •
                                            •
                                                                                     •
   Unix
                                                   –
                                                                   –
                                –
                                                              –
                                                                              –
                                     –
                                                                         –
                                                         –
                                                                                                    A
                                                                                                               File
   Case
                                                                         fd
                                                                              fd
                                                                                                    file
                                also
                                                                              =
                                                                         =
                                                   reply
                                                         reply
                                            Devices
                                                                   bytes
                                                                                                    is
   Study—
                                                              count
                                                   =
                                                         =
                                     support
                                                                   =
                                                                                                    an
                                                                                     Operations
                                                              =
   Files
                        Hierarchical
                                have
                                                                                            Represented
                                                                              open
   and
                                                                                     on
                                                                                            in
   the
                                     above
                                                                                                               Abstraction
                                                                                     files
                                                         seek(fd,
                                                                   read(fd,
                                            represented
                                                   close(fd)
                                                              write(fd,
                                ioctl’s:
                        structure
   Filesystem
                                            by
                                                                                     are:
                                                                                                    unstructured
                                                                         creat(pathname,
                                                                              (pathname,
                                                                                            user-space
                                                         offset,
                                                                   buffer,
                                allow
                                                              buffer,
                                     operations,
                                                                                            by
                                            special
                                                                                            a
                                                                         mode)
                        supported
                                                                              mode)
                                                                                                    sequence
                                access
                                                                                            file
                                                                   nbytes)
                        by
                                                         whence)
                                            files:
                                                              nbytes)
                                                                                                    of
                                to
                                     although
                                                                                                    bytes.
                        directory
                                                                                            descriptor
                                     perhaps
                                                                                            (fd)
                        files.
                                     with
                                device-specific
                                     bizarre
                                functionality.
                                     semantics.
   113
   112   113   114   115   116   117   118   119   120   121   122