1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
  
     | 
    
      .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\" License.
.\" Modified Wed Jul 28 11:12:26 1993 by Rik Faith (faith@cs.unc.edu)
.TH FPATHCONF 3  "4 de abril de 1993" "GNU" "Manual do Programador Linux"
.SH NOME
fpathconf, pathconf \- obtm valores de configurao para arquivos
.SH SINOPSE
.nf
.B #include <unistd.h>
.sp
.BI "long fpathconf(int " filedes ", int " name ");"
.nl
.BI "long pathconf(char *" path ", int " name ");"
.fi
.SH DESCRIO
.B fpathconf()
obtm um valor para a opo de configurao
.I name
do descritor de arquivo
.IR filedes .
.PP
.B pathconf()
obtm um valor para a opo de configurao
.I name
para o nome de arquivo
.IR path .
.PP
As macros correspondentes definidas em
.B <unistd.h>
so valores mnimos; se uma aplicao quer tomar vantagem dos valores que podem mudar
, uma chamada a 
.B fpathconf()
ou
.B pathconf()
pode ser feita, o que pode produzir resultados mais liberais.
.PP
Configurar
.I name
igual a uma das seguintes constantes retorna as seguintes opes de configurao:
.TP
.B _PC_LINK_MAX
retorna o nmero mximo de ligaes para o arquivo. Se
.I filedes
ou
.I path
referem-se a um diretrio, ento o valor se aplica ao diretrio inteiro.
A macro correspondente 
.BR _POSIX_LINK_MAX .
.TP
.B _PC_MAX_CANON
retorna o comprimento mximo de uma linha de entrada formatada, onde
.I filedes
ou
.I path
precisa se referir a um terminal.
A macro correspondente 
.BR _POSIX_MAX_CANON .
.TP
.B _PC_MAX_INPUT
retorna o comprimento mximo de uma linha de entrada, onde
.I filedes
ou
.I path
precisa se referir a um terminal.
A macro correspondente 
.BR _POSIX_MAX_INPUT .
.TP
.B _PC_NAME_MAX
retorna o comprimento mximo de um nome de arquivo no diretrio
.I path
ou
.IR filedes .
o processo  permitido criar.
A macro correspondente 
.BR _POSIX_NAME_MAX .
.TP
.B _PC_PATH_MAX
retorna o comprimento mximo de um caminho de diretrio relativo quando
.I path
ou
.I filedes
 um diretrio de trabalho corrente. A macro correspondente 
.BR _POSIX_PATH_MAX .
.TP
.B _PC_PIPE_BUF
retorna o tamanho de um buffer de cano, onde
.I filedes
precisa se referir a um cano ou FIFO, e
.I path
precisa se referir a uma FIFO. A macro correspondente 
.BR _POSIX_PIPE_BUF .
.TP
.B _PC_CHOWN_RESTRICTED
retorna valor diferente de zero se a chamada
.BR chown (2)
no pode ser usada neste arquivo. Se
.I filedes
ou
.I path
referem-se a um diretrio, ento isso se aplica a todos os arquivos naquele
diretrio. A macro correspondente 
.BR _POSIX_CHOWN_RESTRICTED .
.TP
.B _PC_NO_TRUNC
retorna valor diferente de zero se o acesso a nomes de arquivo maiores que
.B _POSIX_NAME_MAX
gera um erro. A macro correspondente 
.BR _POSIX_NO_TRUNC .
.TP
.B _PC_VDISABLE
retorna valor diferente de zero se o processamento especial de caracteres pode ser desabilitado, onde
.I filedes
ou
.I path
precisam se referir a um terminal.
.SH "VALOR DE RETORNO"
O limite  retornado, se existir. Se o sistema no tem um limite para o recurso pedido,  retornado
\-1, e
.I errno
no  alterado. Se h um erro, \-1  retornado, e 
.I errno
 setado para refletir a natureza do erro.
.SH "CONFORME"
POSIX.1
.SH NOTAS
Arquivos com comprimentos de nome maiores que o valor retornado para 
.I name
igual a
.B _PC_NAME_MAX
podem existir no diretrio dado.
.PP
Alguns valores retornados podem ser gigantes; eles no so prprios para alocao de memria.
.SH "VEJA TAMBM"
.BR getconf "(1), " statfs "(2), " open "(2), " sysconf (3)
.SH TRADUO PARA A LNGUA PORTUGUESA
\&\fR\&\f(CWRUBENS DE JESUS NOGUEIRA <darkseid99@usa.net> (traduo)\fR
\&\fR\&\f(CWXXXXXX XX XXXXX XXXXXXXX <xxxxxxxxxx@xxx.xxx> (reviso)\fR
 
     |