IEEE P1003.2b Draft 2 - December 1991 Copyright (c) 1991 by the Institute of Electrical and Electronics Engineers, Inc. 345 East 47th Street New York, NY 10017, USA All rights reserved as an unpublished work. This is an unapproved and unpublished IEEE Standards Draft, subject to change. The publication, distribution, or copying of this draft, as well as all derivative works based on this draft, is expressly prohibited except as set forth below. Permission is hereby granted for IEEE Standards Committee participants to reproduce this document for purposes of IEEE standardization activities only, and subject to the restrictions contained herein. Permission is hereby also granted for member bodies and technical committees of ISO and IEC to reproduce this document for purposes of developing a national position, subject to the restrictions contained herein. Permission is hereby also granted to the preceding entities to make limited copies of this document in an electronic form only for the stated activities. The following restrictions apply to reproducing or transmitting the document in any form: 1) all copies or portions thereof must identify the document's IEEE project number and draft number, and must be accompanied by this entire notice in a prominent location; 2) no portion of this document may be redistributed in any modified or abridged form without the prior approval of the IEEE Standards Department. Other entities seeking permission to reproduce this document, or any portion thereof, for standardization or other activities, must contact the IEEE Standards Department for the appropriate license. Use of information contained in this unapproved draft is at your own risk. IEEE Standards Department Copyright and Permissions 445 Hoes Lane, P.O. Box 1331 Piscataway, NJ 08855-1331, USA +1 (908) 562-3800 +1 (908) 562-1571 [FAX] P1003.2b/D3 Section 5: Revisions to User Portability Utilities Option 5.9 du - Estimate file usage => 5.9.2 du Description. _A_d_d _a _n_e_w _s_e_n_t_e_n_c_e _i_n _t_h_e _f_i_r_s_t _p_a_r_a_g_r_a_p_h, _f_o_l_l_o_w_i_n_g _t_h_e _s_e_n_t_e_n_c_e _b_e_g_i_n_n_i_n_g _w_i_t_h ``The du utility, by default ...'' When a symbolic link is encountered in the file hierarchy, du shall count and write the name and size of the symbolic link itself (rather than the file referenced by the link) and shall continue with the other files in the directory containing the link, not attempting to follow the link to another portion of the file hierarchy. Copyright (c) 1992 IEEE. All rights reserved. This is an unapproved IEEE Standards Draft, subject to change. 5.9 du - Estimate file usage 71 P1003.2b/D3 INFORMATION TECHNOLOGY--POSIX 5.39 file - Determine file type => 5.14.1 file Synopsis. _M_o_d_i_f_y _t_h_e _S_y_n_o_p_s_i_s _t_o _b_e: file [-_h] [_f_i_l_e ...] => 5.14.2 file Description. _A_d_d _a _n_e_w _p_a_r_a_g_r_a_p_h _a_t _t_h_e _e_n_d _o_f _t_h_e _s_u_b_c_l_a_u_s_e: If _f_i_l_e is a symbolic link, by default the link shall be resolved and file shall test the type of file referenced by the symbolic link. => 5.14.3 file Options. _R_e_p_l_a_c_e _t_h_e _e_n_t_i_r_e _O_p_t_i_o_n_s _s_u_b_c_l_a_u_s_e _w_i_t_h: -h When a symbolic link is encountered, the link shall not be resolved and file shall identify the file as a symbolic link. If -h is not specified and _f_i_l_e is a symbolic link that refers to a nonexistent file, file shall identify the file as a symbolic link, as if -h had been specified. => 5.14.6.1 file Standard Output. _I_n_s_e_r_t _a _n_e_w _p_a_r_a_g_r_a_p_h _b_e_t_w_e_e_n _t_h_e _s_e_c_o_n_d _a_n_d _t_h_i_r_d (_t_h_e _o_n_e _b_e_g_i_n_n_i_n_g ``If the file named ...'') _p_a_r_a_g_r_a_p_h_s: If _f_i_l_e is identified as a symbolic link (see -h), the following alternative output format shall be used: "%s: %s %s0", <_f_i_l_e>, <_t_y_p_e>, <_c_o_n_t_e_n_t_s _o_f _l_i_n_k> => 5.14.6.1 file Standard Output. _A_d_d _t_h_e _f_o_l_l_o_w_i_n_g _e_n_t_r_y _t_o _t_h_e _t_a_b_l_e _n_a_m_e_d _f_i_l_e Output Strings: If _ffff_iiii_llll_eeee is a <_tttt_yyyy_pppp_eeee> shall contain the string _______________________________________________ symbolic link symbolic link to Copyright (c) 1992 IEEE. All rights reserved. This is an unapproved IEEE Standards Draft, subject to change. 72 5 Revisions to User Portability Utilities Option