logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

link.1p (3496B)


  1. '\" et
  2. .TH LINK "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. link \(em call
  12. \fIlink\fR()
  13. function
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. link \fIfile1 file2\fR
  18. .fi
  19. .SH DESCRIPTION
  20. The
  21. .IR link
  22. utility shall perform the function call:
  23. .sp
  24. .RS 4
  25. .nf
  26. link(\fIfile1\fR, \fIfile2\fR);
  27. .fi
  28. .P
  29. .RE
  30. .P
  31. A user may need appropriate privileges to invoke the
  32. .IR link
  33. utility.
  34. .SH OPTIONS
  35. None.
  36. .SH OPERANDS
  37. The following operands shall be supported:
  38. .IP "\fIfile1\fP" 10
  39. The pathname of an existing file.
  40. .IP "\fIfile2\fP" 10
  41. The pathname of the new directory entry to be created.
  42. .SH STDIN
  43. Not used.
  44. .SH "INPUT FILES"
  45. Not used.
  46. .SH "ENVIRONMENT VARIABLES"
  47. The following environment variables shall affect the execution of
  48. .IR link :
  49. .IP "\fILANG\fP" 10
  50. Provide a default value for the internationalization variables that are
  51. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  52. .IR "Section 8.2" ", " "Internationalization Variables"
  53. for the precedence of internationalization variables used to determine
  54. the values of locale categories.)
  55. .IP "\fILC_ALL\fP" 10
  56. If set to a non-empty string value, override the values of all the
  57. other internationalization variables.
  58. .IP "\fILC_CTYPE\fP" 10
  59. Determine the locale for the interpretation of sequences of bytes of
  60. text data as characters (for example, single-byte as opposed to
  61. multi-byte characters in arguments).
  62. .IP "\fILC_MESSAGES\fP" 10
  63. .br
  64. Determine the locale that should be used to affect the format and
  65. contents of diagnostic messages written to standard error.
  66. .IP "\fINLSPATH\fP" 10
  67. Determine the location of message catalogs for the processing of
  68. .IR LC_MESSAGES .
  69. .SH "ASYNCHRONOUS EVENTS"
  70. Default.
  71. .SH STDOUT
  72. None.
  73. .SH STDERR
  74. The standard error shall be used only for diagnostic messages.
  75. .SH "OUTPUT FILES"
  76. None.
  77. .SH "EXTENDED DESCRIPTION"
  78. None.
  79. .SH "EXIT STATUS"
  80. The following exit values shall be returned:
  81. .IP "\00" 6
  82. Successful completion.
  83. .IP >0 6
  84. An error occurred.
  85. .SH "CONSEQUENCES OF ERRORS"
  86. Default.
  87. .LP
  88. .IR "The following sections are informative."
  89. .SH "APPLICATION USAGE"
  90. None.
  91. .SH EXAMPLES
  92. None.
  93. .SH RATIONALE
  94. None.
  95. .SH "FUTURE DIRECTIONS"
  96. None.
  97. .SH "SEE ALSO"
  98. .IR "\fIln\fR\^",
  99. .IR "\fIunlink\fR\^"
  100. .P
  101. The Base Definitions volume of POSIX.1\(hy2017,
  102. .IR "Chapter 8" ", " "Environment Variables"
  103. .P
  104. The System Interfaces volume of POSIX.1\(hy2017,
  105. .IR "\fIlink\fR\^(\|)"
  106. .\"
  107. .SH COPYRIGHT
  108. Portions of this text are reprinted and reproduced in electronic form
  109. from IEEE Std 1003.1-2017, Standard for Information Technology
  110. -- Portable Operating System Interface (POSIX), The Open Group Base
  111. Specifications Issue 7, 2018 Edition,
  112. Copyright (C) 2018 by the Institute of
  113. Electrical and Electronics Engineers, Inc and The Open Group.
  114. In the event of any discrepancy between this version and the original IEEE and
  115. The Open Group Standard, the original IEEE and The Open Group Standard
  116. is the referee document. The original Standard can be obtained online at
  117. http://www.opengroup.org/unix/online.html .
  118. .PP
  119. Any typographical or formatting errors that appear
  120. in this page are most likely
  121. to have been introduced during the conversion of the source files to
  122. man page format. To report such errors, see
  123. https://www.kernel.org/doc/man-pages/reporting_bugs.html .