📄 apr__portable_8h-source.html
字号:
00340 APR_DECLARE(apr_status_t) apr_os_file_put(apr_file_t **file,
00341 apr_os_file_t *thefile,
00342 apr_int32_t flags, apr_pool_t *cont);
00343 <span class="comment"></span>
00344 <span class="comment">/**</span>
00345 <span class="comment"> * convert the file from os specific type to apr type.</span>
00346 <span class="comment"> * @param file The apr file we are converting to.</span>
00347 <span class="comment"> * @param thefile The os specific pipe to convert</span>
00348 <span class="comment"> * @param cont The pool to use if it is needed.</span>
00349 <span class="comment"> * @remark On Unix, it is only possible to put a file descriptor into</span>
00350 <span class="comment"> * an apr file type.</span>
00351 <span class="comment"> */</span>
00352 APR_DECLARE(apr_status_t) apr_os_pipe_put(apr_file_t **file,
00353 apr_os_file_t *thefile,
00354 apr_pool_t *cont);
00355 <span class="comment"></span>
00356 <span class="comment">/**</span>
00357 <span class="comment"> * convert the file from os specific type to apr type.</span>
00358 <span class="comment"> * @param file The apr file we are converting to.</span>
00359 <span class="comment"> * @param thefile The os specific pipe to convert</span>
00360 <span class="comment"> * @param register_cleanup A cleanup will be registered on the apr_file_t</span>
00361 <span class="comment"> * to issue apr_file_close().</span>
00362 <span class="comment"> * @param cont The pool to use if it is needed.</span>
00363 <span class="comment"> * @remark On Unix, it is only possible to put a file descriptor into</span>
00364 <span class="comment"> * an apr file type.</span>
00365 <span class="comment"> */</span>
00366 APR_DECLARE(apr_status_t) apr_os_pipe_put_ex(apr_file_t **file,
00367 apr_os_file_t *thefile,
00368 <span class="keywordtype">int</span> register_cleanup,
00369 apr_pool_t *cont);
00370 <span class="comment"></span>
00371 <span class="comment">/**</span>
00372 <span class="comment"> * convert the dir from os specific type to apr type.</span>
00373 <span class="comment"> * @param dir The apr dir we are converting to.</span>
00374 <span class="comment"> * @param thedir The os specific dir to convert</span>
00375 <span class="comment"> * @param cont The pool to use when creating to apr directory.</span>
00376 <span class="comment"> */</span>
00377 APR_DECLARE(apr_status_t) apr_os_dir_put(apr_dir_t **dir,
00378 apr_os_dir_t *thedir,
00379 apr_pool_t *cont);
00380 <span class="comment"></span>
00381 <span class="comment">/**</span>
00382 <span class="comment"> * Convert a socket from the os specific type to the apr type</span>
00383 <span class="comment"> * @param sock The pool to use.</span>
00384 <span class="comment"> * @param thesock The socket to convert to.</span>
00385 <span class="comment"> * @param cont The socket we are converting to an apr type.</span>
00386 <span class="comment"> * @remark If it is a true socket, it is best to call apr_os_sock_make()</span>
00387 <span class="comment"> * and provide APR with more information about the socket.</span>
00388 <span class="comment"> */</span>
00389 APR_DECLARE(apr_status_t) apr_os_sock_put(apr_socket_t **sock,
00390 apr_os_sock_t *thesock,
00391 apr_pool_t *cont);
00392 <span class="comment"></span>
00393 <span class="comment">/**</span>
00394 <span class="comment"> * Create a socket from an existing descriptor and local and remote</span>
00395 <span class="comment"> * socket addresses.</span>
00396 <span class="comment"> * @param apr_sock The new socket that has been set up</span>
00397 <span class="comment"> * @param os_sock_info The os representation of the socket handle and</span>
00398 <span class="comment"> * other characteristics of the socket</span>
00399 <span class="comment"> * @param cont The pool to use</span>
00400 <span class="comment"> * @remark If you only know the descriptor/handle or if it isn't really</span>
00401 <span class="comment"> * a true socket, use apr_os_sock_put() instead.</span>
00402 <span class="comment"> */</span>
00403 APR_DECLARE(apr_status_t) apr_os_sock_make(apr_socket_t **apr_sock,
00404 apr_os_sock_info_t *os_sock_info,
00405 apr_pool_t *cont);
00406 <span class="comment"></span>
00407 <span class="comment">/**</span>
00408 <span class="comment"> * Convert the proc mutex from os specific type to apr type</span>
00409 <span class="comment"> * @param pmutex The apr proc mutex we are converting to.</span>
00410 <span class="comment"> * @param ospmutex The os specific proc mutex to convert.</span>
00411 <span class="comment"> * @param cont The pool to use if it is needed.</span>
00412 <span class="comment"> */</span>
00413 APR_DECLARE(apr_status_t) apr_os_proc_mutex_put(apr_proc_mutex_t **pmutex,
00414 apr_os_proc_mutex_t *ospmutex,
00415 apr_pool_t *cont);
00416 <span class="comment"></span>
00417 <span class="comment">/**</span>
00418 <span class="comment"> * Put the imploded time in the APR format.</span>
00419 <span class="comment"> * @param aprtime the APR time format</span>
00420 <span class="comment"> * @param ostime the time to convert</span>
00421 <span class="comment"> * @param cont the pool to use if necessary</span>
00422 <span class="comment"> */</span>
00423 APR_DECLARE(apr_status_t) apr_os_imp_time_put(apr_time_t *aprtime,
00424 apr_os_imp_time_t **ostime,
00425 apr_pool_t *cont);
00426 <span class="comment"></span>
00427 <span class="comment">/**</span>
00428 <span class="comment"> * Put the exploded time in the APR format.</span>
00429 <span class="comment"> * @param aprtime the APR time format</span>
00430 <span class="comment"> * @param ostime the time to convert</span>
00431 <span class="comment"> * @param cont the pool to use if necessary</span>
00432 <span class="comment"> */</span>
00433 APR_DECLARE(apr_status_t) apr_os_exp_time_put(<a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *aprtime,
00434 apr_os_exp_time_t **ostime,
00435 apr_pool_t *cont);
00436 <span class="comment"></span>
00437 <span class="comment">/**</span>
00438 <span class="comment"> * convert the shared memory from os specific type to apr type.</span>
00439 <span class="comment"> * @param shm The apr shm representation of osshm</span>
00440 <span class="comment"> * @param osshm The os specific shm identity</span>
00441 <span class="comment"> * @param cont The pool to use if it is needed.</span>
00442 <span class="comment"> * @remark On fork()ed architectures, this is typically nothing more than</span>
00443 <span class="comment"> * the memory block mapped. On non-fork architectures, this is typically</span>
00444 <span class="comment"> * some internal handle to pass the mapping from process to process.</span>
00445 <span class="comment"> */</span>
00446 APR_DECLARE(apr_status_t) apr_os_shm_put(apr_shm_t **shm,
00447 apr_os_shm_t *osshm,
00448 apr_pool_t *cont);
00449
00450
00451 #if APR_HAS_DSO || defined(DOXYGEN)<span class="comment"></span>
00452 <span class="comment">/** </span>
00453 <span class="comment"> * @defgroup apr_os_dso DSO (Dynamic Loading) Portabiliity Routines</span>
00454 <span class="comment"> * @{</span>
00455 <span class="comment"> */</span><span class="comment"></span>
00456 <span class="comment">/**</span>
00457 <span class="comment"> * convert the dso handle from os specific to apr</span>
00458 <span class="comment"> * @param dso The apr handle we are converting to</span>
00459 <span class="comment"> * @param thedso the os specific handle to convert</span>
00460 <span class="comment"> * @param pool the pool to use if it is needed</span>
00461 <span class="comment"> */</span>
00462 APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **dso,
00463 apr_os_dso_handle_t thedso,
00464 apr_pool_t *pool);
00465 <span class="comment"></span>
00466 <span class="comment">/**</span>
00467 <span class="comment"> * convert the apr dso handle into an os specific one</span>
00468 <span class="comment"> * @param aprdso The apr dso handle to convert</span>
00469 <span class="comment"> * @param dso The os specific dso to return</span>
00470 <span class="comment"> */</span>
00471 APR_DECLARE(apr_status_t) apr_os_dso_handle_get(apr_os_dso_handle_t *dso,
00472 apr_dso_handle_t *aprdso);
00473
00474 #if APR_HAS_OS_UUID<span class="comment"></span>
00475 <span class="comment">/**</span>
00476 <span class="comment"> * Private: apr-util's apr_uuid module when supported by the platform</span>
00477 <span class="comment"> */</span>
00478 APR_DECLARE(apr_status_t) apr_os_uuid_get(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *uuid_data);
00479 #endif
00480 <span class="comment"></span>
00481 <span class="comment">/** @} */</span>
00482 #endif <span class="comment">/* APR_HAS_DSO */</span>
00483
00484 <span class="comment"></span>
00485 <span class="comment">/**</span>
00486 <span class="comment"> * Get the name of the system default characer set.</span>
00487 <span class="comment"> * @param pool the pool to allocate the name from, if needed</span>
00488 <span class="comment"> */</span>
00489 APR_DECLARE(const <span class="keywordtype">char</span>*) apr_os_default_encoding(apr_pool_t *pool);
00490
00491 <span class="comment"></span>
00492 <span class="comment">/**</span>
00493 <span class="comment"> * Get the name of the current locale character set.</span>
00494 <span class="comment"> * @param pool the pool to allocate the name from, if needed</span>
00495 <span class="comment"> * @remark Defers to apr_os_default_encoding if the current locale's</span>
00496 <span class="comment"> * data can't be retreved on this system.</span>
00497 <span class="comment"> */</span>
00498 APR_DECLARE(const <span class="keywordtype">char</span>*) apr_os_locale_encoding(apr_pool_t *pool);
00499 <span class="comment"></span>
00500 <span class="comment">/** @} */</span>
00501
00502 #ifdef __cplusplus
00503 }
00504 #endif
00505
00506 #endif <span class="comment">/* ! APR_PORTABLE_H */</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 7 13:18:25 2005 for Apache Portable Runtime by
<a href="../../../www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -