파일 기술자란 무엇이고, 어떤 정보를 담고 있는가?

anycastle의 이미지

파일 기술자란 무엇이고, 어떤 정보를 담고 있는가?

기술자가 디스크립터는 아는데 도대체 어떤정보를 담고있죠? 알려주세요 고수님들~~

sephiron의 이미지

file descriptor. google이 괜히 떼돈 버는 게 아니죠.

ssehoony의 이미지

fd는 파일핸들러 일수도 있고, 소켓 핸들러 일수도 있고, 파이프 핸들러 일수도 있고, 또 다른 무언가 일 수도 있습니다.
그에 따라 내부구조는 상이하게 다를 가능성이 높습니다. 중요한건 사용법은 모두 동일하다는 것이겠죠.
fd의 내부 구현은 커널마다 다르기 때문에, 딱히 어떻게 구현되어 있다고 말하기 힘들듯합니다.

sunyzero의 이미지

실제 개체(파일, 소켓, 파이프)등을 접근하는데 있어서 공통된 입출력 인터페이스(e.g. 함수)를 사용할 수 있도록
번호를 순서대로 매긴 것이 파일기술자입니다.
따라서 해당 프로세스 스코프에서 유니크한 값을 가지게 됩니다.
필요한 정보가 있다면 파일기술자를 통해서 연결된 다른 메타정보를 얼마든지 불러올수도 있으니 편리하죠.

그러므로 이런 특징때문에 파일기술자를 사용하게되면, 프로그래밍을 하거나 시스템을 디자인 하는 사람은 매우 편리해지죠.

========================================
* 부분이 전체를 대변하는 하나의 속성일때 진리이다.
영속적이지 못한 것은 전체가 될 수 없다.

========================================
* The truth will set you free.

freemckang의 이미지

파일 기술자라는 말이 근데 정확한 번역(?)이 맞는걸까요??? 문득문득 갑자기 그런 생각이 드네요... 음... 디스크립터를 직역한 것 같기도 하고... 적절한 번역같기도 하고...

너무나도 오래된 얘기지만, 용어가(특히나 리눅스/유닉스 계열에서) 어영부영한 것이 꽤 많다는 생각을 지울 수가 없네요.. 음... (김치하씨가 그런면에서는 혁명(-_-?)이 아니었을지..)

객체 지향 프로그래밍(OOP) 이것도... 그냥 쓴글입니다 ^^;;

句日新, 日新 日新 又日新.

句日新, 日新 日新 又日新.

묵검추의 이미지

7339989b62a014c4ce6e31b3540bc7b5f06455024f22753f6235c935e8e5의 이미지

Quote:
In computer programming, a file descriptor is an abstract key for accessing a file. The term is generally used in POSIX operating systems. ...

http://en.wikipedia.org/wiki/File_descriptor

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.